build: Add sonar settings/hooks

This commit is contained in:
Chris Coutinho
2026-05-08 17:39:45 +02:00
parent 61cadf7935
commit 0690378915
3 changed files with 38 additions and 0 deletions
@@ -0,0 +1,5 @@
#!/bin/bash
if ! command -v sonar &> /dev/null; then
exit 0
fi
sonar hook claude-pre-tool-use
@@ -0,0 +1,5 @@
#!/bin/bash
if ! command -v sonar &> /dev/null; then
exit 0
fi
sonar hook claude-prompt-submit
+28
View File
@@ -0,0 +1,28 @@
{
"hooks": {
"PreToolUse": [
{
"matcher": "Read",
"hooks": [
{
"type": "command",
"command": ".claude/hooks/sonar-secrets/build-scripts/pretool-secrets.sh",
"timeout": 60
}
]
}
],
"UserPromptSubmit": [
{
"matcher": "*",
"hooks": [
{
"type": "command",
"command": ".claude/hooks/sonar-secrets/build-scripts/prompt-secrets.sh",
"timeout": 60
}
]
}
]
}
}