Skip to content

Commit a93fadc

Browse files
committed
chore: add Claude hook to run ktlint, detekt and tests
1 parent 82f2802 commit a93fadc

2 files changed

Lines changed: 18 additions & 1 deletion

File tree

‎.claude/settings.json‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"hooks": {
3+
"Stop": [
4+
{
5+
"hooks": [
6+
{
7+
"type": "command",
8+
"command": "./gradlew ktlintCheck detekt iosSimulatorArm64Test",
9+
"timeout": 180,
10+
"statusMessage": "Running ktlint, detekt and tests..."
11+
}
12+
]
13+
}
14+
]
15+
}
16+
}

‎.claude/settings.local.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"Bash(jq:*)",
88
"Bash(./gradlew ktlintCheck)",
99
"Bash(./gradlew ktlintCheck detekt)",
10-
"Bash(./gradlew ktlintCheck detekt --dry-run)"
10+
"Bash(./gradlew ktlintCheck detekt --dry-run)",
11+
"Bash(./gradlew tasks:*)"
1112
]
1213
}
1314
}

0 commit comments

Comments
 (0)