From 6d4a645fd671b5ba6fadda050ae4fb2ca91c350a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Machulda?= Date: Thu, 9 May 2024 16:20:00 +0200 Subject: [PATCH] BREAKING CHANGE: Remove ecs-8.x.php files to simplify configuration --- README.md | 14 +------------- composer.json | 2 +- ecs-8.1.php | 5 ----- ecs-8.2.php | 6 ------ ecs-8.3.php | 6 ------ 5 files changed, 2 insertions(+), 31 deletions(-) delete mode 100644 ecs-8.1.php delete mode 100644 ecs-8.2.php delete mode 100644 ecs-8.3.php diff --git a/README.md b/README.md index c85a1dd..5b57997 100644 --- a/README.md +++ b/README.md @@ -26,24 +26,12 @@ use Symplify\EasyCodingStandard\Config\ECSConfig; return ECSConfig::configure() ->withPaths([__DIR__ . '/src', __DIR__ . '/tests']) // optionally add 'config' or other directories with PHP files - ->withRootFiles() // to include ecs.php and all other php files in the root directory + ->withRootFiles() // to also check ecs.php and all other php files in the root directory ->withSets( [ __DIR__ . '/vendor/lmc/coding-standard/ecs.php', ] ); - - // By default, only checks compatible with PHP 8.0 are enabled. - // Depending on the lowest PHP version your project needs to support, you can enable additional checks. - - // Import one of ecs-8.1.php, ecs-8.2.php or ecs-8.3.php. Use only one additional file (for the highest possible - // PHP version), the configs for previous versions are automatically included. - //->withSets( - // [ - // __DIR__ . '/vendor/lmc/coding-standard/ecs.php', - // __DIR__ . '/vendor/lmc/coding-standard/ecs-8.3.php', - // ] - //); ``` 2. Run the check command diff --git a/composer.json b/composer.json index 3909a6a..3a1d790 100644 --- a/composer.json +++ b/composer.json @@ -63,7 +63,7 @@ "vendor/bin/ecs check --config=ecs-internal.php --ansi --fix" ], "lint": [ - "vendor/bin/parallel-lint -j 10 -e php ./src ./tests ecs.php ecs-8.1.php ecs-8.2.php ecs-8.3.php", + "vendor/bin/parallel-lint -j 10 -e php ./src ./tests ecs.php", "@composer validate", "@composer normalize --dry-run" ], diff --git a/ecs-8.1.php b/ecs-8.1.php deleted file mode 100644 index f5adedb..0000000 --- a/ecs-8.1.php +++ /dev/null @@ -1,5 +0,0 @@ -withSets([__DIR__ . '/ecs-8.1.php']); diff --git a/ecs-8.3.php b/ecs-8.3.php deleted file mode 100644 index 3c0ad94..0000000 --- a/ecs-8.3.php +++ /dev/null @@ -1,6 +0,0 @@ -withSets([__DIR__ . '/ecs-8.2.php']);