Skip to content

Commit e1467ae

Browse files
committed
chore: update captainhook configuration
1 parent b2dbe81 commit e1467ae

File tree

2 files changed

+4
-16
lines changed

2 files changed

+4
-16
lines changed

captainhook.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"enabled": true,
1919
"actions": [
2020
{
21-
"action": "composer normalize --indent-size=4 --indent-style=space --ansi",
21+
"action": "composer normalize --dry-run --ansi",
2222
"conditions": [
2323
{
2424
"exec": "\\CaptainHook\\App\\Hook\\Condition\\FileStaged\\Any",
@@ -29,7 +29,7 @@
2929
]
3030
},
3131
{
32-
"action": "composer pre-commit-lint",
32+
"action": "composer lint",
3333
"conditions": [
3434
{
3535
"exec": "\\CaptainHook\\App\\Hook\\Condition\\FileStaged\\Any",
@@ -38,9 +38,6 @@
3838
]
3939
}
4040
]
41-
},
42-
{
43-
"action": "git add {$STAGED_FILES}"
4441
}
4542
]
4643
},

composer.json

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -39,24 +39,15 @@
3939
"configFile": "conventional-commits.json"
4040
}
4141
},
42-
"bin": [
43-
"bin/xmllint",
44-
"bin/xmllint-fix"
45-
],
4642
"scripts": {
4743
"post-autoload-dump": "captainhook install --ansi -f -s",
48-
"lint": "xmllint",
49-
"lint:fix": "xmllint-fix",
50-
"pre-commit-lint": [
51-
"@lint:fix",
52-
"@lint"
53-
],
44+
"lint": "./bin/xmllint",
45+
"lint:fix": "./bin/xmllint-fix",
5446
"test": "@lint"
5547
},
5648
"scripts-descriptions": {
5749
"lint": "Checks all source code for coding standards issues.",
5850
"lint:fix": "Checks source code for coding standards issues and fixes them, if possible.",
59-
"pre-commit-lint": "Runs lint and lint-fix commands during the pre-commit stage.",
6051
"test": "Shortcut to run the full test suite."
6152
}
6253
}

0 commit comments

Comments
 (0)