1 |
| |
2 |
| |
3 |
| |
4 |
| package net.sourceforge.pmd.rules.design; |
5 |
| |
6 |
| import net.sourceforge.pmd.ast.ASTFormalParameter; |
7 |
| import net.sourceforge.pmd.ast.ASTFormalParameters; |
8 |
| import net.sourceforge.pmd.util.NumericConstants; |
9 |
| |
10 |
| |
11 |
| |
12 |
| |
13 |
| |
14 |
| |
15 |
| |
16 |
| public class LongParameterListRule extends ExcessiveNodeCountRule { |
17 |
13
| public LongParameterListRule() {
|
18 |
13
| super(ASTFormalParameters.class);
|
19 |
| } |
20 |
| |
21 |
| |
22 |
15
| public Object visit(ASTFormalParameter node, Object data) {
|
23 |
15
| return NumericConstants.ONE;
|
24 |
| } |
25 |
| } |