wordpress.vim icon indicating copy to clipboard operation
wordpress.vim copied to clipboard

Changing filetype conflicts with syntastic

Open LeighBicknell opened this issue 9 years ago • 1 comments

Syntastic using php filetype to determine which checkers to run on save.

It's attempting to run SyntaxCheckers_wordpress_phpcs (As I use php codesniffer). Which is failing :/

LeighBicknell avatar Nov 17 '15 11:11 LeighBicknell

Background: I usually just have php set as my phpchecker, I then have a mapping that allows me to switch to a more aggressive checking that runs php, phpcs and phpmd when I need to.

I managed to solve this by setting g:syntastic_wordpress_checkers = ['php']

This some how seemed to fix the problem and still allow me to use my switcher to more aggressive checking without failing... I'm not entirely sure how or why this works if i'm honest but maybe it will help others.

LeighBicknell avatar Nov 17 '15 11:11 LeighBicknell