Package net.sourceforge.pmd.lang.java.rule.design
package net.sourceforge.pmd.lang.java.rule.design
-
ClassesClassDescriptionFinds
throw
statements containingNullPointerException
instances as thrown valuesCognitive complexity rule.CouplingBetweenObjects attempts to capture all unique Class attributes, local variables, and return types to determine how many objects a class is coupled to.Cyclomatic complexity rule using metrics.Catches the use of exception statements as a flow control device.ExcessiveImports attempts to count all unique imports a class contains.This rule detects an abnormally long parameter list.Rule attempts to count all public methods and public attributes defined in a class.The God Class Rule detects the God Class design flaw using metrics.This rule can detect possible violations of the Law of Demeter.The loose package coupling Rule can be used to ensure coupling outside of a package hierarchy is minimized to all but an allowed set of classes from within the package hierarchy.Simple rule for Ncss.Simple n-path complexity rule.A method/constructor shouldn't explicitly throw java.lang.Exception, since it is unclear which exceptions that can be thrown from the methods.A singular field is a field that may be converted to a local variable.Switch Density - This is the number of statements over the number of cases within a switch.