-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathecs.php
More file actions
45 lines (41 loc) · 1.28 KB
/
Copy pathecs.php
File metadata and controls
45 lines (41 loc) · 1.28 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?php
declare(strict_types=1);
use PhpCsFixer\Fixer\FunctionNotation\StaticLambdaFixer;
use PhpCsFixer\Fixer\Phpdoc\GeneralPhpdocAnnotationRemoveFixer;
use PhpCsFixer\Fixer\Phpdoc\NoSuperfluousPhpdocTagsFixer;
use Symplify\CodingStandard\Fixer\LineLength\DocBlockLineLengthFixer;
use Symplify\EasyCodingStandard\Config\ECSConfig;
return ECSConfig::configure()
->withPaths([
__DIR__ . '/src',
__DIR__ . '/rules',
__DIR__ . '/tests',
__DIR__ . '/rules-tests',
__DIR__ . '/ecs.php',
__DIR__ . '/rector.php',
])
->withPreparedSets(psr12: true, common: true, cleanCode: true)
->withConfiguredRule(NoSuperfluousPhpdocTagsFixer::class, [
'allow_mixed' => true,
])
->withConfiguredRule(GeneralPhpdocAnnotationRemoveFixer::class, [
'annotations' => [
'throw',
'throws',
'author',
'authors',
'package',
'group',
'required',
'phpstan-ignore-line',
'phpstan-ignore-next-line',
],
])
->withRules([StaticLambdaFixer::class])
->withSkip([
'*/Source/*',
'*/Fixture/*',
'*/Expected/*',
// buggy - @todo fix on Symplify master
DocBlockLineLengthFixer::class,
]);