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/LayoutType.java

Rule Violation Line
AvoidFieldNameMatchingMethodName Field layout has the same name as a method 53

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 56–388
NPathComplexity The method 'execute()' has an NPath complexity of 4360, current threshold is 200 219–307
CyclomaticComplexity The method 'execute()' has a cyclomatic complexity of 20. 219–307
CognitiveComplexity The method 'execute()' has a cognitive complexity of 29, current threshold is 15 219–307

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. 33–107

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 51–95
CyclomaticComplexity The method 'doGlobMatch(String, String)' has a cyclomatic complexity of 11. 51–95

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/LayoutType.java

Rule Violation Priority Line
AvoidFieldNameMatchingMethodName Field layout has the same name as a method 5 53

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 56–388
NPathComplexity The method 'execute()' has an NPath complexity of 4360, current threshold is 200 5 219–307
CyclomaticComplexity The method 'execute()' has a cyclomatic complexity of 20. 5 219–307
CognitiveComplexity The method 'execute()' has a cognitive complexity of 29, current threshold is 15 5 219–307

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 33–107

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 51–95
CyclomaticComplexity The method 'doGlobMatch(String, String)' has a cyclomatic complexity of 11. 5 51–95