ExcessiveMethodLengthRule.java
01 /**
02  * BSD-style license; for more info see http://pmd.sourceforge.net/license.html
03  */
04 package net.sourceforge.pmd.lang.java.rule.codesize;
05 
06 import net.sourceforge.pmd.lang.java.ast.ASTMethodDeclaration;
07 import net.sourceforge.pmd.lang.java.rule.design.ExcessiveLengthRule;
08 
09 /**
10  * This rule detects when a method exceeds a certain
11  * threshold.  i.e. if a method has more than x lines
12  * of code.
13  */
14 public class ExcessiveMethodLengthRule extends ExcessiveLengthRule {
15     public ExcessiveMethodLengthRule() {
16         super(ASTMethodDeclaration.class);
17         setProperty(MINIMUM_DESCRIPTOR, 100d);
18     }
19 }