codeclimate/codeclimate-phpcodesniffer

WordPress-VIP issues display when config is set to "WordPress"

sfgarza opened this issue · 4 comments

I have my codeclimate config set up like this

phpcodesniffer:
    enabled: true
    config:
      standard: "WordPress"

But WordPress-VIP issues are showing up codeclimate

+1

Hey @sfgarza,

Happy to hear that you're checking out the new Wordpress support!

As it's mentioned in the WordPress-Coding-Standards README, the WordPress standard includes the complete set with all of the sniffs in the project. This includes WordPress-Core, Wordpress-Docs, Wordpress-Extra, and Wordpress-VIP.

If you don't want Wordpress-VIP issues, you should choose another standard option.

This can be a single entry, like "Wordpress-Core", or a comma-separate list, omitting "Wordpress-VIP":

phpcodesniffer:
  enabled: true
    config:
      standard: "WordPress-Core,Wordpress-Docs,Wordpress-Extra"

Going to close this issue for now. Let me know if you have any more questions. Thanks!

Got it. That makes sense. Thanks!