Skip to content

Commit 8e9163c

Browse files
authored
Merge pull request #96 from lmc-eu/feature/extra-configs
BREAKING CHANGE: Remove ecs-8.x.php files to simplify configuration
2 parents 06f2318 + 6d4a645 commit 8e9163c

File tree

5 files changed

+2
-31
lines changed

5 files changed

+2
-31
lines changed

README.md

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -26,24 +26,12 @@ use Symplify\EasyCodingStandard\Config\ECSConfig;
2626

2727
return ECSConfig::configure()
2828
->withPaths([__DIR__ . '/src', __DIR__ . '/tests']) // optionally add 'config' or other directories with PHP files
29-
->withRootFiles() // to include ecs.php and all other php files in the root directory
29+
->withRootFiles() // to also check ecs.php and all other php files in the root directory
3030
->withSets(
3131
[
3232
__DIR__ . '/vendor/lmc/coding-standard/ecs.php',
3333
]
3434
);
35-
36-
// By default, only checks compatible with PHP 8.0 are enabled.
37-
// Depending on the lowest PHP version your project needs to support, you can enable additional checks.
38-
39-
// 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
40-
// PHP version), the configs for previous versions are automatically included.
41-
//->withSets(
42-
// [
43-
// __DIR__ . '/vendor/lmc/coding-standard/ecs.php',
44-
// __DIR__ . '/vendor/lmc/coding-standard/ecs-8.3.php',
45-
// ]
46-
//);
4735
```
4836

4937
2. Run the check command

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
"vendor/bin/ecs check --config=ecs-internal.php --ansi --fix"
6363
],
6464
"lint": [
65-
"vendor/bin/parallel-lint -j 10 -e php ./src ./tests ecs.php ecs-8.1.php ecs-8.2.php ecs-8.3.php",
65+
"vendor/bin/parallel-lint -j 10 -e php ./src ./tests ecs.php",
6666
"@composer validate",
6767
"@composer normalize --dry-run"
6868
],

ecs-8.1.php

Lines changed: 0 additions & 5 deletions
This file was deleted.

ecs-8.2.php

Lines changed: 0 additions & 6 deletions
This file was deleted.

ecs-8.3.php

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)