diff options
author | w0rp <w0rp@users.noreply.github.com> | 2017-05-17 09:12:36 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-17 09:12:36 +0100 |
commit | 372a4dfd7e7166292d0f35ddc10f0365fe0e3053 (patch) | |
tree | c959294b19f6d5cb18fdfa9a85f26996b6e38c79 /ale_linters | |
parent | 3443994a5211cc823ac87379eacdfbdb08663bee (diff) | |
parent | 9185a0d2e5d229a9fdfdc25279ae1b4c701ac4d9 (diff) | |
download | ale-372a4dfd7e7166292d0f35ddc10f0365fe0e3053.zip |
Merge pull request #546 from dawikur/master
Add cpplint linter
Diffstat (limited to 'ale_linters')
-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, +\}) |