Skip to content

Commit

Permalink
[shopsys] fixed split packages builds (#2810)
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasLudvik authored Sep 18, 2023
2 parents e713e93 + 8dbfdff commit d1ae36c
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions ecs.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);
Expand Down

0 comments on commit d1ae36c

Please sign in to comment.