gograph_arity
Identify functions and methods with more parameters than a threshold to detect the long-parameter-list code smell during audits.
Instructions
Find functions and methods with more parameters than a threshold — the long-parameter-list smell. Requires .gograph/graph.json — run gograph build . first. Read-only; no side effects. min sets the minimum argument count to flag (default: 5). WHEN TO USE: During code smell audits to identify candidates for parameter-struct refactoring. NOT TO USE: For struct field counts (use gograph_fields or gograph_godobj). RETURNS: List of functions exceeding the threshold with parameter count, signature, and file location; empty when all functions are below the threshold.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| min | No | Minimum argument count to report (default: 5) |