Skip to content

[Console] Add --all option to list-rules to list all existing rules in core and rector-* packages - #8637

Merged
TomasVotruba merged 1 commit into
mainfrom
tv-list-rules-all
Oct 11, 2026
Merged

TomasVotruba merged 1 commit into
mainfrom
tv-list-rules-all

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

The list-rules command only lists rules loaded by the current config. Added --all to list every rule class available on disk, across core and the rector-* packages, regardless of config.

Discovery scans the registered PSR-4 prefixes under the Rector\ namespace for *Rector.php files and keeps concrete RectorInterface implementations (post-rectors and abstract classes excluded).

bin/rector list-rules --all

Works with --output-format=json too.

@TomasVotruba
TomasVotruba merged commit b17ebfe into main Oct 11, 2026
49 checks passed
@TomasVotruba
TomasVotruba deleted the tv-list-rules-all branch October 11, 2026 23:38
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