Skip to content

Ruleset: hard deprecate support for sniffs not following the naming conventions #892

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

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Mar 18, 2025

Description

The new About Standards for PHP_CodeSniffer wiki page outlines exactly what the naming conventions are.

This PR adds a new Ruleset deprecation notice for when sniffs are encountered which do not follow these conventions.

Support for sniffs not following the naming conventions will be removed in PHPCS 4.0.

Includes tests.

Includes removing two invalid sniffs from the ExpandSniffDirectoryTest. These type of sniffs, which don't comply with the PHPCS naming conventions, are now covered via the new tests.

Suggested changelog entry

Added deprecation notices (hard deprecation) for:

  • Sniffs not following the naming conventions, which will no longer be supported in PHPCS 4.0.

Related issues/external references

Related to #689

…onventions

The new [About Standards for PHP_CodeSniffer](https://github.com/PHPCSStandards/PHP_CodeSniffer/wiki/About-Standards-for-PHP_CodeSniffer) wiki page outlines exactly what the naming conventions are.

This PR adds a new Ruleset deprecation notice for when sniffs are encountered which do not follow these conventions.

Support for sniffs not following the naming conventions will be removed in PHPCS 4.0.

Includes tests.

Includes removing two invalid sniffs from the `ExpandSniffDirectoryTest`. These type of sniffs, which don't comply with the PHPCS naming conventions, are now covered via the new tests.

Related to 689
@jrfnl jrfnl force-pushed the feature/689-ruleset-hard-deprecate-sniffs-breaking-naming-conventions branch from 21fb554 to d23fa30 Compare April 14, 2025 08:47
@jrfnl
Copy link
Member Author

jrfnl commented Apr 14, 2025

Rebased without changes before merging.

@jrfnl jrfnl merged commit 44dd259 into master Apr 14, 2025
61 checks passed
@jrfnl jrfnl deleted the feature/689-ruleset-hard-deprecate-sniffs-breaking-naming-conventions branch April 14, 2025 09:45
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.

None yet

2 participants