
resources.report.rules.pmd.ExcessiveParameterList.html Maven / Gradle / Ivy
ExcessiveParameterList
ExcessiveParameterList
Long parameter lists can indicate that a new object should be created to
wrap the numerous parameters. Basically, try to group the parameters together.
This rule is defined by the following Java class:
net.sourceforge.pmd.rules.design.LongParameterListRule
Example:
public class Foo {
public void addData(
int p0, int p1, int p2, int p3, int p4, int p5,
int p5, int p6, int p7, int p8, int p9, int p10) {
}
}
}
This rule has the following properties:
Name Default value Description
minimum
10
The parameter count reporting threshold
© 2015 - 2025 Weber Informatics LLC | Privacy Policy