Nimbin[12]?Mirrors & Forks / syntastic / commits / 3e226638

syntastic git · master

syntastic vim plugin (fork)

vim fork · first commit 2009-07-10 · last commit 2022-07-10 (4 years ago) · synced 3 days ago · upstream: github.com/vim-syntastic/syntastic

Vim Script 99%
git clone https://git.christianimmanuel.de/mirrors-forks/syntastic.gitwget https://git.christianimmanuel.de/mirrors-forks/syntastic/archive/syntastic.tar.gz

checkpatch: Catch strict warnings

Brandon Maier · 2018-10-17 14:42 · 3e22663871de23e57f9cccdf6e739e7c907f582a

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>
 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'