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

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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
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