Clover coverage report - PMD - 3.9 Coverage timestamp: Tue Dec 19 2006 09:38:44 EST FRAMES NO FRAMES |
file stats: | LOC: | 25 |  | Methods: | 2
| NCLOC: | 12 |  | Classes: | 1
Source file | Conditionals | Statements | Methods | TOTAL
LongParameterListRule.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.ASTFormalParameter;
7 |  | import net.sourceforge.pmd.ast.ASTFormalParameters;
8 |  | import net.sourceforge.pmd.util.NumericConstants;
9 |  |
10 |  | /**
11 |  | * This rule detects an abnormally long parameter list.
12 |  | * Note: This counts Nodes, and not necessarily parameters,
13 |  | * so the numbers may not match up. (But topcount and sigma
14 |  | * should work.)
15 |  | */
16 |  | public class LongParameterListRule extends ExcessiveNodeCountRule {
17 | 13 | public LongParameterListRule() {
18 | 13 | super(ASTFormalParameters.class);
19 |  | }
20 |  |
21 |  | // Count these nodes, but no others.
22 | 15 | public Object visit(ASTFormalParameter node, Object data) {
23 | 15 | return NumericConstants.ONE;
24 |  | }
25 |  | }