-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathecs.php
More file actions
36 lines (32 loc) · 1.28 KB
/
ecs.php
File metadata and controls
36 lines (32 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
<?php declare(strict_types=1);
use PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis\AssignmentInConditionSniff;
use PhpCsFixer\Fixer\Basic\PsrAutoloadingFixer;
use PhpCsFixer\Fixer\ClassNotation\ProtectedToPrivateFixer;
use PhpCsFixer\Fixer\Comment\HeaderCommentFixer;
use PhpCsFixer\Fixer\Operator\NotOperatorWithSpaceFixer;
use PhpCsFixer\Fixer\Operator\NotOperatorWithSuccessorSpaceFixer;
use Symplify\EasyCodingStandard\Config\ECSConfig;
use Symplify\EasyCodingStandard\ValueObject\Set\SetList;
return ECSConfig::configure()
->withPaths([
__DIR__ . '/src',
__DIR__ . '/tests'
])
->withSets([
SetList::CLEAN_CODE,
SetList::COMMON,
SetList::STRICT,
SetList::PSR_12,
])
->withRules([
PsrAutoloadingFixer::class,
])
->withSkip([
ProtectedToPrivateFixer::class,
NotOperatorWithSpaceFixer::class,
NotOperatorWithSuccessorSpaceFixer::class,
AssignmentInConditionSniff::class
])
->withConfiguredRule(HeaderCommentFixer::class, ['header' => 'Copyright (c) Ratepay GmbH
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.', 'separate' => 'bottom', 'location' => 'after_declare_strict', 'comment_type' => 'comment']);