From 3e22663871de23e57f9cccdf6e739e7c907f582a Mon Sep 17 00:00:00 2001 From: Brandon Maier Date: Wed, 17 Oct 2018 09:42:12 -0500 Subject: [PATCH] checkpatch: Catch strict warnings When the "--strict" or "--subjective" options are added to checkpatch's arguments, it will return additional warnings of this format type: > file.c:123: CHECK: Alignment should match open parenthesis The extra warnings can be enabled with: > let g:syntastic_c_checkpatch_args = "--strict" Signed-off-by: Brandon Maier --- syntax_checkers/c/checkpatch.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/syntax_checkers/c/checkpatch.vim b/syntax_checkers/c/checkpatch.vim index db222413..0503579f 100644 --- a/syntax_checkers/c/checkpatch.vim +++ b/syntax_checkers/c/checkpatch.vim @@ -39,6 +39,7 @@ function! SyntaxCheckers_c_checkpatch_GetLocList() dict let makeprg = self.makeprgBuild({ 'args_after': '--no-summary --no-tree --terse --file' }) let errorformat = + \ '%W%f:%l: CHECK: %m,' . \ '%f:%l: %tARNING: %m,' . \ '%f:%l: %tRROR: %m'