Support for WordPress PHP coding standards
Closed this issue · 7 comments
Hello,
PHP_CodeSniffer doesn't support WordPress coding standards oob, https://github.com/squizlabs/PHP_CodeSniffer/tree/master/CodeSniffer/Standards.
However these are available here: https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards
Is it possible to add support for WordPress coding standards?
Thanks!
+1
+2
+1
+1
Hi @ziodave Thanks for your feedback! We have exploring that feature on our roadmap.
I believe this is resolved in #34.
Hey @ziodave,
Thanks to the contributions of @josephdpurcell in #34, we now vendor WordPress coding standards within the engine! These standards are available today via the CLI or codeclimate.com.
The README has been updated with a list of supported standards. You can enable the Wordpress standards by updating your codeclimate.yml configuration file:
phpcodesniffer:
enabled: true
config:
standard: "Wordpress"Thanks for your patience and 👏 to @josephdpurcell!