remove bin/Makefile (?!)
[nit.git] / misc / vim / syntax_checkers / nit / nitg.vim
index 586b151..c3cdd20 100644 (file)
@@ -38,7 +38,7 @@ function! SyntaxCheckers_nit_nitg_IsAvailable()
 endfunction
 
 function! SyntaxCheckers_nit_nitg_GetLocList()
-       let makeprg = s:nitg . " --no-color --only-metamodel "
+       let makeprg = s:nitg . " --no-color -W --vim-autocomplete "
 
        " custom NIT_DIR
        if exists('g:syntastic_nit_dir')
@@ -72,6 +72,7 @@ function! SyntaxCheckers_nit_nitg_GetLocList()
                                   \ '%f:%l\,%c--%*[0-9]\,%*[0-9]:',
                                   \ '%f:%l\,%c:' ]
        let ef_type = [ ' %tarning: ',
+                                 \ ' %tocumentation warning: ',
                                  \ '' ]
 
        " generate errorformat from combinations
@@ -82,7 +83,16 @@ function! SyntaxCheckers_nit_nitg_GetLocList()
                endfor
        endfor
 
-       return SyntasticMake({ 'makeprg': makeprg, 'errorformat':errorformat })
+       let loclist = SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat, 'postprocess': ['guards'] })
+
+       for e in loclist
+               if e['type'] ==? 'd' " is a documentation warning
+                       let e['type'] = 'w'
+                       let e['subtype'] = 'Style'
+               endif
+       endfor
+
+       return loclist
 endfunction
 
 call g:SyntasticRegistry.CreateAndRegisterChecker({