PMD Results
The following document contains the results of PMD 6.55.0.
Violations By Priority
Priority 3
org/basepom/inline/mojo/HelpMojo.java
Priority 5
org/basepom/inline/mojo/InlineMojo.java
org/basepom/inline/mojo/PluginLog.java
Rule |
Violation |
Line |
ProperLogger |
Logger should be defined private static final and have the correct class |
27 |
org/basepom/inline/mojo/HelpMojo.java
Rule |
Violation |
Line |
TooManyMethods |
This class has too many methods, consider refactoring it. |
30–448 |
UnnecessaryFullyQualifiedName |
Unnecessary use of fully qualified name 'java.lang.String' due to existing implicit import 'java.lang.*' |
43 |
CyclomaticComplexity |
The method 'execute()' has a cyclomatic complexity of 11. |
97–160 |
NPathComplexity |
The method 'execute()' has an NPath complexity of 256, current threshold is 200 |
97–160 |
CognitiveComplexity |
The method 'writeGoal(StringBuilder, String, Element)' has a cognitive complexity of 15, current threshold is 15 |
219–257 |
CyclomaticComplexity |
The method 'writeGoal(StringBuilder, String, Element)' has a cyclomatic complexity of 11. |
219–257 |
CyclomaticComplexity |
The method 'writeParameter(StringBuilder, Node, Node)' has a cyclomatic complexity of 10. |
259–297 |
NPathComplexity |
The method 'writeParameter(StringBuilder, Node, Node)' has an NPath complexity of 216, current threshold is 200 |
259–297 |
Files
org/basepom/inline/mojo/InlineMojo.java
Rule |
Violation |
Priority |
Line |
TooManyFields |
Too many fields |
5 |
84–550 |
PreserveStackTrace |
New exception is thrown in catch block, original stack trace may be lost |
5 |
283 |
CognitiveComplexity |
The method 'computeDependencyMap(ImmutableSetMultimap.Builder, ImmutableSet.Builder)' has a cognitive complexity of 23, current threshold is 15 |
5 |
289–407 |
UnnecessaryFullyQualifiedName |
Unnecessary use of fully qualified name 'String.format' due to existing static import 'java.lang.String.format' |
5 |
542 |
org/basepom/inline/mojo/PluginLog.java
Rule |
Violation |
Priority |
Line |
ProperLogger |
Logger should be defined private static final and have the correct class |
5 |
27 |
org/basepom/inline/mojo/HelpMojo.java
Rule |
Violation |
Priority |
Line |
TooManyMethods |
This class has too many methods, consider refactoring it. |
5 |
30–448 |
UnnecessaryFullyQualifiedName |
Unnecessary use of fully qualified name 'java.lang.String' due to existing implicit import 'java.lang.*' |
5 |
43 |
IdenticalCatchBranches |
'catch' branch identical to 'IOException' branch |
3 |
83–86 |
IdenticalCatchBranches |
'catch' branch identical to 'IOException' branch |
3 |
87–90 |
CyclomaticComplexity |
The method 'execute()' has a cyclomatic complexity of 11. |
5 |
97–160 |
NPathComplexity |
The method 'execute()' has an NPath complexity of 256, current threshold is 200 |
5 |
97–160 |
UseDiamondOperator |
Explicit type arguments can be replaced by Diamond Operator |
3 |
191 |
CognitiveComplexity |
The method 'writeGoal(StringBuilder, String, Element)' has a cognitive complexity of 15, current threshold is 15 |
5 |
219–257 |
CyclomaticComplexity |
The method 'writeGoal(StringBuilder, String, Element)' has a cyclomatic complexity of 11. |
5 |
219–257 |
CyclomaticComplexity |
The method 'writeParameter(StringBuilder, Node, Node)' has a cyclomatic complexity of 10. |
5 |
259–297 |
NPathComplexity |
The method 'writeParameter(StringBuilder, Node, Node)' has an NPath complexity of 216, current threshold is 200 |
5 |
259–297 |
UseDiamondOperator |
Explicit type arguments can be replaced by Diamond Operator |
3 |
348 |
LinguisticNaming |
Linguistics Antipattern - The transform method 'toLines' should not return void linguistically |
3 |
370–411 |