I would like to get the general sentiment about adopting WPCS to our plugin and theme Directory.
I added a poll to vote on
- “Enforce” (make it mandatory to pass WPCS 100% unless exceptions which need to be documented in a code comment)
- “Label” (provide a label or badge to plugins/themes that do follow the standards, but make it optional, thus not mandatory)
- “Other” (do not agree with either, please explain in comments why and what instead)
Obviously, should go without saying, security related issues will or should always be enforced.
If this poll would show a general acceptance, we can still discuss if certain rules (like Yoda) could be “ignored”.
IMO, it would do a big advantage to our directory if everything would be following the same standards, not only from a quality point of view, but also from a review point of view (if a reviewer needs to dig inside 1000 errors, 998 of which are just beautifier related, it makes it very hard to find actual issues)
Also, it could be a good “teaching resource” for novices, and generally just a “best approach” to enforce standards.