From 9185a0d2e5d229a9fdfdc25279ae1b4c701ac4d9 Mon Sep 17 00:00:00 2001 From: Dawid Kurek Date: Wed, 10 May 2017 19:41:58 +0200 Subject: Add cpplint linter --- ale_linters/cpp/cpplint.vim | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 ale_linters/cpp/cpplint.vim (limited to 'ale_linters/cpp') 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, +\}) -- cgit v1.2.3