Reputation: 6253
I've recently installed the syntastic
plugin in my vim installation. However I'm getting annoyed by irrelevant errors reported by syntastic.
I installed in order to make it work code sniffer
and phpmd
.
How can I tell syntastic to stop giving me such irrelevant errors like:
Missing file doc comment
or
Line indented incorrectly; expected at least 8 spaces, found 4
I'd like to get only real errors like missing a semicolon;
Upvotes: 1
Views: 663
Reputation: 10260
As per the discussion in the comments, you can define which syntax checkers to use with the g:syntastic_<filetype>_checkers = []
variable.
In this case, you might want something like this to disable code sniffer (phpcs
):
let g:syntastic_php_checkers = ["php", "phpmd"]
For more information see :h syntastic-filetype-checkers
.
Upvotes: 1