codeclimate / codeclimate-phpcodesniffer

Code Climate Engine for PHP Code Sniffer
MIT License
28 stars 23 forks source link

Support for WordPress PHP coding standards #15

Closed ziodave closed 8 years ago

ziodave commented 8 years ago

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!

soderlind commented 8 years ago

+1

75nineteen commented 8 years ago

+2

vinnylabarbera commented 8 years ago

+1

AlisonLapidus commented 8 years ago

+1

ABaldwinHunter commented 8 years ago

Hi @ziodave Thanks for your feedback! We have exploring that feature on our roadmap.

josephdpurcell commented 8 years ago

I believe this is resolved in https://github.com/codeclimate/codeclimate-phpcodesniffer/pull/34.

dblandin commented 8 years ago

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!