Skip to content

Commit

Permalink
Install and configure captain hook git hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
muuk-iO committed Feb 3, 2025
1 parent d496c33 commit 2cae2db
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
16 changes: 16 additions & 0 deletions captainhook.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"pre-commit": {
"enabled": true,
"actions": [
{
"action": "lando phpcs"
},
{
"action": "lando phpstan"
},
{
"action": "lando phpunit"
}
]
}
}
7 changes: 5 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
"phpunit/phpunit": "^9.5",
"phpstan/phpstan": "^2.1",
"phpstan/extension-installer": "^1.4",
"phpstan/phpstan-strict-rules": "^2.0"
"phpstan/phpstan-strict-rules": "^2.0",
"captainhook/captainhook": "^5.24",
"captainhook/hook-installer": "*"
},
"autoload": {
"psr-4": {
Expand All @@ -38,7 +40,8 @@
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true,
"phpstan/extension-installer": true
"phpstan/extension-installer": true,
"captainhook/hook-installer": true
}
}
}

0 comments on commit 2cae2db

Please sign in to comment.