From 6777a743530c7c88fdd6e41abbf8f0d63e08123f Mon Sep 17 00:00:00 2001 From: Martin Grossmann Date: Wed, 12 Jul 2023 14:56:02 +0200 Subject: [PATCH] skipped rules for packages are now near packages to fix checks on split repositories --- ecs.php | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/ecs.php b/ecs.php index 94572bfd91..531e5faaab 100644 --- a/ecs.php +++ b/ecs.php @@ -2,6 +2,8 @@ declare(strict_types=1); +use PhpCsFixer\Fixer\FunctionNotation\PhpdocToPropertyTypeFixer; +use PhpCsFixer\Fixer\Strict\DeclareStrictTypesFixer; use Shopsys\CodingStandards\CsFixer\ForbiddenPrivateVisibilityFixer; use Shopsys\CodingStandards\Sniffs\ForceLateStaticBindingForProtectedConstantsSniff; use Shopsys\CodingStandards\Sniffs\ObjectIsCreatedByFactorySniff; @@ -28,11 +30,16 @@ ]); $ecsConfig->skip([ - ObjectIsCreatedByFactorySniff::class => - [ - __DIR__ . '/src/Product/Detail/ProductDetailViewElasticsearchFactory.php', - __DIR__ . '/tests/*', - ], + ObjectIsCreatedByFactorySniff::class => [ + __DIR__ . '/src/Product/Detail/ProductDetailViewElasticsearchFactory.php', + __DIR__ . '/tests/*', + ], + PhpdocToPropertyTypeFixer::class => [ + __DIR__ . '/src/*', + ], + DeclareStrictTypesFixer::class => [ + __DIR__ . '/src/*', + ], ]); $ecsConfig->import(__DIR__ . '/vendor/shopsys/coding-standards/ecs.php', null, true);