Repository with various extra PHPCodeSniffer sniffs for WordPress to extend what is linted by the WordPress Coding Standards package.
These extra sniffs are based on less explicitly enforced, but still clearly outlined coding standard rules. Some examples:
- there should be a
@since
tag in every doc block - correct order of tags in every doc block
- correct usage of blank lines between tags in every doc block
- proper indentation and alignment for different segments of a tag in the same group
- ending every doc block description in a full stop
- documenting functions and methods using a third-person verb
BSD 3-Clause "New" or "Revised" License
Any kind of contributions to WPCS Core Extra Sniffs are welcome. Please read the contributing guidelines to get started.