-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ecs.php
29 lines (22 loc) · 871 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 PhpCsFixer\Fixer\Comment\HeaderCommentFixer;
use PhpCsFixer\Fixer\Whitespace\MethodChainingIndentationFixer;
use Symplify\EasyCodingStandard\Config\ECSConfig;
return static function (ECSConfig $ecsConfig): void {
$ecsConfig->sets([__DIR__.'/vendor/contao/easy-coding-standard/config/contao.php']);
$ecsConfig->paths([
__DIR__.'/src',
]);
$ecsConfig->skip([
MethodChainingIndentationFixer::class => [
'*/DependencyInjection/Configuration.php',
],
]);
$ecsConfig->ruleWithConfiguration(HeaderCommentFixer::class, [
'header' => "This file is part of the Contao Crawler Authenticator extension.\n\n(c) INSPIRED MINDS",
]);
$ecsConfig->parallel();
$ecsConfig->lineEnding("\n");
$ecsConfig->cacheDirectory(sys_get_temp_dir().'/ecs_default_cache');
};