Skip to content

[Console] Undeprecate list-rules command - #8533

Merged
TomasVotruba merged 1 commit into
mainfrom
undeprecate-list-rules
Oct 7, 2026
Merged

TomasVotruba merged 1 commit into
mainfrom
undeprecate-list-rules

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

Restores the list-rules command (alias show-rules) to list loaded Rector rules again.

The command was deprecated in #8396 and gutted to only print an error. This reverts the command body to its working form - listing loaded rules, skipped rules, and supporting --output-format=json.

DI wiring in LazyContainerFactory was left intact during deprecation, so the array $rectors dependency autowires via the container's docblock-based collection resolution. Verified locally: bin/rector list-rules lists 600 rules.

ECS and PHPStan pass.

@TomasVotruba

Copy link
Copy Markdown
Member Author

Let's revert, this is much needed

@TomasVotruba
TomasVotruba merged commit f09358a into main Oct 7, 2026
50 checks passed
@TomasVotruba
TomasVotruba deleted the undeprecate-list-rules branch October 7, 2026 10:00
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