This is a reminder to myself that when you update PHP_CodeSniffer via homebrew, you may need to reset the path to the WP coding standards. That’s what that unhelpful red error is in Atom means.
what happens if you run `phpcs -i` ? it should tell you all of the standards installed. to add your wpcs rules `phpcs –config-set installed_paths /path/to/wpcs/rules`
Yep, phpcs -i shows ALL the WP standards are loaded.
can you paste your ruleset.xml into a gist?
I’ve done so much troubleshooting/insalling/re-installing that I don’t know exactly which ruleset.xml I’m using 😀
well, the error shows it’s looking at the one in htdocs/blogs 🙂
well, shit…that was missing…just replaced it and don’t get the error.
maybe related: I’ve gotten 4 hours sleep in the last two nights….
Thanks man, that fixed the problem. Now, to understand WTF ruleset.xml is doing 😀
You’re on to something. This HAS to be where my problem is…Now I’m getting:
phpcs: ERROR: the “C:/xampp/htdocs/blogs/ruleset.xml” coding standard is not installed.
I can’t figure out where that’s set