-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathecs.php
27 lines (20 loc) · 910 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
<?php
declare(strict_types=1);
use Contao\EasyCodingStandard\Fixer\CommentLengthFixer;
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',
__DIR__.'/contao',
]);
$ecsConfig->ruleWithConfiguration(HeaderCommentFixer::class, [
'header' => "This file is part of the Contao Masonry extension.\n\n(c) Dirk Klemmt\n(c) Fritz Michael Gschwantner",
]);
$ecsConfig->skip([CommentLengthFixer::class, MethodChainingIndentationFixer::class]);
$ecsConfig->parallel();
$ecsConfig->lineEnding("\n");
$ecsConfig->cacheDirectory(sys_get_temp_dir().'/ecs_default_cache');
};