wordpress.vim
wordpress.vim copied to clipboard
Changing filetype conflicts with syntastic
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 :/
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.