|
|||||||||||||||||||
| Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
| LongClassRule.java | - | 100% | 100% | 100% |
|
||||||||||||||
| 1 | /** | |
| 2 | * BSD-style license; for more info see http://pmd.sourceforge.net/license.html | |
| 3 | */ | |
| 4 | package net.sourceforge.pmd.rules.design; | |
| 5 | ||
| 6 | import net.sourceforge.pmd.ast.ASTClassOrInterfaceDeclaration; | |
| 7 | ||
| 8 | /** | |
| 9 | * This rule detects when a class exceeds a certain | |
| 10 | * threshold. i.e. if a class has more than 1000 lines | |
| 11 | * of code. | |
| 12 | */ | |
| 13 | public class LongClassRule extends ExcessiveLengthRule { | |
| 14 | 13 | public LongClassRule() { |
| 15 | 13 | super(ASTClassOrInterfaceDeclaration.class); |
| 16 | } | |
| 17 | } |
|
||||||||||