diff options
author | Carl Smedstad <carl.smedstad@protonmail.com> | 2022-02-06 13:09:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-06 21:09:38 +0900 |
commit | c9938bc293da6c868d85627fc0f2befc037bb997 (patch) | |
tree | 41d3ca475d5fa46da93f0fbf5dc4fc74e900a0cc /test/linter/test_cmake_cmake_lint.vader | |
parent | 7cbb68da6c5664a4e2aba533fe1f969373c60d5c (diff) | |
download | ale-c9938bc293da6c868d85627fc0f2befc037bb997.zip |
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
Diffstat (limited to 'test/linter/test_cmake_cmake_lint.vader')
-rw-r--r-- | test/linter/test_cmake_cmake_lint.vader | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/linter/test_cmake_cmake_lint.vader b/test/linter/test_cmake_cmake_lint.vader new file mode 100644 index 00000000..6cf09149 --- /dev/null +++ b/test/linter/test_cmake_cmake_lint.vader @@ -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' |