Skip to content

Commit 4ecda43

Browse files
committed
Add PHP and composer lints
1 parent d44e62f commit 4ecda43

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

composer.json

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,30 +13,32 @@
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",
16+
"symplify/auto-bind-parameter": "<8.1.21",
1717
"symplify/autowire-array-parameter": "<8.1.21",
18-
"symplify/coding-standard": "<8.1.21",
18+
"symplify/coding-standard": "<8.1.21",
1919
"symplify/console-color-diff": "<8.1.21",
2020
"symplify/easy-coding-standard": "<8.1.21",
2121
"symplify/package-builder": "<8.1.21",
22-
"symplify/parameter-name-guard": "<8.1.21",
22+
"symplify/parameter-name-guard": "<8.1.21",
2323
"symplify/phpstan-extensions": "<8.1.21",
2424
"symplify/set-config-resolver": "<8.1.21",
25-
"symplify/smart-file-system": "<8.1.21"
25+
"symplify/smart-file-system": "<8.1.21"
2626
},
2727
"require-dev": {
28+
"ergebnis/composer-normalize": "^2.11",
2829
"j13k/yaml-lint": "dev-master",
2930
"mhujer/yaml-sort-checker": "^1.2",
31+
"php-parallel-lint/php-parallel-lint": "^1.2",
3032
"phpstan/extension-installer": "^1.0",
3133
"phpstan/phpstan": "^0.12.0",
3234
"phpstan/phpstan-phpunit": "^0.12.0",
3335
"phpunit/phpunit": "^9.4.3"
3436
},
3537
"config": {
36-
"sort-packages": true,
3738
"preferred-install": {
3839
"squizlabs/php_codesniffer": "source"
39-
}
40+
},
41+
"sort-packages": true
4042
},
4143
"autoload": {
4244
"psr-4": {
@@ -60,14 +62,18 @@
6062
"vendor/bin/phpstan.phar analyze -c phpstan.neon --ansi"
6163
],
6264
"fix": [
63-
"./vendor/bin/ecs check ./src/ ./tests/ --ansi --fix"
65+
"@composer normalize",
66+
"vendor/bin/ecs check ./src/ ./tests/ --ansi --fix"
6467
],
6568
"lint": [
69+
"vendor/bin/parallel-lint -j 10 -e php ./src ./tests",
70+
"@composer validate",
71+
"@composer normalize --dry-run",
6672
"for FILE_NAME in *.yml *.yaml; do vendor/bin/yaml-lint \"$FILE_NAME\"; done",
6773
"vendor/bin/yaml-sort-checker"
6874
],
6975
"test": [
70-
"./vendor/bin/phpunit --colors=always"
76+
"vendor/bin/phpunit --colors=always"
7177
]
7278
}
7379
}

0 commit comments

Comments
 (0)