Merge pull request #546 from dawikur/master

Add cpplint linter
This commit is contained in:
w0rp
2017-05-17 09:12:36 +01:00
committed by GitHub
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,
\})