Class ExcessiveLengthRule

  • All Implemented Interfaces:
    JavaParserVisitor, net.sourceforge.pmd.lang.rule.ImmutableLanguage, net.sourceforge.pmd.lang.rule.stat.StatisticalRule, net.sourceforge.pmd.properties.PropertySource, net.sourceforge.pmd.Rule
    Direct Known Subclasses:
    ExcessiveClassLengthRule, ExcessiveMethodLengthRule

    public class ExcessiveLengthRule
    extends AbstractStatisticalJavaRule
    This is a common super class for things which have excessive length.

    i.e. LongMethod and LongClass rules.

    To implement an ExcessiveLength rule, you pass in the Class of node you want to check, and this does the rest for you.