Skip to content

Add --rule option to process only single rule from set#1640

Merged
TomasVotruba merged 1 commit intomasterfrom
single-rule
Jun 23, 2019
Merged

Add --rule option to process only single rule from set#1640
TomasVotruba merged 1 commit intomasterfrom
single-rule

Conversation

@TomasVotruba
Copy link
Copy Markdown
Member

@TomasVotruba TomasVotruba commented Jun 23, 2019

bin/rector process packages/Guzzle --set symfony43 -n -vvv --rule "Rector\Symfony\Rector\MethodCall\SimplifyWebTestCaseAssertionsRector"

Must be quoted, or "\ " are trimmed

@TomasVotruba TomasVotruba merged commit a13adc2 into master Jun 23, 2019
@TomasVotruba TomasVotruba deleted the single-rule branch June 23, 2019 13:20
@TomasVotruba
Copy link
Copy Markdown
Member Author

TomasVotruba commented Jun 23, 2019

@TomasVotruba
Copy link
Copy Markdown
Member Author

This feature is causing some confusion in how to work with sets and rules, as it give 2 ways to do 1 thing:
#4690

Also after switch from YAML to PHP configs: https://getrector.org/blog/2020/08/31/rector-is-moving-from-yaml-to-php-configs-what-changes-and-how-to-get-ready,
and dropping --set CLI option to make use of the PHP configs,
this feature is contradictory towards PHP autocomplete filosophy

Sayint that, it will be probably removed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant