• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pmd / pmd / 277

27 Nov 2025 01:37PM UTC coverage: 78.778% (+0.03%) from 78.749%
277

push

github

adangel
[java] UseArraysAsList: skip when if-statements (#6228)

18419 of 24233 branches covered (76.01%)

Branch coverage included in aggregate %.

40090 of 50038 relevant lines covered (80.12%)

0.81 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

75.0
/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/rule/design/NcssMethodCountRule.java
1
/*
2
 * BSD-style license; for more info see http://pmd.sourceforge.net/license.html
3
 */
4

5
package net.sourceforge.pmd.lang.plsql.rule.design;
6

7
import net.sourceforge.pmd.lang.plsql.ast.ExecutableCode;
8

9
/**
10
 * Non-commented source statement counter for methods.
11
 *
12
 * <p>Analogous to and cribbed from Java version of the rule.</p>
13
 *
14
 * @deprecated Since 7.19.0. Use the rule {@link NcssCountRule} instead.
15
 */
16
@Deprecated
17
public class NcssMethodCountRule extends AbstractNcssCountRule<ExecutableCode> {
18

19
    /**
20
     * Count the size of all non-constructor methods.
21
     */
22
    public NcssMethodCountRule() {
23
        super(ExecutableCode.class);
1✔
24
    }
1✔
25

26
    @Override
27
    protected int defaultReportLevel() {
28
        return 100;
1✔
29
    }
30

31
    @Override
32
    protected Object[] getViolationParameters(ExecutableCode node, int metric, int limit) {
33
        String name = node.getMethodName();
1✔
34
        return new Object[] {name == null ? "(unnamed)" : name, metric, limit};
1!
35
    }
36

37
    /**
38
     * @deprecated Since 7.18.0. Use {@link #getViolationParameters(ExecutableCode, int, int)} instead.
39
     */
40
    @Deprecated
41
    protected Object[] getViolationParameters(ExecutableCode node, int metric) {
42
        return getViolationParameters(node, metric, -1);
×
43
    }
44

45

46

47
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc