View Javadoc
1   /**
2    * BSD-style license; for more info see http://pmd.sourceforge.net/license.html
3    */
4   package net.sourceforge.pmd.lang.plsql.rule.codesize;
5   
6   import net.sourceforge.pmd.lang.plsql.ast.OracleObject;
7   import net.sourceforge.pmd.lang.plsql.rule.design.ExcessiveLengthRule;
8   
9   /**
10   * This rule detects when an Oracle object exceeds a certain
11   * threshold.  i.e. if a object has more than 1000 lines
12   * of code.
13   */
14  public class ExcessiveObjectLengthRule extends ExcessiveLengthRule {
15      public ExcessiveObjectLengthRule() {
16          super(OracleObject.class);
17          setProperty(MINIMUM_DESCRIPTOR, 1000d);
18      }
19  }