{
"event": "PreToolUse",
"tool_name": "Bash",
"tool_input": {
"command": "\/var\/www\/tools\/ki-protokoll\/claude-hook\/quality\/full_scan.py --json 2>\/dev\/null | python3 -c \"\nimport sys,json\nfrom collections import Counter\nd=json.load(sys.stdin)\nblocks = []\nwarnings = []\nfor v in d['violations']:\n for b in v.get('blocks',[]):\n rule = b.split('[')[1].split(']')[0] if '[' in b else 'UNKNOWN'\n blocks.append(rule)\n for w in v.get('warnings',[]):\n rule = w.split(':')[0] if ':' in w else 'UNKNOWN'\n warnings.append(rule)\nprint('=== Block Violations ===')\nfor rule, count in Counter(blocks).most_common(10):\n print(f' {rule}: {count}')\nprint('')\nprint('=== Warnings ===')\nfor rule, count in Counter(warnings).most_common(10):\n print(f' {rule}: {count}')\n\"",
"description": "Quality violations breakdown"
}
}
{
"tool_response": {
"stdout": "=== Block Violations ===\n P1.1: 105\n P6.1: 11\n P4.1: 6\n P3.3: 1\n P1.2: 1\n P2.4: 1\n\n=== Warnings ===\n W1.1: 45\n W5.2: 38\n W1.2: 32\n W5.1: 23\n W1.3: 20\n W4.3: 20\n W7.1: 15\n W4.2: 11\n W4.1: 10\n W6.1: 9",
"stderr": "",
"interrupted": false,
"isImage": false
}
}