mirror of
https://github.com/symfony/recipes.git
synced 2026-09-11 15:16:30 +03:00
Exclude config/{bundles,reference}.php from php-cs-fixer finder (#1518)
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
$finder = (new PhpCsFixer\Finder())
|
||||
->in(__DIR__)
|
||||
->exclude('var')
|
||||
->notPath([
|
||||
'config/bundles.php',
|
||||
'config/reference.php',
|
||||
])
|
||||
;
|
||||
|
||||
return (new PhpCsFixer\Config())
|
||||
->setRules([
|
||||
'@Symfony' => true,
|
||||
])
|
||||
->setFinder($finder)
|
||||
;
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"aliases": ["cs-fixer", "php-cs-fixer"],
|
||||
"copy-from-recipe": {
|
||||
".php-cs-fixer.dist.php": ".php-cs-fixer.dist.php"
|
||||
},
|
||||
"gitignore": [
|
||||
"/.php-cs-fixer.php",
|
||||
"/.php-cs-fixer.cache"
|
||||
]
|
||||
}
|
||||
@@ -3,6 +3,10 @@
|
||||
$finder = (new PhpCsFixer\Finder())
|
||||
->in(__DIR__)
|
||||
->exclude('var')
|
||||
->notPath([
|
||||
'config/bundles.php',
|
||||
'config/reference.php',
|
||||
])
|
||||
;
|
||||
|
||||
return (new PhpCsFixer\Config())
|
||||
|
||||
Reference in New Issue
Block a user