Fork me on GitHub

PMD Results

The following document contains the results of PMD 7.5.0.

Violations By Priority

Priority 5

org/basepom/mojo/propertyhelper/AbstractPropertyHelperMojo.java

Rule Violation Line
TooManyFields Too many fields 55529
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 479

org/basepom/mojo/propertyhelper/Sneaky.java

Rule Violation Line
CyclomaticComplexity The method 'throwAnyway(Throwable)' has a cyclomatic complexity of 11. 29

org/basepom/mojo/propertyhelper/ValueCache.java

Rule Violation Line
CognitiveComplexity The method 'persist()' has a cognitive complexity of 30, current threshold is 15 140
CyclomaticComplexity The method 'persist()' has a cyclomatic complexity of 12. 140
NPathComplexity The method 'persist()' has an NPath complexity of 221, current threshold is 200 140
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 150
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 165
CollapsibleIfStatements This if statement could be combined with its parent 171173
CollapsibleIfStatements This if statement could be combined with its parent 177179

org/basepom/mojo/propertyhelper/fields/NumberField.java

Rule Violation Line
CognitiveComplexity The method 'parse()' has a cognitive complexity of 22, current threshold is 15 68
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 84

Files

org/basepom/mojo/propertyhelper/AbstractPropertyHelperMojo.java

Rule Violation Priority Line
TooManyFields Too many fields 5 55529
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 5 479

org/basepom/mojo/propertyhelper/Sneaky.java

Rule Violation Priority Line
CyclomaticComplexity The method 'throwAnyway(Throwable)' has a cyclomatic complexity of 11. 5 29

org/basepom/mojo/propertyhelper/ValueCache.java

Rule Violation Priority Line
CognitiveComplexity The method 'persist()' has a cognitive complexity of 30, current threshold is 15 5 140
CyclomaticComplexity The method 'persist()' has a cyclomatic complexity of 12. 5 140
NPathComplexity The method 'persist()' has an NPath complexity of 221, current threshold is 200 5 140
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 5 150
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 5 165
CollapsibleIfStatements This if statement could be combined with its parent 5 171173
CollapsibleIfStatements This if statement could be combined with its parent 5 177179

org/basepom/mojo/propertyhelper/fields/NumberField.java

Rule Violation Priority Line
CognitiveComplexity The method 'parse()' has a cognitive complexity of 22, current threshold is 15 5 68
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 5 84

Suppressed Violations

Filename Rule message Suppression type Reason
org/basepom/mojo/propertyhelper/fields/NumberField.java Lambda expression could be written as a method reference: `Long::toString` @suppresswarnings