-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathecs.php
27 lines (24 loc) · 970 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 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 $ecsConfig): void {
$ecsConfig->paths([
__DIR__ . '/src',
__DIR__ . '/tests',
]);
$ecsConfig->import('vendor/whatwedo/php-coding-standard/config/whatwedo-symfony.php');
$ecsConfig->skip([
FileCommentSniff::class,
ClassCommentSniff::class,
FunctionCommentThrowTagSniff::class,
ValidClassNameSniff::class => [
__DIR__ . '/src/whatwedoCronBundle.php',
__DIR__ . '/src/DependencyInjection/whatwedoCronExtension.php',
],
]);
$ecsConfig->parallel();
};