tsjordan-eng
f17b74679f
fix cppcheck for 1.89+, and add column support ( #3030 )
...
* fix cppcheck for 1.89+, and add column support
In cppcheck 1.89 the output changed to be more like GCC. This commit
forces any version of cppcheck to output in that same format. This also
allows for ALE to pick up the linter's column information
* Add parameters to tests. Vader passes.
* Fix c cppcheck for v1.89
2020-08-06 20:50:44 +01:00
Tomas Janousek
4fbfcc9dec
ccls: Detect build dir and set compilationDatabaseDirectory
...
Fixes #2621
2020-04-18 13:57:57 +02:00
w0rp
bde9b1cfcd
Revert "Add definition of c/clangd's language as C ( #2791 )"
...
This reverts commit f4070f6c43
.
2019-11-07 15:41:58 +00:00
w0rp
dfe9b7cc26
Merge remote-tracking branch 'murfalo/clangd-compile-commands'
2019-10-17 17:54:02 +01:00
João Borges
f4070f6c43
Add definition of c/clangd's language as C ( #2791 )
...
* Add definition of c/clangd's language as C
* Update tests for clangd to be called with '-x c'
* Change to use single quotes instead of double quotes
2019-10-17 17:28:48 +01:00
Murfalo
a62f26434a
Added tests for clangd compile commands dectection
2019-10-09 13:40:04 -04:00
Murfalo
35f51221f1
Updated ale_linters/c/clangd.vim to match ale_linters/cpp/clangd.vim
2019-10-09 13:30:10 -04:00
Greg Anders
7795898841
Add tests for clangtidy with Makefile
2019-10-06 10:29:23 -06:00
Greg Anders
06a97a8541
Use Makefile output with clang-tidy when useful
...
In the case where neither a build directory nor a compile_commands.json
file is found, use the output of `make -n` to provide options to
clang-tidy.
2019-10-06 10:29:17 -06:00
Jonathan Vander Mey
3c799abb44
Add additional option setting for clangtidy linter
...
The existing option setting handles setting additional compile flags to
pass to clang-tidy. The new option setting added here allows setting
additional clang-tidy specific flags to be passed as well.
Fixes #2324
2019-06-08 15:35:08 -04:00
Christoph Koehler
4129c356e8
Fix #1279 - Run cppcheck differently when modified
...
cppcheck is now run without the --project option and from the buffer's
directory instead when the buffer has been modified. Saving the buffer
will get results by linting the project instead.
2019-06-03 21:54:23 +01:00
w0rp
28819eedd3
Close #2359 - Find compile_commands.json in build dirs for cppcheck
2019-05-20 22:08:03 +01:00
w0rp
143af2b9fd
Fix #2421 - Use compile_commands.json in build dirs to find roots
2019-05-20 19:57:08 +01:00
w0rp
5e64acc6ab
Fix #2512 - Use -o /dev/null for gcc linting
2019-05-20 13:00:32 +01:00
w0rp
3bebcb5d48
#2132 - Replace command_chain and chain_with with ale#command#Run
2019-04-07 14:58:06 +01:00
w0rp
883978ece9
#2132 - Replace all uses of foo_callback with foo
2019-02-22 18:05:04 +00:00
w0rp
3e11cbd18d
Update syntax checking
...
* Line continuation characters should be on the same lines.
* .vim file line indentation should be a multiple of 4.
2019-02-06 18:05:13 +00:00
Andreas Hollmann
ef7b4af917
Do not enable all clang-tidy checks by default
2018-10-30 11:46:53 +01:00
Ye Jingchen
8891b7c349
Move ccls functions to autoload/ale/handler
...
Tests are kept as-is.
2018-09-28 03:26:57 +08:00
Ye Jingchen
626e47f5c9
Add ccls tests
2018-09-26 22:50:43 +08:00
Ye Jingchen
56658fd3ad
Add ccls support for C/C++/ObjC
2018-09-26 20:09:37 +08:00
w0rp
d476578a40
Improve ALE project style checking
...
* The project style linter now runs while you type.
* Now the scripts for checking the project require blank lines.
* Many style issues have been found and fixed.
2018-09-04 16:51:18 +01:00
fenuks
9d7c48038c
Add clazy as cpp linter
2018-08-24 10:52:33 +01:00
kodemeister
0702e4699e
Add blank lines to conform the coding standards
2018-08-09 09:06:30 +06:00
kodemeister
212e3b0b2f
Use .cquery file to detect the project root
2018-08-07 01:39:04 +06:00
w0rp
217284360d
Simplify the code for most linters and tests with closures
2018-08-02 23:44:12 +01:00
w0rp
16d0c52d24
Indicate that a C compiler failed due to problems in a header file
2018-07-30 20:09:43 +01:00
w0rp
ac4bac8ea4
Add support for parsing compile_commands.json files for C compilers
2018-07-29 19:24:27 +01:00
jtalowell
c57b031876
Providing cquery support for C files
2018-07-25 14:23:13 +10:00
Andrey Melentyev
9b4963847d
Add Clangd language server support for C
2018-07-22 21:22:38 +02:00
roel0
69237a7e57
Added additional unit tests + adapted review comments #1167
2018-03-21 20:44:35 +01:00
roel0
18d0aeb1a0
* Shell commands should by called async with the help of a command chain
...
* The makefile parser unit test should only test the cflag parser itself
#1167
2018-03-20 21:49:31 +01:00
roel0
38953c4626
Clang parser shoud fallback on old method if parsing fails #1167
2018-03-20 12:37:53 +01:00
roel0
3fb7efa2c6
Added some unit tests and fixed some linting errors for automatic makefile parsing in C #1167
2018-03-20 11:56:46 +01:00
roel0
c47b5fd4b8
Automatically determine build flags by parsing 'make -n' output #1167
2018-03-19 21:56:18 +01:00
Christian-Gibbons
b586eba4a4
Handle flawfinder severity level ( #1400 )
...
* Handle flawfinder severity level
* Reverted code allowing Flawfinder to piggyback off of gcc's format handler
* Gave Flawfinder its own format handler and made requested changes.
2018-03-10 10:44:55 +00:00
Christian-Gibbons
82f8a04e18
New linter: Flawfinder ( #1361 )
...
* Flawfinder support added for C and C++
A minor modification to gcc handler was made to support flawfinder's
single-line output format that does not have a space following the
colon denoting the warning level. gcc handler still passes its
Vader tests after this modification.
* Documentation fixes
* Revert documentation regression
* Added Flawfinder to table of contents
* Removed trailing whitespace
* Follow ALE conventions better
Added additional documentation and Vader tests
2018-02-25 14:11:04 +00:00
Andrej Radovic
70cd1d5a57
Fixed the comments, left only the doc URL
2017-08-06 13:14:09 +02:00
Andrej Radovic
a767578d44
Added clang-tidy for C, too.
...
A limited number of clang-tidy checks can be used with C, too. I pretty much
copied and refactored the C++ clang-tidy linter, and added some documentation
about C-compatible checks.
2017-08-05 16:42:28 +02:00
w0rp
92918fd841
Fix an executable_callback typo
2017-07-17 00:18:43 +01:00
w0rp
9e83878900
#711 - Make the gcc executables configurable
2017-07-16 22:41:15 +01:00
w0rp
58717e05a3
#711 - Make the cppcheck executables configurable
2017-07-16 22:11:43 +01:00
w0rp
54ff573174
#711 - Make the clang executables configurable
2017-07-16 21:37:10 +01:00
w0rp
8b557f346c
Move ale#handlers#c functions into ale#c
2017-06-25 20:34:23 +01:00
w0rp
5e4c302b5b
Fix #557 - Detect C project roots and include root directories with headers, or include directories
2017-05-31 20:01:47 +01:00
w0rp
07b2542c0d
#549 Temporarily revert shell escaping changes, just for Windows
2017-05-12 09:20:16 +01:00
w0rp
6ea00af689
#540 Fix shell escaping pretty much everywhere
2017-05-08 22:59:25 +01:00
w0rp
eb8bd26776
#392 - Detect and use compile_commands.json for cppcheck
2017-05-02 21:18:17 +01:00
w0rp
a03121f5b0
Break shared handlers up into their own files, and fix stylelint error handling
2017-04-24 22:27:18 +01:00
w0rp
e97dada261
#427 Implement buffer variable overrides for all linter options
2017-04-16 01:24:08 +01:00