Too many function parameters
Part of Code Quality & Syntax, which counts for 20% of the overall score. When this check fires it deducts 4 points from that category, once per scan, no matter how many places it turns up.
What it detects
Functions with more than 5 parameters are hard to call correctly; consider an options object/dataclass.
Why it matters
A call like doThing(a, b, c, d, e, f) is easy to get wrong because nothing stops you from swapping two arguments of the same type, and the call site tells the reader nothing about what each value means. Optional parameters at the end make it worse, breeding calls padded with null placeholders.
How to fix it
In JS/TS, replace the parameter list with a single destructured options object typed by an interface, so call sites become named and the compiler checks them. In Python, make the parameters keyword-only with a bare * or group related ones into a dataclass. Update every call site in the same change so nothing is left on the old signature.
The paid report includes a ready-to-paste prompt for your AI coding agent for every check it finds, pointed at the exact findings from your scan. See pricing
Does your repo trip this check?
Paste a GitHub URL or drop a project folder. Scans run in your browser and take seconds.
Scan your repo