mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-09 22:14:44 +08:00
Add cpplint linter
This commit is contained in:
15
ale_linters/cpp/cpplint.vim
Normal file
15
ale_linters/cpp/cpplint.vim
Normal 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,
|
||||
\})
|
||||
Reference in New Issue
Block a user