resources.report.rules.pmd.ExcessiveParameterList.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sanity4j Show documentation
Show all versions of sanity4j Show documentation
Sanity4J was created to simplify running multiple static code
analysis tools on the Java projects. It provides a single entry
point to run all the selected tools and produce a consolidated
report, which presents all findings in an easily accessible
manner.
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