PMD Results
The following document contains the results of PMD 7.5.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/DependencyDefinition.java
| Rule | Violation | Line |
|---|---|---|
| SimplifyBooleanReturns | This if statement can be replaced by `return !{condition} || {elseBranch};` | 110–112 |
org/basepom/mojo/repack/RepackMojo.java
| Rule | Violation | Line |
|---|---|---|
| TooManyFields | Too many fields | 56–389 |
| CognitiveComplexity | The method 'execute()' has a cognitive complexity of 29, current threshold is 15 | 220 |
| CyclomaticComplexity | The method 'execute()' has a cyclomatic complexity of 20. | 220 |
| NPathComplexity | The method 'execute()' has an NPath complexity of 4360, current threshold is 200 | 220 |
org/basepom/mojo/repack/Reporter.java
| Rule | Violation | Line |
|---|---|---|
| UseUtilityClass | This utility class has a non-private constructor | 33 |
org/basepom/mojo/repack/Wildcard.java
| Rule | Violation | Line |
|---|---|---|
| SimplifyBooleanReturns | This if statement can be replaced by `return !{condition} || {elseBranch};` | 44–46 |
| CognitiveComplexity | The method 'doGlobMatch(String, String)' has a cognitive complexity of 24, current threshold is 15 | 51 |
| CyclomaticComplexity | The method 'doGlobMatch(String, String)' has a cyclomatic complexity of 11. | 51 |
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/DependencyDefinition.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| SimplifyBooleanReturns | This if statement can be replaced by `return !{condition} || {elseBranch};` | 5 | 110–112 |
org/basepom/mojo/repack/RepackMojo.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| TooManyFields | Too many fields | 5 | 56–389 |
| CognitiveComplexity | The method 'execute()' has a cognitive complexity of 29, current threshold is 15 | 5 | 220 |
| CyclomaticComplexity | The method 'execute()' has a cyclomatic complexity of 20. | 5 | 220 |
| NPathComplexity | The method 'execute()' has an NPath complexity of 4360, current threshold is 200 | 5 | 220 |
org/basepom/mojo/repack/Reporter.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UseUtilityClass | This utility class has a non-private constructor | 5 | 33 |
org/basepom/mojo/repack/Wildcard.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| SimplifyBooleanReturns | This if statement can be replaced by `return !{condition} || {elseBranch};` | 5 | 44–46 |
| CognitiveComplexity | The method 'doGlobMatch(String, String)' has a cognitive complexity of 24, current threshold is 15 | 5 | 51 |
| CyclomaticComplexity | The method 'doGlobMatch(String, String)' has a cyclomatic complexity of 11. | 5 | 51 |
