diff --git a/.github/workflows/run-checks-tests.yaml b/.github/workflows/run-checks-tests.yaml index 0c6b132f3..00fc28891 100644 --- a/.github/workflows/run-checks-tests.yaml +++ b/.github/workflows/run-checks-tests.yaml @@ -20,9 +20,5 @@ jobs: tools: composer - name: Install Composer dependencies run: composer install --optimize-autoloader --no-interaction - - name: Run parallel-lint - run: php vendor/bin/parallel-lint ./src ./tests - - name: Run Easy Coding Standards - run: php vendor/bin/ecs check --verbose ./src ./tests - name: Run PHPUnit run: php vendor/bin/phpunit tests diff --git a/composer.json b/composer.json index 8807528d5..3a21df6f8 100644 --- a/composer.json +++ b/composer.json @@ -44,13 +44,11 @@ "twig/twig": "^3.5.0" }, "require-dev": { - "phpunit/phpunit": "^9.5.20", - "shopsys/coding-standards": "15.0.x-dev" + "phpunit/phpunit": "^9.5.20" }, "config": { "allow-plugins": { - "symfony/flex": true, - "dealerdirect/phpcodesniffer-composer-installer": true + "symfony/flex": true } } } diff --git a/ecs.php b/ecs.php deleted file mode 100644 index ace0ab33a..000000000 --- a/ecs.php +++ /dev/null @@ -1,59 +0,0 @@ -rule(ForceLateStaticBindingForProtectedConstantsSniff::class); - - /* - * this package is meant to be extensible using class inheritance, - * so we want to avoid private visibilities in the model namespace - */ - $services = $ecsConfig->services(); - $services->set('forbidden_private_visibility_fixer.product_feed_heureka', ForbiddenPrivateVisibilityFixer::class) - ->call('configure', [ - [ - 'analyzed_namespaces' => [ - 'Shopsys\ProductFeed\HeurekaBundle\Model', - ], - ], - ]); - - $ecsConfig->skip([ - FunctionLengthSniff::class => [ - __DIR__ . '/src/DataFixtures/HeurekaProductDataFixture.php', - __DIR__ . '/tests/Unit/HeurekaFeedTest.php', - ], - ValidVariableNameSniff::class . '.MemberNotCamelCaps' => [ - __DIR__ . '/src/Model/HeurekaCategory/HeurekaCategoryDownloader.php', - ], - ValidVariableNameSniff::class . '.NotCamelCaps' => [ - __DIR__ . '/src/Model/HeurekaCategory/HeurekaCategoryDownloader.php', - ], - ObjectIsCreatedByFactorySniff::class => [ - __DIR__ . '/tests/*', - ], - PhpdocToPropertyTypeFixer::class => [ - __DIR__ . '/src/*', - ], - PropertyTypeHintSniff::class => [ - __DIR__ . '/src/Model/Product/HeurekaProductDomain.php', - __DIR__ . '/src/Model/HeurekaCategory/HeurekaCategory.php', - ], - ]); - - $ecsConfig->import(__DIR__ . '/vendor/shopsys/coding-standards/ecs.php', null, true); -};