{
"event": "PreToolUse",
"tool_name": "Bash",
"tool_input": {
"command": "cd \/var\/www\/tools\/ki-protokoll\/claude-hook && python3 -c \"\nfrom quality.rules_failsafe import check_w9_2_db_exception_handling\nimport os\n\npath = '\/var\/www\/dev.campus.systemische-tools.de\/src\/UseCases'\nwarnings = []\nfor root, dirs, files in os.walk(path):\n for f in files:\n if f.endswith('.php'):\n fp = os.path.join(root, f)\n with open(fp) as file:\n content = file.read()\n results = check_w9_2_db_exception_handling(fp, content)\n if results:\n warnings.extend(results)\n\nfor w in warnings[:15]:\n print(f'{w[\\\"file\\\"]}:{w[\\\"line\\\"]} - {w[\\\"message\\\"]}')\nprint(f'\\\\nGesamt: {len(warnings)} Warnungen')\n\"",
"description": "Find UseCases with DB exception handling issues"
}
}