{
"event": "PreToolUse",
"tool_name": "Write",
"tool_input": {
"file_path": "\/tmp\/test_post_rules.py",
"content": "#!\/usr\/bin\/env python3\nimport sys\nsys.path.insert(0, '\/var\/www\/tools\/ki-protokoll\/claude-hook')\n\nfrom quality.post_rules import check\n\n# Test mit einer großen Klasse\ntest_content = \"\"\"<?php\nclass TestClass {\n public function method1() {}\n public function method2() {}\n public function method3() {}\n public function method4() {}\n public function method5() {}\n public function method6() {}\n public function method7() {}\n public function method8() {}\n public function method9() {}\n public function method10() {}\n public function method11() {}\n}\n\"\"\"\n\nresult = check(\"\/test\/TestClass.php\", test_content)\nprint(f\"Test completed: {len(result['warnings'])} warnings found\")\nfor warning in result['warnings']:\n print(f\" - {warning}\")\nprint(\"\\nAll tests passed!\")\n"
}
}