forked from kitpages/KitpagesDataGridBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathecs.php
31 lines (26 loc) · 1.13 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
<?php
declare(strict_types=1);
use PHP_CodeSniffer\Standards\Generic\Sniffs\PHP\ForbiddenFunctionsSniff;
use PhpCsFixer\Fixer\FunctionNotation\PhpdocToParamTypeFixer;
use SlevomatCodingStandard\Sniffs\TypeHints\ParameterTypeHintSniff;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
use Symplify\EasyCodingStandard\ValueObject\Option;
return static function (ContainerConfigurator $containerConfigurator): void {
$parameters = $containerConfigurator->parameters();
$parameters->set(
Option::SKIP,
[
ForbiddenFunctionsSniff::class => [
'src/Grid/Grid.php',
],
PhpdocToParamTypeFixer::class => [
'src/Hydrators/DataGridHydrator.php',
],
ParameterTypeHintSniff::class . '.' . ParameterTypeHintSniff::CODE_MISSING_NATIVE_TYPE_HINT => [
'src/Hydrators/DataGridHydrator.php',
],
],
);
$containerConfigurator->import(__DIR__ . '/vendor/lmc/coding-standard/ecs.php');
$containerConfigurator->import(__DIR__ . '/vendor/lmc/coding-standard/ecs-8.1.php');
};