Fork me on GitHub

PMD Results

The following document contains the results of PMD 6.55.0.

Violations By Priority

Priority 5

org/basepom/mojo/repack/ArtifactsLibraries.java

Rule Violation Line
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 95
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 108
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 137
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 138

org/basepom/mojo/repack/PluginLog.java

Rule Violation Line
ProperLogger Logger should be defined private static final and have the correct class 27

org/basepom/mojo/repack/RepackMojo.java

Rule Violation Line
TooManyFields Too many fields 56389
CognitiveComplexity The method 'execute()' has a cognitive complexity of 29, current threshold is 15 220308
CyclomaticComplexity The method 'execute()' has a cyclomatic complexity of 20. 220308
NPathComplexity The method 'execute()' has an NPath complexity of 4360, current threshold is 200 220308

org/basepom/mojo/repack/Reporter.java

Rule Violation Line
UseUtilityClass All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 33115

org/basepom/mojo/repack/Wildcard.java

Rule Violation Line
CognitiveComplexity The method 'doGlobMatch(String, String)' has a cognitive complexity of 24, current threshold is 15 5195
CyclomaticComplexity The method 'doGlobMatch(String, String)' has a cyclomatic complexity of 11. 5195

Files

org/basepom/mojo/repack/ArtifactsLibraries.java

Rule Violation Priority Line
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 5 95
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 5 108
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 5 137
ConsecutiveAppendsShouldReuse StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 5 138

org/basepom/mojo/repack/PluginLog.java

Rule Violation Priority Line
ProperLogger Logger should be defined private static final and have the correct class 5 27

org/basepom/mojo/repack/RepackMojo.java

Rule Violation Priority Line
TooManyFields Too many fields 5 56389
CognitiveComplexity The method 'execute()' has a cognitive complexity of 29, current threshold is 15 5 220308
CyclomaticComplexity The method 'execute()' has a cyclomatic complexity of 20. 5 220308
NPathComplexity The method 'execute()' has an NPath complexity of 4360, current threshold is 200 5 220308

org/basepom/mojo/repack/Reporter.java

Rule Violation Priority Line
UseUtilityClass All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 5 33115

org/basepom/mojo/repack/Wildcard.java

Rule Violation Priority Line
CognitiveComplexity The method 'doGlobMatch(String, String)' has a cognitive complexity of 24, current threshold is 15 5 5195
CyclomaticComplexity The method 'doGlobMatch(String, String)' has a cyclomatic complexity of 11. 5 5195