forked from revive-adserver/revive-adserver
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathecs.php
More file actions
43 lines (40 loc) · 1.32 KB
/
Copy pathecs.php
File metadata and controls
43 lines (40 loc) · 1.32 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
36
37
38
39
40
41
42
43
<?php
namespace ECS;
use PhpCsFixer\Fixer\ArrayNotation\ArraySyntaxFixer;
use PhpCsFixer\Fixer\Import\NoUnusedImportsFixer;
use Symplify\EasyCodingStandard\Config\ECSConfig;
use PhpCsFixer\Fixer\FunctionNotation\NullableTypeDeclarationForDefaultNullValueFixer;
return ECSConfig::configure()
->withPaths(array_merge(
[
__DIR__ . '/etc',
__DIR__ . '/lib/max',
__DIR__ . '/lib/OA',
__DIR__ . '/lib/OX',
__DIR__ . '/lib/RV',
__DIR__ . '/maintenance',
__DIR__ . '/plugins_repo',
__DIR__ . '/scripts',
__DIR__ . '/www/admin',
__DIR__ . '/www/api',
__DIR__ . '/www/delivery_dev',
__DIR__ . '/www/devel',
__DIR__ . '/tests/testClasses',
],
glob(__DIR__ . '/lib/*.php'),
glob(__DIR__ . '/*.php'),
glob(__DIR__ . '/tests/.php'),
))
->withSkip([
__DIR__ . '/plugins_repo/openXDeveloperToolbox',
__DIR__ . '/www/devel/lib/xajax/examples',
])
->withRules([
ArraySyntaxFixer::class,
NullableTypeDeclarationForDefaultNullValueFixer::class,
NoUnusedImportsFixer::class,
])
->withPhpCsFixerSets(perCS20: true)
->withPreparedSets(psr12: true)
->withCache(__DIR__ . '/var/cache/tools/ecs')
;