-
Notifications
You must be signed in to change notification settings - Fork 9
/
ecs.php
42 lines (37 loc) · 1.15 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
41
42
<?php
declare (strict_types=1);
use PhpCsFixer\Fixer\Comment\HeaderCommentFixer;
use PhpCsFixer\Fixer\ClassNotation\ClassAttributesSeparationFixer;
use PhpCsFixer\Fixer\Strict\DeclareStrictTypesFixer;
use Symplify\EasyCodingStandard\Config\ECSConfig;
$header = <<<HEADER
This file is part of the "schema" extension for TYPO3 CMS.
For the full copyright and license information, please read the
LICENSE.txt file that was distributed with this source code.
HEADER;
return ECSConfig::configure()
->withSets([
__DIR__ . '/.Build/vendor/brotkrueml/coding-standards/config/common.php',
])
->withParallel()
->withPaths([
__DIR__ . '/Classes',
__DIR__ . '/Configuration',
__DIR__ . '/Tests',
])
->withConfiguredRule(
HeaderCommentFixer::class,
[
'comment_type' => 'comment',
'header' => $header,
'separate' => 'both',
],
)
->withSkip([
ClassAttributesSeparationFixer::class => [
__DIR__ . '/Classes/Extension.php',
],
DeclareStrictTypesFixer::class => [
__DIR__ . '/Configuration/TCA/*',
],
]);