Clover coverage report - PMD - 3.7 Coverage timestamp: Wed May 31 2006 09:25:59 EDT FRAMES NO FRAMES |

file stats: | LOC: | 24 |  | Methods: | 2
| NCLOC: | 11 |  | 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 |  |
9 |  | /**
10 |  | * This rule detects an abnormally long parameter list.
11 |  | * Note: This counts Nodes, and not necessarily parameters,
12 |  | * so the numbers may not match up. (But topcount and sigma
13 |  | * should work.)
14 |  | */
15 |  | public class LongParameterListRule extends ExcessiveNodeCountRule {
16 | 13 | public LongParameterListRule() {
17 | 13 | super(ASTFormalParameters.class);
18 |  | }
19 |  |
20 |  | // Count these nodes, but no others.
21 | 15 | public Object visit(ASTFormalParameter node, Object data) {
22 | 15 | return new Integer(1);
23 |  | }
24 |  | }