What it flags
A function with a body takes more than 5 positional parameters. A destructured object counts as one. Constructors with decorators or parameter properties (dependency injection lists) and parameters with decorators (@Body(), @Param()) are not counted.
How to review or fix
Override withlimits.longParameterCount.
Configuration
Set the rule to"off" in loadwise.config.json to drop its findings:
self, Go receiver declarations, and Java receiver parameters are excluded. The polyglot check skips Python class methods with an ambiguous receiver, Java and C# constructors, declarations without bodies, explicit interface or trait implementations where visible, and generated signatures. Polyglot findings are report-only.
Framework-supplied parameters are not counted, as in TypeScript. The polyglot check skips test files (test folders, pytest test_*.py, *_test.py and conftest.py, Go _test.go, Java and C# *Test, *Tests and *IT classes, and src/test/) and decorated Python functions such as FastAPI routes, click commands and pytest fixtures. It does not count Java parameters with an annotation (@RequestParam), C# parameters with an attribute ([FromQuery]), Python parameters filled by Depends(...) or Security(...), or Python parameters after a bare *, *args or **kwargs, which callers pass by name.
An object with a level and options sets the rule’s threshold. It takes a maxParams option, a positive integer. The rule then reports a function with more than maxParams counted parameters. Without the option, the limit comes from the maintainability policy’s limits.longParameterCount, or 5 when the policy does not set it.
level is required: "warn" reports findings without changing the exit code. An overrides entry can set different options for the files it matches, and its options win over the top-level ones.