minor #20731 DX: Update PHP CS Fixer config file (keradus)
This PR was merged into the 2.7 branch.
Discussion
----------
DX: Update PHP CS Fixer config file
| Q | A
| ------------- | ---
| Branch? | 2.7
| Bug fix? | no
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | n/a
| Fixed tickets | n/a
| License | MIT
| Doc PR | n/a
For a good start, updated config for php cs fixer v2.
I would guess that fabbot needs to be updated ;)
Commits
-------
a0e305b
Update PHP CS Fixer config file
This commit is contained in:
commit
79e68965c1
@ -1,15 +1,14 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
return Symfony\CS\Config\Config::create()
|
return PhpCsFixer\Config::create()
|
||||||
->setUsingLinter(false)
|
->setRules(array(
|
||||||
->setUsingCache(true)
|
'@Symfony' => true,
|
||||||
->fixers(array(
|
'@Symfony:risky' => true,
|
||||||
'long_array_syntax',
|
'array_syntax' => array('syntax' => 'long'),
|
||||||
'php_unit_construct',
|
|
||||||
'php_unit_dedicate_assert',
|
|
||||||
))
|
))
|
||||||
->finder(
|
->setRiskyAllowed(true)
|
||||||
Symfony\CS\Finder\DefaultFinder::create()
|
->setFinder(
|
||||||
|
PhpCsFixer\Finder::create()
|
||||||
->in(__DIR__)
|
->in(__DIR__)
|
||||||
->exclude(array(
|
->exclude(array(
|
||||||
// directories containing files with content that is autogenerated by `var_export`, which breaks CS in output code
|
// directories containing files with content that is autogenerated by `var_export`, which breaks CS in output code
|
Reference in New Issue
Block a user