summaryrefslogtreecommitdiff
path: root/ale_linters/cpp/cpplint.vim
blob: 0f43996bef0ffaa3732f3ebcd596761ddcc83bc1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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,
\})