Skip to content
This repository was archived by the owner on Sep 20, 2023. It is now read-only.

Commit 3e22663

Browse files
committed
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 <brandon.maier@rockwellcollins.com>
1 parent df9f705 commit 3e22663

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

syntax_checkers/c/checkpatch.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ function! SyntaxCheckers_c_checkpatch_GetLocList() dict
3939
let makeprg = self.makeprgBuild({ 'args_after': '--no-summary --no-tree --terse --file' })
4040

4141
let errorformat =
42+
\ '%W%f:%l: CHECK: %m,' .
4243
\ '%f:%l: %tARNING: %m,' .
4344
\ '%f:%l: %tRROR: %m'
4445

0 commit comments

Comments
 (0)