summaryrefslogtreecommitdiff
path: root/ale_linters/cpp/cpplint.vim
diff options
context:
space:
mode:
Diffstat (limited to 'ale_linters/cpp/cpplint.vim')
-rw-r--r--ale_linters/cpp/cpplint.vim15
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,
+\})