style: validate commit messages

This commit is contained in:
Khoubza Younes
2023-01-21 23:03:19 +01:00
parent 01bcdda4d3
commit fd8fe09577
3 changed files with 38 additions and 1 deletions
+1
View File
@@ -155,6 +155,7 @@
},
"scripts": {
"check-syntax": "test `find ./src -iname \"*.php\" | xargs -n1 -P6 php -l | grep -Fv \"No syntax errors\" | wc -l` -eq 0",
"lint": "git diff --staged | php ./vendor/bin/grumphp run",
"normalize-composer": "find src -name \"composer.json\" -exec composer normalize {} \\;",
"normalize-packs": "find packs -name \"composer.json\" -exec composer normalize {} \\;",
"validate-composer": "find src -name \"composer.json\" -exec composer validate --strict {} \\;"