diff options
author | w0rp <devw0rp@gmail.com> | 2017-02-11 19:40:57 +0000 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-02-11 19:40:57 +0000 |
commit | ecbb27680563a50d4dd981f968d659ef20bfbe30 (patch) | |
tree | 3e60f1ad7840dce1351819cd191a4c7ca0a7330e /ale_linters/c | |
parent | c33602534e205aa677521ce49a8054588d88bdc2 (diff) | |
download | ale-ecbb27680563a50d4dd981f968d659ef20bfbe30.zip |
Replace every stdin-wrapper script with the new %t formatting support
Diffstat (limited to 'ale_linters/c')
-rw-r--r-- | ale_linters/c/cppcheck.vim | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/ale_linters/c/cppcheck.vim b/ale_linters/c/cppcheck.vim index d4362cc0..754dad70 100644 --- a/ale_linters/c/cppcheck.vim +++ b/ale_linters/c/cppcheck.vim @@ -2,15 +2,14 @@ " Description: cppcheck linter for c files " Set this option to change the cppcheck options -if !exists('g:ale_c_cppcheck_options') - let g:ale_c_cppcheck_options = '--enable=style' -endif +let g:ale_c_cppcheck_options = get(g:, 'ale_c_cppcheck_options', '--enable=style') call ale#linter#Define('c', { \ 'name': 'cppcheck', \ 'output_stream': 'both', \ 'executable': 'cppcheck', -\ 'command': g:ale#util#stdin_wrapper . ' .c cppcheck -q --language=c ' -\ . g:ale_c_cppcheck_options, +\ 'command': 'cppcheck -q --language=c ' +\ . g:ale_c_cppcheck_options +\ . ' %t', \ 'callback': 'ale#handlers#HandleCppCheckFormat', \}) |