Skip to content

Hard-deprecate all JS specific sniffs#839

Merged
GaryJones merged 1 commit into
developfrom
feature/deprecate-js-only-sniffs
Jul 14, 2025
Merged

Hard-deprecate all JS specific sniffs#839
GaryJones merged 1 commit into
developfrom
feature/deprecate-js-only-sniffs

Conversation

@jrfnl

@jrfnl jrfnl commented Jul 14, 2025

Copy link
Copy Markdown
Collaborator

Removing these sniffs needs to wait for a new major, as it would be a breaking change, however, in the mean time, we can:

  • Exclude the sniffs from both rulesets. This will prevent PHP_CodeSniffer from throwing deprecation notices about these sniffs.
  • Deprecate the sniffs themselves, in case users of the VIP-Coding-Standards would be explicitly including any of these sniff from within their own ruleset.

Fixes #836
Related to #442
Related to #552

Issue #442 should be kept open as a reminder to remove these sniffs in VIPCS 4.0.
Issues #267, #376, #393, #411, #524, #525, #526, #527, #528, #650, #686, which are all related to these sniffs, should probably be closed as superseded by the deprecation and the sniffs no longer being used by the VIPCS native rulesets.

Removing these sniffs needs to wait for a new major, as it would be a breaking change, however, in the mean time, we can:
* Exclude the sniffs from both rulesets. This will prevent PHP_CodeSniffer from throwing deprecation notices about these sniffs.
* Deprecate the sniffs themselves, in case users of the VIP-Coding-Standards would be explicitly including any of these sniff from within their own ruleset.

Fixes 836
Related to 442
Related to 552

Issue 442 should be kept as a reminder to remove these sniffs in VIPCS 4.0.
Issues 267, 376, 393, 411, 524, 525, 526, 527, 528, 650, 686, which are all related to these sniffs, should probably be closed as superseded by the deprecation and the sniffs no longer being used by the VIPCS native rulesets.
@jrfnl jrfnl added this to the 3.1.0 milestone Jul 14, 2025
@jrfnl
jrfnl requested a review from a team as a code owner July 14, 2025 16:54
@GaryJones
GaryJones merged commit 714bc00 into develop Jul 14, 2025
42 checks passed
@GaryJones
GaryJones deleted the feature/deprecate-js-only-sniffs branch July 14, 2025 16:57
@jrfnl

jrfnl commented Jul 14, 2025

Copy link
Copy Markdown
Collaborator Author

@GaryJones Do you agree that the issues I've listed above should be closed ? If so, I'll go and do that ;-)

@GaryJones

Copy link
Copy Markdown
Contributor

I've just done them all!

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.

Remove scanning of JS files

2 participants