Add cpplint linter

This commit is contained in:
Dawid Kurek
2017-05-10 19:41:58 +02:00
parent 8712aee5dc
commit 9185a0d2e5
6 changed files with 76 additions and 2 deletions

View File

@@ -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,
\})