This rule is defined by the following Java class: net.sourceforge.pmd.rules.ExcessivePublicCount
Example:
public class Foo { public String value; public Bar something; public Variable var; // [... more more public attributes ...] public void doWork() {} public void doMoreWork() {} public void doWorkAgain() {} // [... more more public methods ...] }
This rule has the following properties:
Name | Default value | Description |
---|---|---|
minimum | 45 | The public item reporting threshold |