-
Notifications
You must be signed in to change notification settings - Fork 0
/
ecs.php
37 lines (29 loc) · 1.21 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
<?php
declare(strict_types=1);
use PHP_CodeSniffer\Standards\Squiz\Sniffs\Classes\ValidClassNameSniff;
use PHP_CodeSniffer\Standards\Squiz\Sniffs\Commenting\ClassCommentSniff;
use PHP_CodeSniffer\Standards\Squiz\Sniffs\Commenting\FileCommentSniff;
use PHP_CodeSniffer\Standards\Squiz\Sniffs\Commenting\FunctionCommentThrowTagSniff;
use Symplify\EasyCodingStandard\Config\ECSConfig;
use Symplify\EasyCodingStandard\ValueObject\Option;
return static function (ECSConfig $containerConfigurator): void {
$parameters = $containerConfigurator->parameters();
$containerConfigurator->paths([
__DIR__ . '/src',
__DIR__ . '/tests',
]);
// run and fix, one by one
$containerConfigurator->import('vendor/whatwedo/php-coding-standard/config/whatwedo-symfony.php');
$containerConfigurator->skip([
FileCommentSniff::class,
ClassCommentSniff::class,
FunctionCommentThrowTagSniff::class,
ValidClassNameSniff::class
=> [
__DIR__ . '/tests/App/var/*',
__DIR__ . '/src/whatwedoCrudHistoryBundle.php',
__DIR__ . '/src/DependencyInjection/whatwedoCrudHistoryExtension.php',
]
]);
$parameters->set(Option::PARALLEL, true);
};