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.ASTPackageSpecification;
7 import net.sourceforge.pmd.lang.plsql.rule.design.ExcessiveLengthRule;
8
9 /**
10 * This rule detects when a class exceeds a certain
11 * threshold. i.e. if a class has more than 1000 lines
12 * of code.
13 */
14 public class ExcessivePackageSpecificationLengthRule extends ExcessiveLengthRule {
15 public ExcessivePackageSpecificationLengthRule() {
16 super(ASTPackageSpecification.class);
17 setProperty(MINIMUM_DESCRIPTOR, 1000d);
18 }
19 }