mirror of
https://github.com/dense-analysis/ale.git
synced 2026-10-20 04:47:04 +08:00
Add CMake linter cmake-lint (#4036)
* Add CMake linter cmake-lint Add support for the CMake linter provided by https://github.com/cheshirekow/cmake_format. * Escape cmake-lint executable and add linter tests
This commit is contained in:
1 parent
7cbb68da6c
commit
c9938bc293
7 files changed
+108
No files matched your search
@@ -0,0 +1,13 @@
|
||||
Before:
|
||||
call ale#assert#SetUpLinterTest('cmake', 'cmake_lint')
|
||||
|
||||
After:
|
||||
call ale#assert#TearDownLinterTest()
|
||||
|
||||
Execute(The default command should be correct):
|
||||
AssertLinter 'cmake-lint', ale#Escape('cmake-lint') . ' %t'
|
||||
|
||||
Execute(The executable should be configurable):
|
||||
let g:ale_cmake_cmake_lint_executable = 'foobar'
|
||||
|
||||
AssertLinter 'foobar', ale#Escape('foobar') . ' %t'
|
||||
Reference in new issue
Block a user