-
Notifications
You must be signed in to change notification settings - Fork 2
/
.php-cs-fixer.dist.php
30 lines (29 loc) · 1.13 KB
/
.php-cs-fixer.dist.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php
return (new PhpCsFixer\Config())
->setParallelConfig(PhpCsFixer\Runner\Parallel\ParallelConfigFactory::detect())
->setRules([
'@Symfony' => true,
'@Symfony:risky' => true,
'array_syntax' => array('syntax' => 'short'),
'no_unreachable_default_argument_value' => false,
'braces' => array('allow_single_line_closure' => true),
'heredoc_to_nowdoc' => false,
'phpdoc_annotation_without_dot' => false,
'php_unit_test_annotation' => ['style' => 'annotation'],
'php_unit_method_casing' => false,
'psr_autoloading' => false,
'phpdoc_to_comment' => false,
'phpdoc_separation' => ['skip_unlisted_annotations' => true], // https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/6668; antizipiert das Default der nächsten Major Version
])
->setRiskyAllowed(true)
->setFinder(
PhpCsFixer\Finder::create()
->in(__DIR__)
->notPath('conf/')
->notPath('tmp/')
->notPath('node_modules/')
->notPath('var/cache')
->notPath('vendor/')
->notPath('www')
)
;