-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(php-cs-fixer): separate from code-quality-pack, add new rule sets…
…, change cache path - require v3.11 for `phpdoc_separation` => `groups` as it was introduced in this version (PHP-CS-Fixer/PHP-CS-Fixer@a7ed665) - added these rule sets : `@PhpCsFixer`, `@PhpCsFixer:risky`, `@Symfony:risky` - removed redundant rules configuration - moved cache file to `var/cache/.php-cs-fixer.cache`
- Loading branch information
1 parent
0938b53
commit 9960c8e
Showing
6 changed files
with
42 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
{ | ||
"copy-from-recipe": { | ||
".editorconfig": ".editorconfig", | ||
".php-cs-fixer.dist.php": ".php-cs-fixer.dist.php", | ||
"phpstan.neon.dist": "phpstan.neon.dist", | ||
"tests/object-manager.php": "tests/object-manager.php" | ||
}, | ||
"gitignore": [ | ||
"phpstan.neon", | ||
".php-cs-fixer.cache" | ||
"phpstan.neon" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
{ | ||
"copy-from-recipe": { | ||
".php_cs.dist": ".php_cs.dist" | ||
}, | ||
"gitignore": [ | ||
".php_cs" | ||
] | ||
} | ||
"aliases": ["cs-fixer", "php-cs-fixer"], | ||
"copy-from-recipe": { | ||
".php-cs-fixer.dist.php": ".php-cs-fixer.dist.php" | ||
}, | ||
"gitignore": [ | ||
"/.php-cs-fixer.php" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
$finder = PhpCsFixer\Finder::create() | ||
->in(__DIR__.'/migrations') | ||
->in(__DIR__.'/src') | ||
->in(__DIR__.'/tests') | ||
; | ||
|
||
return (new PhpCsFixer\Config()) | ||
->setRiskyAllowed(true) | ||
->setRules([ | ||
'@PhpCsFixer' => true, | ||
'@PhpCsFixer:risky' => true, | ||
'@Symfony' => true, | ||
'@Symfony:risky' => true, | ||
'@DoctrineAnnotation' => true, | ||
'phpdoc_separation' => [ | ||
'groups' => [['ORM\\*'], ['Assert\\*']], | ||
], | ||
]) | ||
->setFinder($finder) | ||
->setCacheFile('var/cache/.php-cs-fixer.cache') | ||
; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"aliases": ["cs-fixer", "php-cs-fixer"], | ||
"copy-from-recipe": { | ||
".php-cs-fixer.dist.php": ".php-cs-fixer.dist.php" | ||
}, | ||
"gitignore": [ | ||
"/.php-cs-fixer.php" | ||
] | ||
} |