generated from spatie/package-skeleton-laravel
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathecs.php
24 lines (21 loc) · 887 Bytes
/
ecs.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
<?php
declare(strict_types=1);
use PhpCsFixer\Fixer\FunctionNotation\FunctionDeclarationFixer;
use PhpCsFixer\Fixer\Operator\NewWithBracesFixer;
use PhpCsFixer\Fixer\Operator\NewWithParenthesesFixer;
use PhpCsFixer\Fixer\Phpdoc\GeneralPhpdocAnnotationRemoveFixer;
use Symplify\EasyCodingStandard\Config\ECSConfig;
return ECSConfig::configure()
->withPaths([__DIR__ . '/config', __DIR__ . '/src', __DIR__ . '/tests'])
->withPreparedSets(psr12: true, common: true, symplify: true, strict: true, cleanCode: true)
->withPhpCsFixerSets(perCS20: true)
->withConfiguredRule(FunctionDeclarationFixer::class, [
'closure_function_spacing' => 'one',
])
->withSkip([
__DIR__ . '/src/Commands/stubs',
GeneralPhpdocAnnotationRemoveFixer::class,
NewWithParenthesesFixer::class,
NewWithBracesFixer::class,
])
->withRootFiles();