zeertzjq
1a8f60c7d2
refactor: move hashtab types to hashtab_defs.h ( #26262 )
2023-11-28 10:47:22 +08:00
zeertzjq
718053b7a9
refactor: fix runtime_defs.h ( #26259 )
2023-11-28 07:47:36 +08:00
dundargoc
e3f735ef10
refactor: fix includes for api/autocmd.h
2023-11-27 21:53:07 +01:00
dundargoc
f9231603c4
refactor: fix includes for iconv.h
2023-11-27 21:52:34 +01:00
dundargoc
ab7c0e9904
refactor: create runtime_defs.h
2023-11-27 21:35:21 +01:00
dundargoc
f4aedbae4c
build(IWYU): fix includes for undo_defs.h
2023-11-27 19:33:17 +01:00
zeertzjq
38a20dd89f
build(IWYU): replace most private mappings with pragmas ( #26247 )
2023-11-27 20:58:37 +08:00
zeertzjq
574d25642f
refactor: move Arena and ArenaMem to memory_defs.h ( #26240 )
2023-11-27 17:21:58 +08:00
zeertzjq
6343d41436
refactor: move autocmd types to autocmd_defs.h ( #26239 )
2023-11-27 11:17:04 +08:00
zeertzjq
09541d514d
build(IWYU): replace public-to-public mappings with pragmas ( #26237 )
2023-11-27 09:51:26 +08:00
zeertzjq
7e2387f41b
build(clint): more precise check for "defs" headers ( #26236 )
2023-11-27 08:34:06 +08:00
dundargoc
71141e8cf5
build(IWYU): fix headers for arabic.h
2023-11-26 22:15:53 +01:00
zeertzjq
6361806aa2
refactor: move garray_T to garray_defs.h ( #26227 )
2023-11-26 22:58:52 +08:00
dundargoc
34509bbea3
build: sync IWYU and clint to ignore the same headers ( #26228 )
...
Also fix headers for autocmd.c.
2023-11-26 22:34:29 +08:00
dundargoc
ce6075f82a
build: add check to clint to prevent non-defs header includes
...
Also enable iwyu on headers, but add an ignore for each file separately.
Work on https://github.com/neovim/neovim/issues/6371 .
2023-11-26 15:06:51 +01:00
dundargoc
a6e3d93421
refactor: enable formatting for ternaries
...
This requires removing the "Inner expression should be aligned" rule
from clint as it prevents essentially any formatting regarding ternary
operators.
2023-11-20 19:57:09 +01:00
dundargoc
4f8941c1a5
refactor: replace manual header guards with #pragma once
...
It is less error-prone than manually defining header guards. Pretty much
all compilers support it even if it's not part of the C standard.
2023-11-12 22:01:28 +01:00
dundargoc
5f03a1eaab
build(lint): remove unnecessary clint.py rules
...
Uncrustify is the source of truth where possible.
Remove any redundant checks from clint.py.
2023-10-23 20:06:21 +02:00
bfredl
e2fdd53d8c
refactor(map): avoid duplicated khash_t types for values
...
This reduces the total number of khash_t instantiations from 22 to 8.
Make the khash internal functions take the size of values as a runtime
parameter. This is abstracted with typesafe Map containers which
are still specialized for both key, value type.
Introduce `Set(key)` type for when there is no value.
Refactor shada.c to use Map/Set instead of khash directly.
This requires `map_ref` operation to be more flexible.
Return pointers to both key and value, plus an indicator for new_item.
As a bonus, `map_key` is now redundant.
Instead of Map(cstr_t, FileMarks), use a pointer map as the FileMarks struct is
humongous.
Make `event_strings` actually work like an intern pool instead of wtf it
was doing before.
2023-05-17 12:26:21 +02:00
dundargoc
c98ef2d7c6
build(clint): fix deprecation and linter warnings
...
`sre_compile` is deprecated in python 11, and gives warning when is used.
2023-04-26 18:25:07 +02:00
dundargoc
b05d1943f0
build(lint): remove clint.py rules for braces #20880
...
Uncrustify is the source of truth where possible.
Remove any redundant checks from clint.py.
See also https://github.com/neovim/neovim/pull/18563
2022-11-01 07:39:49 -07:00
Lewis Russell
024f6880b5
fix(clint): disable whitespace/newline #20619
...
This rule is already mostly covered by uncrustify.
2022-10-12 06:31:32 -07:00
Justin M. Keyes
09dffb9db7
docs: various #12823
...
- increase python line-length limit from 88 => 100.
- gen_help_html: fix bug in "tag" case (tbl_count => tbl_contains)
ref #15632
fix #18215
fix #18479
fix #20527
fix #20532
Co-authored-by: Ben Weedon <ben@weedon.email >
2022-10-09 05:21:52 -07:00
dundargoc
df646572c5
docs: fix typos ( #20394 )
...
Co-authored-by: Raphael <glephunter@gmail.com >
Co-authored-by: smjonas <jonas.strittmatter@gmx.de >
Co-authored-by: zeertzjq <zeertzjq@outlook.com >
2022-09-30 09:53:52 +02:00
Famiu Haque
bd4eca1146
refactor: move definitions from typval.h
to typval_defs.h
( #20194 )
...
Taken from #20187 .
2022-09-14 13:01:39 +08:00
dundargoc
ea611c7122
ci(clint): remove "Inner expression indentation should be 4" rule ( #20047 )
...
It completely breaks down in shada.c and is generally useless.
2022-09-03 12:00:00 +02:00
Lewis Russell
5b609bbefb
build: add github action annotations for clint
2022-07-04 14:20:10 +01:00
dundargoc
8c2fd65bb1
build(clint): remove redundant checks #18698
...
Uncrustify is the source of truth where possible.
Remove any redundant checks from clint.py.
See also https://github.com/neovim/neovim/pull/18563
2022-05-22 10:59:56 -07:00
dundargoc
79469e61d5
build(clint.py): remove rules for includes, whitespace, tabs #18611
...
Uncrustify is the source of truth where possible.
Remove any redundant checks from clint.py.
See also https://github.com/neovim/neovim/pull/18563
Closes https://github.com/neovim/neovim/issues/17763
2022-05-20 20:43:30 -07:00
Marco Hinz
59ba66d1ab
ci(clint): remove checks for whitespace after comma/semicolon ( #18584 )
...
uncrustify is the source of truth where possible.
Remove any redundant checks from clint.py.
See also https://github.com/neovim/neovim/pull/18563
2022-05-16 00:14:31 +02:00
dundargoc
19da1071dc
ci(clint): remove clint.py line length check #18574
...
uncrustify is the source of truth where possible.
Remove any redundant checks from clint.py.
See also https://github.com/neovim/neovim/pull/18563
2022-05-15 12:01:29 -07:00
Dundar Goc
3bd7246f5a
ci(clint): remove check for include order
...
Uncrustify and clang-format are already both excellent at ordering
includes; this isn't something we need to check for ourselves. Also
remove the section on include order in the dev-style documentation.
2022-05-14 15:09:02 +02:00
Dundar Goc
adf967331f
ci(clint): fix all pyright warnings
2022-05-14 15:09:02 +02:00
Dundar Goc
d0897243f6
build(clint): remove "function size is too large" warning
...
This warning is essentially only triggered for ported vim functions.
It's unlikely that we'll refactor vim functions solely based on their
size since it'd mean we'd greatly deviate from vim, which is a high cost
when it comes to importing the vim patches. Thus, this warning only
serves as an annoyance and should be removed.
2022-05-06 18:03:57 +02:00
Dundar Goc
92844b4499
build(clint): remove all python2-isms with pyupgrade
...
The script is functionally the same, just with some nicer syntactic
sugar thanks to only supporting python3.
2022-04-20 23:15:26 +02:00
Dundar Goc
df48b355d2
build(clint): change shebang to python3
...
There are distributions that doesn't symlink python to python3.
This will make clint work for these without any additional steps from
the user.
2022-04-20 23:01:15 +02:00
dundargoc
524f6294a3
build(clint): link to wiki when accessing list_T internals directly ( #17876 )
2022-03-29 22:27:57 +08:00
Dundar Göc
f27068caad
chore(lgtm): ignore "__eq__ not overridden" warning
2022-03-09 09:29:57 +01:00
Dundar Göc
918ab6bf00
ci(clint): remove "Unknown NOLINT error category" warning
...
Clang-tidy also uses "NOLINT" to suppress warnings which causes a
conflict.
2022-03-06 23:02:10 +01:00
Björn Linse
32565922ef
refactor(api): handle option dicts properly
...
Do not copy a lot of lua strings (dict keys) to just strequal() them
Just compare them directly to a dedicated hash function.
feat(generators): HASHY McHASHFACE
2021-10-03 10:46:57 +02:00
dundargoc
7146103be2
ci: increase clint line length limit to 100 characters ( #15252 )
2021-08-16 15:32:36 +02:00
dundargoc
75f758b993
fix(clint): fix link to style guide. ( #14975 )
2021-07-03 09:09:02 -07:00
Hansraj Das
1709210a53
Fix multiple typos ( #13063 )
...
* Fix multiple typos in `src/nvim/api/ui_events.in.h`
* Below spellings are corrected:
* Definitions
* Revision
* Performance
* Typo fix `presense` should be presence
* Typo fix, follwed -> followed
* Typo fix, attemping -> attempting
* Typo fix, duplicate 'the'
* Typo fix, bounaries -> boundaries
* Revert "Typo fix, bounaries -> boundaries"
This reverts commit 24779e55e596f7534585938a7e532830ad2fa83c.
* Revert "Typo fix, duplicate 'the'"
This reverts commit 1d41d74f78736e67821a15edc9c174a2c3024f87.
* Revert "Typo fix, attemping -> attempting"
This reverts commit d8b2860dfcac366af7afae1f09946ed0aee4a34e.
2020-10-12 09:28:12 +02:00
Jan Edmund Lazo
7955c05acc
vim-patch:8.1.1201: output of :command is hard to read
...
Problem: Output of :command is hard to read.
Solution: Make some columns wider, some narrower. Truncate the command when
listing all.
725310d89e
2020-02-16 07:49:44 -05:00
Björn Linse
7ce9a5c7da
api: add nvim_get_runtime_file for finding runtime files
2020-02-07 09:22:55 +01:00
Daniel Hahler
d7b04ae7a7
py: flake8 fixes
2019-07-29 22:14:23 +02:00
Daniel Hahler
05fa1cb3f4
src/clint.py: flake8 fixes [ci skip] ( #10631 )
2019-07-28 11:48:24 +02:00
Justin M. Keyes
afef973262
doc [ci skip] #10383
...
- test/README.md: document luassert `TableFormatLevel`
- CONTRIBUTING.md: absorb parts of the old "Development tips" wiki page
2019-07-19 21:32:04 +02:00
Björn Linse
f5c56f03bb
api: allow nvim_buf_attach from lua using callbacks
2019-06-04 13:45:20 +02:00
Justin M. Keyes
eddd1bff3e
clint: remove CheckAltTokens()
...
- These "alternative tokens" keywords are for C++, not C.
- The check sometimes has false positives, e.g. `compl` is a variable
name in edit.c
2019-05-25 13:55:39 +02:00