aboutsummaryrefslogtreecommitdiff
path: root/clint.py
Commit message (Collapse)AuthorAge
* reorgJustin M. Keyes2016-06-03
|
* clint: Check that boolean operator is placed on the next lineZyX2016-05-01
| | | | I have not found in the style guide words about other operators, so they are not tested. This adds 128 new errors.
* clint: Add rule for preincrement/predecrementZyX2016-04-13
|
* clint: Add diagnostics for things like `char* foo` or `(char*)`ZyX2016-04-13
| | | | | | | | | | | | | | Asterisk should be preceded by a space except the following cases: 1. `foo[*idx_ptr]` 2. `++*foo` (though I would prefer to write this as `++(*foo)`) 3. `(*foo)->bar`, `if (*p)` 4. `char **foo` 5. `/* comment */` 6. `!*p` Note: `[^ (*/![]` is followed by `+` to make error position easier to find. It is not needed to find location of the problem.
* clint.py: a function name starting with for is not a for statementBjörn Linse2016-02-29
|
* misc: UNIX => Unix #4022Seth Jackson2016-01-16
| | | | | | | | | | Although UNIX is a registered trademark of The Open Group, it doesn't really matter whether we refer to these systems as UNIX, Unix, or Unix-like. So, for consistency, refer to them collectively as Unix. Related: http://www.greens.org/about/unix.html http://www.unixica.com/html/unixunix.html
* clint: Check indentation and alignment inside expressionsZyX2015-12-11
|
* clint: Check for spaces after { and before }ZyX2015-12-09
|
* clint: Do not special-case for() semicolonsZyX2015-12-09
|
* clint: Disallow old style comments everywhere, except for macrosZyX2015-12-08
|
* clint: Make sure that braces are always used for if and other clausesZyX2015-12-08
|
* clint: Add support for errors suppressionZyX2015-08-15
|
* cmake: Make `make lint` less verboseMichael Reed2015-06-27
| | | | | It unnecessarily complicates spotting linter errors, as they're usually surrounded by a bunch of lines saying "Done processing ... ".
* clint.py: don't print `--help` output to stderr and exit 1Michael Reed2015-06-27
| | | | | | | | | a) It's not an error b) It requires manual redirection of stderr into stdout ('2>&1') in order to be viewed with a pager, which it warrants given how long the help message is. Helped-by: Florian Walch <florian@fwalch.com>
* Change neovim.org references to neovim.ioThiago de Arruda2015-04-19
|
* clint: Add rules to check for memory functions callsThiago de Arruda2015-04-13
|
* Enable -Wconversion: indent.c.Eliseo Martínez2015-02-18
| | | | | | | | | | Note: Clint was failing because of recommending not to use long. But converting to long is the proper refactoring here, in as far as other longs exist. We could, then, disable clint rule, or remove this file from checking. We choose the former, as it's being discussed what to do with longs, but a decision has not been taken. So, it seems most reasonable to allow longs for now, to enable proper refactorings, and then, when a decision is taken, refactor all longs to some other thing.
* Make clint.py pep8-compliant.Eliseo Martínez2015-02-08
|
* Linting: Recommend os_* instead of POSIX functions.Florian Walch2015-01-11
|
* spelling fixes #827Will Stamper2014-06-12
|
* clint: disregard compound literal returnNicolas Hillegeer2014-05-18
| | | | | | | | | | | This allows lines like: return (my_struct_type) { .my_int = 5, .my_str = "" }; Thanks to @watk for finding and fixing it!
* Introduce nvim namespace: Fix define guards.Eliseo Martínez2014-05-15
| | | | | | Change define guards from NEOVIM_XXX_H to NVIM_XXX_H: - Change header files. - Change clint correct guard name calculation.
* Introduce nvim namespace: Fix clint.Eliseo Martínez2014-05-15
| | | | | - Fix path to clint-checked files. - Fix mechanism to calculate define guard names.
* Do not detect macros like VIM_TRUE as boolean valuesZyX2014-05-03
|
* Use portable format specifiers: Clint advice & other.Eliseo Martínez2014-04-23
| | | | | - Modify Clint advice to reflect preference for fixed sized macros. - Cleanup comment to eliminate referecen to "%ld".
* Remove dead code in clint.pyJohn Schmidt2014-04-21
|
* Added clint check for TRUE/FALSEHinidu2014-04-07
|
* More cleanupJulian Orth2014-03-27
|
* remove leftover c++ headersJulian Orth2014-03-27
|
* remove some leftover function callsJulian Orth2014-03-27
|
* remove cpp headersJulian Orth2014-03-27
|
* remove cpp file extensionsJulian Orth2014-03-27
|
* remove CleanseRawStringsJulian Orth2014-03-27
|
* remove C++ only _NestingState partsJulian Orth2014-03-27
|
* clean up CheckForNonStandardConstructJulian Orth2014-03-27
| | | | remove C++ stuff and add C types
* remove C++ stuff from CheckSpacingForFunctionCallJulian Orth2014-03-27
|
* remove C++ stuff from CheckSpacingJulian Orth2014-03-27
|
* remove CheckSectionSpacingJulian Orth2014-03-27
| | | | irrelevant
* remove unused functionJulian Orth2014-03-27
|
* remove some unused variablesJulian Orth2014-03-27
|
* remove C++ only stuff from CheckLanguageJulian Orth2014-03-27
| | | | Do we want VLAs?
* remove "stream check" from CheckIncludeLineJulian Orth2014-03-27
| | | | irrelevant
* remove CheckForNonConstReferenceJulian Orth2014-03-27
| | | | irrelevant
* remove CheckCStyleCastJulian Orth2014-03-27
|
* remove CheckForIncludeWhatYouUseJulian Orth2014-03-27
| | | | Only checks C++ related headers
* remove CheckMakePairUsesDeductionJulian Orth2014-03-27
| | | | Irrelevant
* Make script portable across Python versionsSteven Myint2014-03-07
| | | | Support both Python 2 and 3.
* Issue #66 - Add lint tool and uncrustify config. Update contributing ↵David Z. Chen2014-03-05
documentation on coding style.