WPCS 2.0.0: Remove the PHPCSAliases file #1596
Merged
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.
After extensive testing based on issues which were previously reported, I've concluded that the
PHPCSAliases.php
file can now be safely removed.Test setup I've used to confirm this:
installed_paths
config directive being set.Tests I've run:
vendor/bin/phpcs
on the above (which would be with WPCS 1.2.1) works fine.config
directive value to point to my local WPCS dev install:<config name="installed_paths" value="I:/path/to/WordPress-Coding-Standards/WordPress-Coding-Standards"/>
develop
branch, still was working fine.<rule ref..>
to<rule ref="WordPress-Core"/>
and still working fine.<rule ref..>
to<rule ref="WordPress.Security"/>
, i.e. not a registered standard, but a subcategory and still working fine.Based on all this, I'm concluding that the WPCS autoloader in the PHPCSAlias file is no longer needed and can now be safely removed.
Refs:
installed_paths
only set via a custom ruleset squizlabs/PHP_CodeSniffer#1591This is the last PR in the series to drop PHPCS 2.x support and the work related to issue #1048 can now be considered finished.
Closes #1048