diff options
author | Dawid Kurek <dawikur@gmail.com> | 2017-05-10 19:41:58 +0200 |
---|---|---|
committer | Dawid Kurek <dawikur@gmail.com> | 2017-05-16 19:09:59 +0200 |
commit | 9185a0d2e5d229a9fdfdc25279ae1b4c701ac4d9 (patch) | |
tree | 64d0ee9e358db46d12c6dd86d7eae8baf2105b0f /ale_linters/cpp | |
parent | 8712aee5dcddd366ae52a0c57e67fdbc13c030ee (diff) | |
download | ale-9185a0d2e5d229a9fdfdc25279ae1b4c701ac4d9.zip |
Add cpplint linter
Diffstat (limited to 'ale_linters/cpp')
-rw-r--r-- | ale_linters/cpp/cpplint.vim | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/ale_linters/cpp/cpplint.vim b/ale_linters/cpp/cpplint.vim new file mode 100644 index 00000000..0f43996b --- /dev/null +++ b/ale_linters/cpp/cpplint.vim @@ -0,0 +1,15 @@ +" Author: Dawid Kurek https://github.com/dawikur +" Description: cpplint for cpp files + +if !exists('g:ale_cpp_cpplint_options') + let g:ale_cpp_cpplint_options = '' +endif + +call ale#linter#Define('cpp', { +\ 'name': 'cpplint', +\ 'output_stream': 'stderr', +\ 'executable': 'cpplint', +\ 'command': 'cpplint %s', +\ 'callback': 'ale#handlers#cpplint#HandleCppLintFormat', +\ 'lint_file': 1, +\}) |