aboutsummaryrefslogtreecommitdiff
path: root/src/clint.py
Commit message (Collapse)AuthorAge
* build(lint): remove clint.py rules for braces #20880dundargoc2022-11-01
| | | | | Uncrustify is the source of truth where possible. Remove any redundant checks from clint.py. See also https://github.com/neovim/neovim/pull/18563
* fix(clint): disable whitespace/newline #20619Lewis Russell2022-10-12
| | | This rule is already mostly covered by uncrustify.
* docs: various #12823Justin M. Keyes2022-10-09
| | | | | | | | | | | | - 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>
* docs: fix typos (#20394)dundargoc2022-09-30
| | | | | Co-authored-by: Raphael <glephunter@gmail.com> Co-authored-by: smjonas <jonas.strittmatter@gmx.de> Co-authored-by: zeertzjq <zeertzjq@outlook.com>
* refactor: move definitions from `typval.h` to `typval_defs.h` (#20194)Famiu Haque2022-09-14
| | | Taken from #20187.
* ci(clint): remove "Inner expression indentation should be 4" rule (#20047)dundargoc2022-09-03
| | | It completely breaks down in shada.c and is generally useless.
* build: add github action annotations for clintLewis Russell2022-07-04
|
* build(clint): remove redundant checks #18698dundargoc2022-05-22
| | | | | Uncrustify is the source of truth where possible. Remove any redundant checks from clint.py. See also https://github.com/neovim/neovim/pull/18563
* build(clint.py): remove rules for includes, whitespace, tabs #18611dundargoc2022-05-20
| | | | | | | 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
* ci(clint): remove checks for whitespace after comma/semicolon (#18584)Marco Hinz2022-05-16
| | | | | uncrustify is the source of truth where possible. Remove any redundant checks from clint.py. See also https://github.com/neovim/neovim/pull/18563
* ci(clint): remove clint.py line length check #18574dundargoc2022-05-15
| | | | | uncrustify is the source of truth where possible. Remove any redundant checks from clint.py. See also https://github.com/neovim/neovim/pull/18563
* ci(clint): remove check for include orderDundar Goc2022-05-14
| | | | | | 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.
* ci(clint): fix all pyright warningsDundar Goc2022-05-14
|
* build(clint): remove "function size is too large" warningDundar Goc2022-05-06
| | | | | | | | 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.
* build(clint): remove all python2-isms with pyupgradeDundar Goc2022-04-20
| | | | | The script is functionally the same, just with some nicer syntactic sugar thanks to only supporting python3.
* build(clint): change shebang to python3Dundar Goc2022-04-20
| | | | | | There are distributions that doesn't symlink python to python3. This will make clint work for these without any additional steps from the user.
* build(clint): link to wiki when accessing list_T internals directly (#17876)dundargoc2022-03-29
|
* chore(lgtm): ignore "__eq__ not overridden" warningDundar Göc2022-03-09
|
* ci(clint): remove "Unknown NOLINT error category" warningDundar Göc2022-03-06
| | | | | Clang-tidy also uses "NOLINT" to suppress warnings which causes a conflict.
* refactor(api): handle option dicts properlyBjörn Linse2021-10-03
| | | | | | | 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
* ci: increase clint line length limit to 100 characters (#15252)dundargoc2021-08-16
|
* fix(clint): fix link to style guide. (#14975)dundargoc2021-07-03
|
* Fix multiple typos (#13063)Hansraj Das2020-10-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* vim-patch:8.1.1201: output of :command is hard to readJan Edmund Lazo2020-02-16
| | | | | | | Problem: Output of :command is hard to read. Solution: Make some columns wider, some narrower. Truncate the command when listing all. https://github.com/vim/vim/commit/725310d89e1ba268bf410472b7de054c6c260161
* api: add nvim_get_runtime_file for finding runtime filesBjörn Linse2020-02-07
|
* py: flake8 fixesDaniel Hahler2019-07-29
|
* src/clint.py: flake8 fixes [ci skip] (#10631)Daniel Hahler2019-07-28
|
* doc [ci skip] #10383Justin M. Keyes2019-07-19
| | | | - test/README.md: document luassert `TableFormatLevel` - CONTRIBUTING.md: absorb parts of the old "Development tips" wiki page
* api: allow nvim_buf_attach from lua using callbacksBjörn Linse2019-06-04
|
* clint: remove CheckAltTokens()Justin M. Keyes2019-05-25
| | | | | | - 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
* Merge #9815 'vim-patch:8.1.1068: complete_info()'Justin M. Keyes2019-03-30
|
* clint: check env functionsJustin M. Keyes2019-02-28
|
* clint: add support for --stdin-filenameDaniel Hahler2018-10-05
|
* clint: use fileinput for stdinDaniel Hahler2018-10-05
| | | | | | | | | | | | | | | | | Fixes handing of "-" on Python 3: Traceback (most recent call last): File "…/Vcs/neovim/src/clint.py", line 3625, in <module> main() File "…/Vcs/neovim/src/clint.py", line 3618, in main ProcessFile(filename, _cpplint_state.verbose_level) File "…/Vcs/neovim/src/clint.py", line 3464, in ProcessFile 'replace').read().split('\n') File "/usr/lib/python3.7/codecs.py", line 701, in read return self.reader.read(size) File "/usr/lib/python3.7/codecs.py", line 500, in read data = self.bytebuffer + newdata TypeError: can't concat str to bytes
* clint: detect MAYBE and recommend TriStateJan Edmund Lazo2018-08-01
| | | | | Vim uses MAYBE for 3-value boolean with FALSE/TRUE/MAYBE. Use TriState type instead to restrict to 3 values, kFalse/kTrue/kNone.
* clint: use stdout for normal/expected output (#8700)Daniel Hahler2018-07-08
|
* clint: Make linter report line where it found opening braceZyX2017-12-23
|
* clint,eval: Make linter check for direct usage of list attributesZyX2017-12-12
|
* rpc: Don't delay notifications when request is pending (#6544)Björn Linse2017-10-29
| | | | | | | | | | | | | | | | | | | | | | With the old behavior, if a GUI makes a blocking request that requires user interaction (like nvim_input()), it would not get any screen updates. The client, not nvim, should decide how to handle notifications during a pending request. If an rplugin wants to avoid async calls while a sync call is busy, it likely wants to avoid processing async calls while another async call also is handled as well. This may break the expectation of some existing rplugins. For compatibility, remote/define.vim reimplements the old behavior. Clients can opt-out by specifying `sync=urgent`. - Legacy hosts should be updated to use `sync=urgent`. They could add a flag indicating which async methods are always safe to call and which must wait until the main loop returns. - New hosts can expose the full asyncness, they don't need to offer both behaviors. ref #6532 ref #1398 d83868fe9071af1b4866594eac12f7aa0fa71b53
* clint: allow starting brace after `enum`Justin M. Keyes2017-08-06
|
* kbtree: make warning free and delete deprecated macrosBjörn Linse2017-06-24
|
* clint: check FUNC_ATTR lines to have 2-space indentBjörn Linse2017-06-03
|
* Merge branch 'master' into luaviml'/luaZyX2017-04-08
|\
| * clint: Do not report zero errorsZyX2017-03-31
| |
| * eval: Split eval.c into smaller filesZyX2017-03-29
| |
* | clint: Allow omitting include guards in .c.h file and func_attr.h fileZyX2017-03-27
|/
* xstrlcat: Allow overlapped pointers. (#6017)Justin M. Keyes2017-01-31
| | | | | | | | | | memcpy is not equivalent to memmove (which is used by vim_strcat), this could cause subtle bugs if xstrlcat is used as a replacement for vim_strcat. But vim_strcat is inconsistent: in the `else` branch it uses strcpy, which doesn't allow overlap. Helped-by: oni-link <knil.ino@gmail.com> Helped-by: James McCoy <jamessan@jamessan.com> Helped-by: Nikolai Aleksandrovich Pavlov <kp-pav@yandex.ru>
* refactor: Remove strncpy/STRNCPY. (#6008)Justin M. Keyes2017-01-26
| | | | | | | | | | | | | | | Closes #731 References #851 Note: This does not remove some intentional legacy usages of strncpy. - memcpy isn't equivalent because it doesn't check the string length of `src`, and doesn't zero-out the remainder of `dst`. - xstrlcpy isn't equivalent because it doesn't zero-out the remainder of `dst`. Some Vim logic depends on that (e.g. ex_append which calls vim_strnsave). Helped-by: Douglas Schneider <ds3@ualberta.ca> Helped-by: oni-link <knil.ino@gmail.com> Helped-by: James McCoy <jamessan@jamessan.com>
* clint.py: Suggest xstrlcat instead of strcat.Justin M. Keyes2017-01-23
|
* src/clint.py: improve "Ignoring" messageDaniel Hahler2017-01-13
| | | | | | It was a bit confusing for me when seeing it myself the first time. [ci skip]