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/cpp | |
parent | c33602534e205aa677521ce49a8054588d88bdc2 (diff) | |
download | ale-ecbb27680563a50d4dd981f968d659ef20bfbe30.zip |
Replace every stdin-wrapper script with the new %t formatting support
Diffstat (limited to 'ale_linters/cpp')
-rw-r--r-- | ale_linters/cpp/cppcheck.vim | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/ale_linters/cpp/cppcheck.vim b/ale_linters/cpp/cppcheck.vim index 9576b092..b2877158 100644 --- a/ale_linters/cpp/cppcheck.vim +++ b/ale_linters/cpp/cppcheck.vim @@ -2,15 +2,14 @@ " 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 +let g:ale_cpp_cppcheck_options = get(g:, 'ale_cpp_cppcheck_options', '--enable=style') 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, +\ 'command': 'cppcheck -q --language=c++ ' +\ . g:ale_cpp_cppcheck_options +\ . ' %t', \ 'callback': 'ale#handlers#HandleCppCheckFormat', \}) |