forked from contao/contao
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathecs.php
60 lines (56 loc) · 1.98 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?php
declare(strict_types=1);
/*
* This file is part of Contao.
*
* (c) Leo Feyer
*
* @license LGPL-3.0-or-later
*/
use Contao\EasyCodingStandard\Set\SetList;
use PhpCsFixer\Fixer\Comment\HeaderCommentFixer;
use PhpCsFixer\Fixer\Whitespace\MethodChainingIndentationFixer;
use SlevomatCodingStandard\Sniffs\Variables\UnusedVariableSniff;
use Symplify\EasyCodingStandard\Config\ECSConfig;
use Symplify\EasyCodingStandard\ValueObject\Option;
return ECSConfig::configure()
->withSets([SetList::CONTAO])
->withPaths([
__DIR__.'/calendar-bundle/src',
__DIR__.'/calendar-bundle/tests',
__DIR__.'/comments-bundle/src',
__DIR__.'/comments-bundle/tests',
__DIR__.'/core-bundle/src',
__DIR__.'/core-bundle/tests',
__DIR__.'/faq-bundle/src',
__DIR__.'/faq-bundle/tests',
__DIR__.'/listing-bundle/src',
__DIR__.'/maker-bundle/src',
__DIR__.'/maker-bundle/tests',
__DIR__.'/manager-bundle/bin',
__DIR__.'/manager-bundle/src',
__DIR__.'/manager-bundle/tests',
__DIR__.'/news-bundle/src',
__DIR__.'/news-bundle/tests',
__DIR__.'/newsletter-bundle/src',
__DIR__.'/newsletter-bundle/tests',
__DIR__.'/test-case/src',
__DIR__.'/vendor-bin/ecs/config',
__DIR__.'/vendor-bin/isolated-tests/src',
__DIR__.'/vendor-bin/phpstan/src',
__DIR__.'/vendor-bin/service-linter/src',
])
->withSkip([
MethodChainingIndentationFixer::class => [
'*/DependencyInjection/Configuration.php',
],
UnusedVariableSniff::class => [
'core-bundle/tests/Session/Attribute/ArrayAttributeBagTest.php',
],
])
->withRootFiles()
->withParallel()
->withSpacing(Option::INDENTATION_SPACES, "\n")
->withConfiguredRule(HeaderCommentFixer::class, ['header' => "This file is part of Contao.\n\n(c) Leo Feyer\n\n@license LGPL-3.0-or-later"])
->withCache(sys_get_temp_dir().'/ecs/contao5x')
;