mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-24 00:55:35 +08:00
refactor git hooks config
This commit is contained in:
@@ -73,10 +73,10 @@
|
|||||||
"post-merge": "composer install",
|
"post-merge": "composer install",
|
||||||
"pre-commit": [
|
"pre-commit": [
|
||||||
"echo committing as $(git config user.name)",
|
"echo committing as $(git config user.name)",
|
||||||
"./vendor/bin/php-cs-fixer fix --dry-run --diff ./src"
|
"composer cs-fix -- --diff"
|
||||||
],
|
],
|
||||||
"pre-push": [
|
"pre-push": [
|
||||||
"./vendor/bin/php-cs-fixer fix --dry-run --diff ./src",
|
"composer cs-fix -- --dry-run --diff",
|
||||||
"composer analyse"
|
"composer analyse"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@@ -91,8 +91,8 @@
|
|||||||
"post-install-cmd": [
|
"post-install-cmd": [
|
||||||
"[ $COMPOSER_DEV_MODE -eq 0 ] || vendor/bin/cghooks add"
|
"[ $COMPOSER_DEV_MODE -eq 0 ] || vendor/bin/cghooks add"
|
||||||
],
|
],
|
||||||
"analyse": "phpstan analyse --memory-limit 300M -l 0 ./src",
|
"analyse": "phpstan analyse --memory-limit 300M",
|
||||||
"cs-fix": "php-cs-fixer fix $1",
|
"cs-fix": "php-cs-fixer fix",
|
||||||
"test": "bin/phpunit-swoole --no-coverage"
|
"test": "bin/phpunit-swoole --no-coverage"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user