Skip to content

Commit 617756f

Browse files
OndraMJakub Pilař
and
Jakub Pilař
committed
Upgrade to ECS 9 with PHP config (fixes #50, #51)
Co-authored-by: Jakub Pilař <[email protected]>
1 parent 4ecda43 commit 617756f

File tree

5 files changed

+483
-314
lines changed

5 files changed

+483
-314
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
## Unreleased
88
- Replace `Symplify\CodingStandard\Sniffs\Naming\[AbstractClassNameSniff, ClassNameSuffixByParentSniff, InterfaceNameSniff and TraitNameSniff]` with equivalent versions backported to this repository.
99
- Drop PHP 7.2 support.
10+
- **[BC break]** Change YAML config to PHP.
11+
- Upgrade to easy-coding-standard 9.
1012

1113
## 2.1.0 - 2020-11-25
1214
- Add various dangerous function calls to list of forbidden functions.

composer.json

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,7 @@
1313
"php": "^7.3",
1414
"friendsofphp/php-cs-fixer": "^2.16.3",
1515
"slevomat/coding-standard": "^6.4.1",
16-
"symplify/auto-bind-parameter": "<8.1.21",
17-
"symplify/autowire-array-parameter": "<8.1.21",
18-
"symplify/coding-standard": "<8.1.21",
19-
"symplify/console-color-diff": "<8.1.21",
20-
"symplify/easy-coding-standard": "<8.1.21",
21-
"symplify/package-builder": "<8.1.21",
22-
"symplify/parameter-name-guard": "<8.1.21",
23-
"symplify/phpstan-extensions": "<8.1.21",
24-
"symplify/set-config-resolver": "<8.1.21",
25-
"symplify/smart-file-system": "<8.1.21"
16+
"symplify/easy-coding-standard": "^9.0.50"
2617
},
2718
"require-dev": {
2819
"ergebnis/composer-normalize": "^2.11",
@@ -58,19 +49,17 @@
5849
"@test"
5950
],
6051
"analyze": [
61-
"vendor/bin/ecs check src/ tests/ --ansi",
52+
"vendor/bin/ecs check src/ tests/ ecs.php --ansi",
6253
"vendor/bin/phpstan.phar analyze -c phpstan.neon --ansi"
6354
],
6455
"fix": [
6556
"@composer normalize",
66-
"vendor/bin/ecs check ./src/ ./tests/ --ansi --fix"
57+
"vendor/bin/ecs check ./src/ ./tests/ ecs.php --ansi --fix"
6758
],
6859
"lint": [
69-
"vendor/bin/parallel-lint -j 10 -e php ./src ./tests",
60+
"vendor/bin/parallel-lint -j 10 -e php ./src ./tests ecs.php",
7061
"@composer validate",
71-
"@composer normalize --dry-run",
72-
"for FILE_NAME in *.yml *.yaml; do vendor/bin/yaml-lint \"$FILE_NAME\"; done",
73-
"vendor/bin/yaml-sort-checker"
62+
"@composer normalize --dry-run"
7463
],
7564
"test": [
7665
"vendor/bin/phpunit --colors=always"

easy-coding-standard.yaml

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

0 commit comments

Comments
 (0)