Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHPCS: use PHPCompatibility proper, not PHPCompatibilityWP #37

Merged
merged 1 commit into from
Jun 16, 2021

Conversation

jrfnl
Copy link
Collaborator

@jrfnl jrfnl commented Jun 16, 2021

When adding the TypeError/Error polyfill (#36), I suddenly realized that the use of the PHPCompatibilityWP ruleset by the Yoast standard was causing certain issues not to show up, while - for this repo - they should be shown.

By setting the severity of all the sniffs in the PHPCompatibilility ruleset back to 5, the excludes from the PHPCompatibilityWP ruleset are effectively "undone" and we are back to using PHPCompatibility proper.

When adding the `TypeError`/`Error` polyfill (#36), I suddenly realized that the use of the `PHPCompatibilityWP` ruleset by the `Yoast` standard was causing certain issues not to show up, while - for this repo - they **_should_** be shown.

By setting the `severity` of all the sniffs in the `PHPCompatibilility` ruleset back to `5`, the `exclude`s from the `PHPCompatibilityWP` ruleset are effectively "undone" and we are back to using `PHPCompatibility` proper.
@jrfnl jrfnl added this to the 1.0.0 milestone Jun 16, 2021
@jrfnl jrfnl merged commit 8dedf60 into develop Jun 16, 2021
@jrfnl jrfnl deleted the feature/phpcs-fix-phpcompatibility branch June 16, 2021 13:48
@jrfnl jrfnl removed the yoastcs/qa label Oct 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant