WPTT / WPThemeReview

PHP_CodeSniffer rules (sniffs) to enforce WordPress theme review coding conventions
MIT License
207 stars 38 forks source link

Travis/QA: always check that all sniffs are feature complete #249

Closed jrfnl closed 4 years ago

jrfnl commented 4 years ago

The new phpcsstandards/phpcsdevtools package includes a script which can check whether sniffs are feature complete, i.e. whether all sniffs have unit tests and documentation.

By adding this check to the Travis script, we prevent untested and/or undocumented sniffs from entering the repo.

For now, the documentation check is silenced.

Ref: https://github.com/PHPCSStandards/PHPCSDevTools#checking-whether-all-sniffs-in-a-phpcs-standard-are-feature-complete

P.S.: the PHPCSDevTools package contains a few more goodies, have a look at the readme for more information.