Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New feature: PHPCSDev ruleset
This adds a new external PHPCS standard called
PHPCSDev
for use by sniff developers to check the code style of their sniff repo code.Often, sniff repos will use the code style of the standard they are adding. However, not all sniff repos are actually about code style.
So for those repos which need a basic standard which will still keep their code-base consistent, this standard should be useful.
The standard checks the following:
Note: for optimal results, the project custom ruleset should set the
testVersion
config variable.This is not done by default as config variables are currently difficult to overrule.
Refs:
The ruleset can be used like any other ruleset and specific sniffs and settings can be added to or overruled from a custom project based ruleset.
Includes adding QA checks for this ruleset to the Travis script.
QA: add code style check for the code in this repo
This:
PHPCSDev
ruleset to check the code style of code in this repo.composer.json
file to check the code of the repo.phpcs.xml.dist
file by ignoring the typical overload files.