File tree Expand file tree Collapse file tree 5 files changed +2
-31
lines changed Expand file tree Collapse file tree 5 files changed +2
-31
lines changed Original file line number Diff line number Diff line change @@ -26,24 +26,12 @@ use Symplify\EasyCodingStandard\Config\ECSConfig;
26
26
27
27
return ECSConfig::configure()
28
28
->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
30
30
->withSets(
31
31
[
32
32
__DIR__ . '/vendor/lmc/coding-standard/ecs.php',
33
33
]
34
34
);
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
- //);
47
35
```
48
36
49
37
2 . Run the check command
Original file line number Diff line number Diff line change 62
62
" vendor/bin/ecs check --config=ecs-internal.php --ansi --fix"
63
63
],
64
64
"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" ,
66
66
" @composer validate" ,
67
67
" @composer normalize --dry-run"
68
68
],
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments