{
"event": "PreToolUse",
"tool_name": "Bash",
"tool_input": {
"command": "# Find long methods\necho \"=== LONG METHODS (potential violations) ===\"\nfor file in $(find src -name \"*.php\" -type f); do\n # Count function\/method lines\n awk '\/function [a-zA-Z_]+\\(\/ {start=NR; name=$0} \/^[[:space:]]*\\}\/ {if(start>0 && NR-start>50) print FILENAME\": \"NR-start\" lines - \"name; start=0}' \"$file\" 2>\/dev\/null\ndone | head -30",
"description": "Find long methods"
}
}
{
"tool_response": {
"stdout": "=== LONG METHODS (potential violations) ===",
"stderr": "",
"interrupted": false,
"isImage": false
}
}