From ecbb27680563a50d4dd981f968d659ef20bfbe30 Mon Sep 17 00:00:00 2001 From: w0rp Date: Sat, 11 Feb 2017 19:40:57 +0000 Subject: Replace every stdin-wrapper script with the new %t formatting support --- ale_linters/cpp/cppcheck.vim | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'ale_linters/cpp/cppcheck.vim') 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', \}) -- cgit v1.2.3