gograph_godobj
Find God Object code smells in Go structs by detecting those exceeding configurable field, method, and outgoing call thresholds.
Instructions
Detect God Object code smells by analyzing structural sizes, method counts, and references. BEHAVIOR & SAFETY: This is a 100% local, read-only static analysis tool. It has no side effects, requires no authorization or credentials, has no rate limits, and performs zero destructive modifications. USAGE GUIDELINES: Call this tool when auditing architectural modularity or identifying monolithic structs that should be refactored. Do NOT use for general struct layout checks (use gograph_fields instead). COMPLETENESS: Returns concrete structs exceeding target field or method count limits.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| calls | No | Minimum outgoing call count (default: 15) | |
| fields | No | Minimum field count (default: 8) | |
| methods | No | Minimum method count (default: 5) | |
| top | No | Maximum results to return (default: 10) |