Add neutral diagnostic framework for future reporting modules: - DiagnosticReporterInterface, Registry, Manager, PayloadSanitizer - Laravel exception hook in bootstrap/app.php - Module permission declarations (requires_permissions in module.json) - Core diagnostic report points (module boot/install/update failures) - Module documentation update (moduldoku.md) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
105 lines
2.8 KiB
JSON
105 lines
2.8 KiB
JSON
{
|
|
"config": {
|
|
"ansi-colors": true,
|
|
"fail-on-first-error": false,
|
|
"plugins": [],
|
|
"verbosity": "normal"
|
|
},
|
|
"commit-msg": {
|
|
"enabled": false,
|
|
"actions": []
|
|
},
|
|
"pre-push": {
|
|
"enabled": true,
|
|
"actions": [
|
|
{
|
|
"action": "composer test"
|
|
}
|
|
]
|
|
},
|
|
"pre-commit": {
|
|
"enabled": true,
|
|
"actions": [
|
|
{
|
|
"action": "composer validate",
|
|
"conditions": [
|
|
{
|
|
"exec": "\\CaptainHook\\App\\Hook\\Condition\\FileStaged\\Any",
|
|
"args": [["composer.json"]]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"action": "composer normalize --dry-run",
|
|
"conditions": [
|
|
{
|
|
"exec": "\\CaptainHook\\App\\Hook\\Condition\\FileStaged\\Any",
|
|
"args": [["composer.json"]]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"action": "composer dev:lint:syntax -- {$STAGED_FILES|of-type:php}",
|
|
"conditions": [
|
|
{
|
|
"exec": "\\CaptainHook\\App\\Hook\\Condition\\FileStaged\\OfType",
|
|
"args": ["php"]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"action": "composer dev:lint:style -- {$STAGED_FILES|of-type:php}",
|
|
"conditions": [
|
|
{
|
|
"exec": "\\CaptainHook\\App\\Hook\\Condition\\FileStaged\\OfType",
|
|
"args": ["php"]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"prepare-commit-msg": {
|
|
"enabled": false,
|
|
"actions": []
|
|
},
|
|
"post-commit": {
|
|
"enabled": false,
|
|
"actions": []
|
|
},
|
|
"post-merge": {
|
|
"enabled": true,
|
|
"actions": [
|
|
{
|
|
"action": "composer install --ansi",
|
|
"conditions": [
|
|
{
|
|
"exec": "\\CaptainHook\\App\\Hook\\Condition\\FileChanged\\Any",
|
|
"args": [["composer.json", "composer.lock"]]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"post-checkout": {
|
|
"enabled": true,
|
|
"actions": [
|
|
{
|
|
"action": "composer install --ansi",
|
|
"conditions": [
|
|
{
|
|
"exec": "\\CaptainHook\\App\\Hook\\Condition\\FileChanged\\Any",
|
|
"args": [["composer.json", "composer.lock"]]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"post-rewrite": {
|
|
"enabled": false,
|
|
"actions": []
|
|
},
|
|
"post-change": {
|
|
"enabled": false,
|
|
"actions": []
|
|
}
|
|
}
|