Fork me on GitHub

PMD Results

The following document contains the results of PMD 6.55.0.

Violations By Priority

Priority 3

org/basepom/inline/mojo/HelpMojo.java

Rule Violation Line
IdenticalCatchBranches 'catch' branch identical to 'IOException' branch 8386
IdenticalCatchBranches 'catch' branch identical to 'IOException' branch 8790
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 191
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 348
LinguisticNaming Linguistics Antipattern - The transform method 'toLines' should not return void linguistically 370411

Priority 5

org/basepom/inline/mojo/InlineMojo.java

Rule Violation Line
TooManyFields Too many fields 84550
PreserveStackTrace New exception is thrown in catch block, original stack trace may be lost 283
CognitiveComplexity The method 'computeDependencyMap(ImmutableSetMultimap.Builder, ImmutableSet.Builder)' has a cognitive complexity of 23, current threshold is 15 289407
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'String.format' due to existing static import 'java.lang.String.format' 542

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. 30448
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. 97160
NPathComplexity The method 'execute()' has an NPath complexity of 256, current threshold is 200 97160
CognitiveComplexity The method 'writeGoal(StringBuilder, String, Element)' has a cognitive complexity of 15, current threshold is 15 219257
CyclomaticComplexity The method 'writeGoal(StringBuilder, String, Element)' has a cyclomatic complexity of 11. 219257
CyclomaticComplexity The method 'writeParameter(StringBuilder, Node, Node)' has a cyclomatic complexity of 10. 259297
NPathComplexity The method 'writeParameter(StringBuilder, Node, Node)' has an NPath complexity of 216, current threshold is 200 259297

Files

org/basepom/inline/mojo/InlineMojo.java

Rule Violation Priority Line
TooManyFields Too many fields 5 84550
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 289407
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 30448
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 8386
IdenticalCatchBranches 'catch' branch identical to 'IOException' branch 3 8790
CyclomaticComplexity The method 'execute()' has a cyclomatic complexity of 11. 5 97160
NPathComplexity The method 'execute()' has an NPath complexity of 256, current threshold is 200 5 97160
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 219257
CyclomaticComplexity The method 'writeGoal(StringBuilder, String, Element)' has a cyclomatic complexity of 11. 5 219257
CyclomaticComplexity The method 'writeParameter(StringBuilder, Node, Node)' has a cyclomatic complexity of 10. 5 259297
NPathComplexity The method 'writeParameter(StringBuilder, Node, Node)' has an NPath complexity of 216, current threshold is 200 5 259297
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 370411