RS.CLIPPY.TOO_MANY_ARGUMENTS
Functions with too many arguments
This checker is a Clippy lint created by The Rust Project Contributors. The documentation shown here is a copy of the original documentation for: too_many_arguments. Copyright ©2025 The Rust Team. All rights reserved.
What it does
Checks for functions with too many parameters.
Why is this bad?
Functions with lots of parameters are considered bad style and reduce readability ("what does the 5th parameter mean?"). Consider grouping some parameters into a new type.
Example
fn foo(x: u32, y: u32, name: &str, c: Color, w: f32, h: f32, a: f32, b: f32) {
// ..
}
Configuration
-
too-many-arguments-threshold: The maximum number of argument a function or method can have(default:
7)