Skip to content

Commit 6ad034b

Browse files
committed
🔧 QA: enable feature completeness check for the Debug ruleset
This: * Adds convenience scripts to the `composer.json` file to check the feature completeness of sniffs in this repo. * And adds running of this script to the Travis build.
1 parent 3f2c56f commit 6ad034b

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

.travis.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@ script:
5959
# Lint PHP files against parse errors.
6060
- composer lint
6161

62+
# Check that any sniffs available are feature complete.
63+
# This also acts as an integration test for the feature completeness script,
64+
# which is why it is run against various PHP versions and not in the "Sniff" stage.
65+
- composer check-complete
66+
6267
# Validate the composer.json file on low/high PHP versions.
6368
# @link https://getcomposer.org/doc/03-cli.md#validate
6469
- composer validate --no-check-all --strict

composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@
4242
],
4343
"fix-cs": [
4444
"@php ./vendor/squizlabs/php_codesniffer/bin/phpcbf"
45+
],
46+
"check-complete": [
47+
"@php ./bin/phpcs-check-feature-completeness ./Debug"
4548
]
4649
}
4750
}

0 commit comments

Comments
 (0)