Skip to content

Commit ee3fbc3

Browse files
committed
Adds a new Composer script
1 parent c1fe1b5 commit ee3fbc3

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

composer.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@
3636
"lpv:application-version-guard": "Checks that the application version matches the given Git tag.",
3737
"lpv:application-phar-version-guard": "Checks that the PHAR version matches the given Git tag.",
3838
"lpv:static-analyse": "Runs a static code analysis via PHPStan.",
39-
"lpv:validate-gitattributes": "Checks the leanness of this package."
39+
"lpv:validate-gitattributes": "Checks the leanness of this package.",
40+
"lpv:pre-commit-check": "Does a final (aggregated) check before committing."
4041
},
4142
"scripts": {
4243
"lpv:test": "phpunit",
@@ -47,7 +48,12 @@
4748
"lpv:application-version-guard": "php bin/application-version --verify-tag-match=bin",
4849
"lpv:application-phar-version-guard": "php bin/application-version --verify-tag-match=phar",
4950
"lpv:static-analyse": "phpstan analyse --configuration phpstan.neon.dist",
50-
"lpv:validate-gitattributes": "bin/lean-package-validator validate"
51+
"lpv:validate-gitattributes": "bin/lean-package-validator validate",
52+
"lpv:pre-commit-check": [
53+
"@lpv:test",
54+
"@lpv:cs-lint",
55+
"@lpv:static-analyse"
56+
]
5157
},
5258
"config": {
5359
"preferred-install": "dist",

0 commit comments

Comments
 (0)