mirror of
https://code.castopod.org/adaures/castopod.git
synced 2024-08-18 15:33:21 +02:00
- update .devcontainer settings: remove auto-formatting for php + set intelephense as default formatter - remove prettier php plugin as it lacks php 8 support - add captain hook action for checking style pre-commit - fix style with ecs on all files except views
38 lines
689 B
JSON
38 lines
689 B
JSON
{
|
|
"pre-commit": {
|
|
"enabled": true,
|
|
"actions": [
|
|
{
|
|
"action": "\\CaptainHook\\App\\Hook\\PHP\\Action\\Linting",
|
|
"options": [],
|
|
"conditions": []
|
|
},
|
|
{
|
|
"action": "composer style",
|
|
"options": [],
|
|
"conditions": []
|
|
}
|
|
]
|
|
},
|
|
"pre-push": {
|
|
"enabled": true,
|
|
"actions": [
|
|
{
|
|
"action": "composer test -- --no-coverage",
|
|
"options": [],
|
|
"conditions": []
|
|
},
|
|
{
|
|
"action": "composer analyse",
|
|
"options": [],
|
|
"conditions": []
|
|
},
|
|
{
|
|
"action": "composer rector",
|
|
"options": [],
|
|
"conditions": []
|
|
}
|
|
]
|
|
}
|
|
}
|