Skip to content

Commit 79b23b6

Browse files
committed
Add new Composer script
1 parent d7e7152 commit 79b23b6

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

composer.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@
3636
"cs-lint": "Checks for coding standard violations.",
3737
"application-version-guard": "Checks that the application version matches the given Git tag.",
3838
"validate-gitattributes": "Checks the leanness of this package.",
39-
"static-analyse": "Runs a static code analysis via PHPStan."
39+
"static-analyse": "Runs a static code analysis via PHPStan.",
40+
"pre-commit-check": "Runs several scripts as a pre commit check"
4041
},
4142
"scripts": {
4243
"test": "phpunit",
@@ -46,7 +47,13 @@
4647
"cs-lint": "php-cs-fixer fix --diff --stop-on-violation --verbose --dry-run --allow-risky=yes",
4748
"application-version-guard": "php bin/application-version --verify-tag-match",
4849
"validate-gitattributes": "lean-package-validator validate",
49-
"static-analyse": "phpstan analyse --configuration phpstan.neon.dist"
50+
"static-analyse": "phpstan analyse --configuration phpstan.neon.dist",
51+
"pre-commit-check": [
52+
"@test",
53+
"@cs-lint",
54+
"@static-analyse",
55+
"@application-version-guard"
56+
]
5057
},
5158
"require-dev": {
5259
"friendsofphp/php-cs-fixer": "^3.0",

0 commit comments

Comments
 (0)