-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathecs.php
29 lines (26 loc) · 928 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
25
26
27
28
29
<?php
declare(strict_types=1);
use Contao\EasyCodingStandard\Fixer\CommentLengthFixer;
use Contao\EasyCodingStandard\Set\SetList;
use PhpCsFixer\Fixer\Comment\HeaderCommentFixer;
use PhpCsFixer\Fixer\Whitespace\MethodChainingIndentationFixer;
use Symplify\EasyCodingStandard\Config\ECSConfig;
return ECSConfig::configure()
->withSets([SetList::CONTAO])
->withPaths([
__DIR__.'/contao',
__DIR__.'/src',
])
->withSkip([
MethodChainingIndentationFixer::class => [
'*/DependencyInjection/Configuration.php',
],
CommentLengthFixer::class => ['*'],
])
->withConfiguredRule(HeaderCommentFixer::class, [
'header' => "This file is part of the Contao File Access extension.\n\n(c) INSPIRED MINDS\n\n@license LGPL-3.0-or-later",
])
->withParallel()
->withSpacing(lineEnding: "\n")
->withCache(sys_get_temp_dir().'/ecs_default_cache')
;