-
Notifications
You must be signed in to change notification settings - Fork 0
/
ecs.php
37 lines (31 loc) · 1.34 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;
return static function (ECSConfig $containerConfigurator): void {
$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__ . '/src/whatwedoMonitorBundle.php',
__DIR__ . '/src/DependencyInjection/whatwedoMonitorExtension.php',
],
PhpCsFixer\Fixer\Whitespace\MethodChainingIndentationFixer::class => [
__DIR__ . '/src/DependencyInjection/Configuration.php',
],
PhpCsFixerCustomFixers\Fixer\NoNullableBooleanTypeFixer::class => [
__DIR__ . '/src/Manager/MonitoringManager.php',
],
]);
$containerConfigurator->parallel();
};