How to create custom ruleset to be run by fix command with option --rules=@custom?
Like @PSR1, @PSR2, @Symfony, @PHP56Migration, @PHP70Migration, @PHP71Migration are made.
Php-cs-fixer version: 2.2.3
Only by inserting into vendor code -vendor/friendsofphp/php-cs-fixer/src/RuleSet.php:
private $setDefinitions = array(
'@custom' => [
'some_custom_fixer` => true,
]
)
Works as I expect, but RuleSet is final class. Is there a way to override or extend the setDefinitions when using custom config .php_cs?