Skip to content

Skip deprecated rules in list-unused-rules script - #8519

Merged
TomasVotruba merged 1 commit into
mainfrom
skip-deprecated-in-list-unused
Sep 29, 2026
Merged

TomasVotruba merged 1 commit into
mainfrom
skip-deprecated-in-list-unused

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

The scripts/list-unused-rules.php flags rules not registered in any set. Deprecated rules are intentionally kept out of sets, so they showed up as false positives.

Filter out rules implementing DeprecatedInterface, mirroring the existing configurable-rule skip, and report the skipped count.

@TomasVotruba
TomasVotruba merged commit ee8e978 into main Sep 29, 2026
45 checks passed
@TomasVotruba
TomasVotruba deleted the skip-deprecated-in-list-unused branch September 29, 2026 09:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant