All Downloads are FREE. Search and download functionalities are using the official Maven repository.

resources.report.rules.pmd.ExcessiveParameterList.html Maven / Gradle / Ivy

Go to download

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.

The newest version!


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:

NameDefault valueDescription
minimum 10 The parameter count reporting threshold




© 2015 - 2024 Weber Informatics LLC | Privacy Policy