Skip to content

Commit

Permalink
Bump ECS to Zen Config (#258)
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba authored Feb 9, 2024
1 parent f6b9b1d commit 477fd21
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 38 deletions.
14 changes: 6 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,22 @@
"license": "MIT",
"description": "Rector upgrades rules for Doctrine",
"require": {
"php": ">=8.1"
"php": ">=8.2"
},
"require-dev": {
"phpstan/extension-installer": "^1.3",
"rector/phpstan-rules": "^0.7",
"phpstan/phpstan": "^1.10",
"phpunit/phpunit": "^10.3",
"phpstan/phpstan": "^1.10.57",
"phpunit/phpunit": "^10.5",
"symplify/phpstan-rules": "^11.1",
"symplify/phpstan-extensions": "^11.2",
"symplify/easy-coding-standard": "^12.0",
"symplify/easy-coding-standard": "^12.1",
"symplify/rule-doc-generator": "^12.0",
"rector/rector-src": "dev-main",
"doctrine/orm": "^2.16",
"doctrine/orm": "^2.18",
"phpstan/phpstan-webmozart-assert": "^1.2",
"symplify/vendor-patches": "^11.2",
"rector/rector-generator": "^0.7.5",
"rector/rector-generator": "^0.7.10",
"tomasvotruba/unused-public": "^0.3",
"tomasvotruba/type-coverage": "^0.2",
"tomasvotruba/class-leak": "^0.2",
"tracy/tracy": "^2.10"
},
Expand Down
13 changes: 0 additions & 13 deletions easy-ci.php

This file was deleted.

24 changes: 7 additions & 17 deletions ecs.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,16 @@

declare(strict_types=1);

use PhpCsFixer\Fixer\ReturnNotation\ReturnAssignmentFixer;
use Symplify\EasyCodingStandard\ValueObject\Set\SetList;
use Symplify\EasyCodingStandard\Config\ECSConfig;

return static function (\Symplify\EasyCodingStandard\Config\ECSConfig $ecsConfig): void {
$ecsConfig->sets([SetList::PSR_12, SetList::SYMPLIFY, SetList::COMMON, SetList::CLEAN_CODE]);

$ecsConfig->paths([
return ECSConfig::configure()
->withPreparedSets(psr12: true, common: true, cleanCode: true, symplify: true)
->withPaths([
__DIR__ . '/src',
__DIR__ . '/rules',
__DIR__ . '/rules-tests',
__DIR__ . '/tests',
__DIR__ . '/config',
__DIR__ . '/ecs.php',
]);

$ecsConfig->skip([
'*/Source/*', '*/Fixture/*',
// breaks annotated code - removed on symplify dev-main
ReturnAssignmentFixer::class,
]);

$ecsConfig->lineEnding("\n");
};
])
->withRootFiles()
->withSkip(['*/Source/*', '*/Fixture/*']);

0 comments on commit 477fd21

Please sign in to comment.