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
0d4dfb61dc
Merge pull request #2700 from elebow/clangcheck-no-color-diagnostics
...
clangcheck: Add -fno-color-diagnostics (closes #2188 )
2019-10-28 13:14:14 +00:00
w0rp
dfe9b7cc26
Merge remote-tracking branch 'murfalo/clangd-compile-commands'
2019-10-17 17:54:02 +01:00
Murfalo
a62f26434a
Added tests for clangd compile commands dectection
2019-10-09 13:40:04 -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
Murfalo
618f2d71fc
Added automatic compile-commands-dir arg to ale_cpp_clangd linter
2019-10-03 13:22:13 -04:00
Eddie Lebow
62602569b3
clangcheck: Add -fno-color-diagnostics
...
Also change to the modern --extra-arg syntax.
2019-09-26 20:28:33 -04: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
Bruno R. Barreyra
795122a042
Enabling clangd for cpp, objc and objcpp
2018-08-23 05:58:06 +02: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
w0rp
9ddf1b6a05
Make the language option for LSP linters optional
2018-07-04 13:12:58 +01:00
Ben Falconer
d1be72f438
#1635 - Use the project base rather than its parent for cquery
2018-06-07 00:12:38 +01:00
Ben Falconer
20db9ab719
Add the cquery LSP #1475 #1594
2018-06-06 17:58:47 +01:00
w0rp
da9a005c60
Fix #1490 - Rename the g++ linter to gcc, and add an alias for the old name
2018-04-10 09:31:22 +01:00
christian-gibbons
f1d56a343e
Flawfinder for C++:
...
Fix missing variable causing flawfinder to fail for c++
2018-03-28 14:09:03 +00:00
w0rp
95ec9bb780
#1167 Use the make -n parsing for C++ compilers, and document the new option
2018-03-27 19:24:22 +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
Jonatan Olofsson
ff8d4c5286
Fix #1255 : Move extra clang-check args to before user options
2018-01-02 16:09:38 +01:00
w0rp
87616c5e91
#782 - Do not set the build directory for clang-tidy for header files, which does not work
2017-07-20 14:52:24 +01:00
w0rp
eab77b7072
#703 Add arguments to avoid generating plist files if no build directory is detected for clang-check
2017-07-17 10:19:08 +01:00
w0rp
3b1bc2bd13
Fix another executable callback typo
2017-07-17 00:19:33 +01:00
w0rp
23ea62d40a
#711 - Make the cpplint executable configurable
2017-07-17 00:17:59 +01:00
w0rp
3352a6c9df
#711 - Make the clangtidy executable configurable
2017-07-17 00:07:18 +01:00
w0rp
fe70742bb9
#711 - Make the clangcheck executable configurable
2017-07-16 23:35:10 +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
Wil Thomason
6ab92af181
Correctly pass options to cpplint ( #728 )
...
* Fix option passing to cpplint
2017-07-05 10:14:43 +01:00
w0rp
8b557f346c
Move ale#handlers#c functions into ale#c
2017-06-25 20:34:23 +01:00
Gagbo
dc647fcc7f
Add clangcheck Linter to cpp ( #686 )
...
Add a clangcheck linter
2017-06-24 16:10:04 +01:00