Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 439 Bytes

how_to_run_one_rule_from_command_line.md

File metadata and controls

13 lines (9 loc) · 439 Bytes

How Run One Rule From Command Line

Do you have config that includes many sets and Rectors? You might want to run only a single Rector. The --only argument allows that, e.g.:

vendor/bin/rector process src --set solid --only Rector\SOLID\Rector\Class_\FinalizeClassesWithoutChildrenRector

Too long? Use a short class name:

vendor/bin/rector process src --set solid --only FinalizeClassesWithoutChildrenRector