-
-
Notifications
You must be signed in to change notification settings - Fork 73
Last 3.x minor | Hard deprecate all sniffs which will be removed in 4.0 #188
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
Comments
It might be worth linking to squizlabs/PHP_CodeSniffer#2448 for context. Being someone that is new to this tool, I was unaware of the previously announced removal of the tokenizers. |
@kczx3 Thanks for adding the link. And yes, increasing awareness about these changes is exactly what this issue is about ;-) |
Related #58: proposed removal of the |
Related #921: The |
It was previously already announced that the 4.0 release will drop support for:
Additionally, the
Squiz.WhiteSpace.LanguageConstructSpacing
sniff was (soft) deprecated in PHPCS 3.3.0 and theGeneric.Formatting.NoSpaceAfterCast
sniff in PHPCS 3.4.0.Providing #164 (PHPCS native handling of sniff deprecations) gets build and included in PHPCS ahead of 4.0, I propose to hard deprecate the sniffs affected by the above mentioned changes in the last PHPCS 3.x minor release.
Terminology used
Soft deprecation: deprecation via changelog mention and/or announcement only.
Hard deprecation: a deprecation notice will be shown at runtime, but will not affect the exit code of PHPCS.
Additional notes
Policy
I also propose to adhere to this as a policy for PHP_CodeSniffer for the future :
I considered always using hard deprecation, but that will be noisier than necessary and will cause additional support questions for external standards using a deprecated sniff, but supporting a range of (minor) PHP_CodeSniffer versions.
The text was updated successfully, but these errors were encountered: