[Scripts] Add list-non-composer-based-rules.php script - #8276
Merged
Conversation
TomasVotruba
force-pushed
the
list-non-composer-based-rules-script
branch
3 times, most recently
from
August 3, 2026 16:54
3e65e6f to
7462b26
Compare
…ed rules in list-unused-rules.php
TomasVotruba
force-pushed
the
list-non-composer-based-rules-script
branch
from
August 3, 2026 17:14
7462b26 to
b48a514
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two changes to the rule-listing scripts.
1.
scripts/list-unused-rules.php— skip deprecated rulesRectorClassFinderalready skipped rules implementingDeprecatedInterface. Now it also skips rules deprecated via docblock or attribute only:2. New
scripts/list-non-composer-based-rules.phpLists rules from core, doctrine, phpunit and symfony that are not registered in any
composer-based.phpset — these are candidates for dead rules, as they are not bound to the installed package version.Output:
The
UsedRectorClassResolverclass was moved out oflist-unused-rules.phpintoscripts/src/Resolver/, so both scripts share it.