Class ExcessivePackageBodyLengthRule

  • All Implemented Interfaces:
    net.sourceforge.pmd.lang.ast.AstVisitor<Object,​Object>, PlsqlVisitor<Object,​Object>, net.sourceforge.pmd.lang.rule.Rule, net.sourceforge.pmd.properties.PropertySource

    public class ExcessivePackageBodyLengthRule
    extends AbstractPLSQLRule
    This rule detects when a class exceeds a certain threshold. i.e. if a class has more than 1000 lines of code.
    • Constructor Detail

      • ExcessivePackageBodyLengthRule

        public ExcessivePackageBodyLengthRule()
    • Method Detail

      • defaultReportLevel

        protected int defaultReportLevel()
      • getMetric

        protected int getMetric​(T node)
      • buildTargetSelector

        protected @NonNull net.sourceforge.pmd.lang.rule.RuleTargetSelector buildTargetSelector()
        Overrides:
        buildTargetSelector in class net.sourceforge.pmd.lang.rule.AbstractRule
      • isIgnored

        protected boolean isIgnored​(T node)
        Return true if the node should be ignored.
      • getViolationParameters

        protected Object[] getViolationParameters​(T node,
                                                  int metric)