File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 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" ,
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" ,
You can’t perform that action at this time.
0 commit comments