In your .php-cs-fixer.php
, register the rule and configure those you want to have exclude paths:
<?php
$finder = (new PhpCsFixer\Finder())
->in(__DIR__)
->exclude('var')
;
return (new PhpCsFixer\Config())
->registerCustomFixers([
new \App\Fixer\NotInProxyFixer()
])
->setRules([
'@Symfony' => true,
'@PSR12' => true,
'Barth/not_in' => [
'final_class' => ['except' => [
'src/Entity',
]],
'method_chaining_indentation' => ['except' => [
'src/DependencyInjection',
]],
],
])
->setRiskyAllowed(true)
->setFinder($finder)
;