File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 5757
5858 - name : Show PHPCS results in PR
5959 run : cs2pr ./phpcs-report.xml
60+
61+ # Check that the sniffs available are feature complete.
62+ # For now, just check that all sniffs have unit tests.
63+ # At a later stage the documentation check can be activated.
64+ - name : Check sniff feature completeness
65+ run : composer check-complete
Original file line number Diff line number Diff line change 2525 "php-parallel-lint/php-parallel-lint" : " ^1.0" ,
2626 "php-parallel-lint/php-console-highlighter" : " ^0.5" ,
2727 "phpcompatibility/php-compatibility" : " ^9" ,
28+ "phpcsstandards/phpcsdevtools" : " ^1.0" ,
2829 "phpunit/phpunit" : " ^4 || ^5 || ^6 || ^7"
2930 },
3031 "scripts" : {
3738 "phpcs" : " bin/phpcs" ,
3839 "phpunit" : " bin/unit-tests" ,
3940 "coverage" : " bin/unit-tests-coverage" ,
41+ "check-complete" : [
42+ " @php ./vendor/phpcsstandards/phpcsdevtools/bin/phpcs-check-feature-completeness -q ./WordPressVIPMinimum"
43+ ],
4044 "test" : [
4145 " @lint" ,
4246 " @ruleset" ,
4347 " @phpunit" ,
44- " @phpcs"
48+ " @phpcs" ,
49+ " @check-complete"
4550 ]
4651 },
4752 "support" : {
You can’t perform that action at this time.
0 commit comments