Code style
This commit is contained in:
1 parent
70e00a64fe
commit
7c80ae05a8
3 files changed
+3
-8
No files matched your search
@@ -49,10 +49,6 @@ public final class NcssCountRule extends AbstractJavaRulechainRule {
|
||||
.build();
|
||||
|
||||
private static final PropertyDescriptor<List<NcssOption>> NCSS_OPTIONS_DESCRIPTOR;
|
||||
private int methodReportLevel;
|
||||
private int classReportLevel;
|
||||
private MetricOptions ncssOptions;
|
||||
|
||||
|
||||
static {
|
||||
Map<String, NcssOption> options = new HashMap<>();
|
||||
@@ -103,7 +99,7 @@ public final class NcssCountRule extends AbstractJavaRulechainRule {
|
||||
if (classSize >= level) {
|
||||
String[] messageParams = {PrettyPrintingUtil.kindName(node),
|
||||
node.getSimpleName(),
|
||||
classSize + " (Highest = " + classHighest + ")",};
|
||||
classSize + " (Highest = " + classHighest + ")", };
|
||||
|
||||
addViolation(data, node, messageParams);
|
||||
}
|
||||
@@ -121,7 +117,7 @@ public final class NcssCountRule extends AbstractJavaRulechainRule {
|
||||
if (methodSize >= level) {
|
||||
addViolation(data, node, new String[] {
|
||||
node instanceof ASTMethodDeclaration ? "method" : "constructor",
|
||||
PrettyPrintingUtil.displaySignature(node), "" + methodSize,});
|
||||
PrettyPrintingUtil.displaySignature(node), "" + methodSize, });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
-1
@@ -24,7 +24,6 @@ import net.sourceforge.pmd.lang.java.ast.JavaNode;
|
||||
import net.sourceforge.pmd.lang.java.ast.JavadocCommentOwner;
|
||||
import net.sourceforge.pmd.lang.java.rule.AbstractJavaRule;
|
||||
import net.sourceforge.pmd.lang.java.rule.internal.JavaRuleUtil;
|
||||
import net.sourceforge.pmd.lang.java.rule.internal.JavaRuleUtil;
|
||||
import net.sourceforge.pmd.properties.PropertyBuilder.GenericPropertyBuilder;
|
||||
import net.sourceforge.pmd.properties.PropertyDescriptor;
|
||||
import net.sourceforge.pmd.properties.PropertyFactory;
|
||||
|
||||
+1
-1
@@ -58,9 +58,9 @@ import net.sourceforge.pmd.lang.java.ast.JavaNode;
|
||||
import net.sourceforge.pmd.lang.java.ast.JavaTokenKinds;
|
||||
import net.sourceforge.pmd.lang.java.ast.TypeNode;
|
||||
import net.sourceforge.pmd.lang.java.ast.UnaryOp;
|
||||
import net.sourceforge.pmd.lang.java.symbols.JFieldSymbol;
|
||||
import net.sourceforge.pmd.lang.java.types.JPrimitiveType.PrimitiveTypeKind;
|
||||
import net.sourceforge.pmd.lang.java.types.JTypeMirror;
|
||||
import net.sourceforge.pmd.lang.java.symbols.JFieldSymbol;
|
||||
import net.sourceforge.pmd.lang.java.types.TypeTestUtil;
|
||||
import net.sourceforge.pmd.util.CollectionUtil;
|
||||
|
||||
|
||||
Reference in new issue
Block a user