-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathecs.php
40 lines (33 loc) · 1.37 KB
/
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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?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\Option;
use Symplify\EasyCodingStandard\ValueObject\Set\SetList;
return static function (ECSConfig $ecsConfig): void {
$ecsConfig->ruleWithConfiguration(HeaderCommentFixer::class, ['header' => 'Copyright (c) Billie 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']);
$ecsConfig->sets([
SetList::CLEAN_CODE,
SetList::COMMON,
SetList::STRICT,
SetList::PSR_12,
]);
$ecsConfig->rules([
PsrAutoloadingFixer::class
]);
$ecsConfig->skip([
ProtectedToPrivateFixer::class,
NotOperatorWithSpaceFixer::class,
NotOperatorWithSuccessorSpaceFixer::class,
AssignmentInConditionSniff::class
]);
$ecsConfig->paths([
__DIR__ . '/src'
]);
};