mirror of
https://github.com/dense-analysis/ale
synced 2024-12-12 09:26:42 +00:00
17 lines
531 B
VimL
17 lines
531 B
VimL
|
" Author: Bart Libert <bart.libert@gmail.com>
|
||
|
" Description: cppcheck linter for cpp files
|
||
|
|
||
|
" Set this option to change the cppcheck options
|
||
|
if !exists('g:ale_cpp_cppcheck_options')
|
||
|
let g:ale_cpp_cppcheck_options = '--enable=style'
|
||
|
endif
|
||
|
|
||
|
call ale#linter#Define('cpp', {
|
||
|
\ 'name': 'cppcheck',
|
||
|
\ 'output_stream': 'both',
|
||
|
\ 'executable': 'cppcheck',
|
||
|
\ 'command': g:ale#util#stdin_wrapper . ' .cpp cppcheck -q --language=c++ '
|
||
|
\ . g:ale_cpp_cppcheck_options,
|
||
|
\ 'callback': 'ale#handlers#HandleCppCheckFormat',
|
||
|
\})
|