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/propertyhelper/AbstractPropertyHelperMojo.java

Rule Violation Line
TooManyFields Too many fields 55249
CyclomaticComplexity The method 'loadPropertyElements()' has a cyclomatic complexity of 12. 188248
CognitiveComplexity The method 'loadPropertyElements()' has a cognitive complexity of 21, current threshold is 15 188248
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 220

org/basepom/mojo/propertyhelper/DateField.java

Rule Violation Line
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 52

org/basepom/mojo/propertyhelper/MacroField.java

Rule Violation Line
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 60

org/basepom/mojo/propertyhelper/NumberField.java

Rule Violation Line
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 56

org/basepom/mojo/propertyhelper/PropertyField.java

Rule Violation Line
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 58

org/basepom/mojo/propertyhelper/StringField.java

Rule Violation Line
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 50

org/basepom/mojo/propertyhelper/UuidField.java

Rule Violation Line
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 49

org/basepom/mojo/propertyhelper/ValueCache.java

Rule Violation Line
CyclomaticComplexity The method 'persist()' has a cyclomatic complexity of 12. 138181
NPathComplexity The method 'persist()' has an NPath complexity of 221, current threshold is 200 138181
CognitiveComplexity The method 'persist()' has a cognitive complexity of 30, current threshold is 15 138181
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 148
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 163
CollapsibleIfStatements These nested if statements could be combined 169171
CollapsibleIfStatements These nested if statements could be combined 175177
AvoidFieldNameMatchingMethodName Field dirty has the same name as a method 191

org/basepom/mojo/propertyhelper/ValueProvider.java

Rule Violation Line
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 5253

org/basepom/mojo/propertyhelper/beans/AbstractDefinition.java

Rule Violation Line
TooManyMethods This class has too many methods, consider refactoring it. 29202
AbstractClassWithoutAbstractMethod This abstract class does not have any abstract methods 29202

org/basepom/mojo/propertyhelper/beans/DateDefinition.java

Rule Violation Line
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 3637

org/basepom/mojo/propertyhelper/beans/MacroDefinition.java

Rule Violation Line
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 4749

org/basepom/mojo/propertyhelper/beans/PropertyGroup.java

Rule Violation Line
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 7071
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 130

org/basepom/mojo/propertyhelper/beans/StringDefinition.java

Rule Violation Line
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 4344

org/basepom/mojo/propertyhelper/beans/UuidDefinition.java

Rule Violation Line
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 3233

org/basepom/mojo/propertyhelper/util/Log.java

Rule Violation Line
TooManyMethods This class has too many methods, consider refactoring it. 26352
ProperLogger Logger should be defined private static final and have the correct class 30

Files

org/basepom/mojo/propertyhelper/AbstractPropertyHelperMojo.java

Rule Violation Priority Line
TooManyFields Too many fields 5 55249
CyclomaticComplexity The method 'loadPropertyElements()' has a cyclomatic complexity of 12. 5 188248
CognitiveComplexity The method 'loadPropertyElements()' has a cognitive complexity of 21, current threshold is 15 5 188248
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 5 220

org/basepom/mojo/propertyhelper/DateField.java

Rule Violation Priority Line
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 5 52

org/basepom/mojo/propertyhelper/MacroField.java

Rule Violation Priority Line
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 5 60

org/basepom/mojo/propertyhelper/NumberField.java

Rule Violation Priority Line
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 5 56

org/basepom/mojo/propertyhelper/PropertyField.java

Rule Violation Priority Line
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 5 58

org/basepom/mojo/propertyhelper/StringField.java

Rule Violation Priority Line
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 5 50

org/basepom/mojo/propertyhelper/UuidField.java

Rule Violation Priority Line
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 5 49

org/basepom/mojo/propertyhelper/ValueCache.java

Rule Violation Priority Line
CyclomaticComplexity The method 'persist()' has a cyclomatic complexity of 12. 5 138181
NPathComplexity The method 'persist()' has an NPath complexity of 221, current threshold is 200 5 138181
CognitiveComplexity The method 'persist()' has a cognitive complexity of 30, current threshold is 15 5 138181
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 5 148
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 5 163
CollapsibleIfStatements These nested if statements could be combined 5 169171
CollapsibleIfStatements These nested if statements could be combined 5 175177
AvoidFieldNameMatchingMethodName Field dirty has the same name as a method 5 191

org/basepom/mojo/propertyhelper/ValueProvider.java

Rule Violation Priority Line
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 5 5253

org/basepom/mojo/propertyhelper/beans/AbstractDefinition.java

Rule Violation Priority Line
TooManyMethods This class has too many methods, consider refactoring it. 5 29202
AbstractClassWithoutAbstractMethod This abstract class does not have any abstract methods 5 29202

org/basepom/mojo/propertyhelper/beans/DateDefinition.java

Rule Violation Priority Line
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 5 3637

org/basepom/mojo/propertyhelper/beans/MacroDefinition.java

Rule Violation Priority Line
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 5 4749

org/basepom/mojo/propertyhelper/beans/PropertyGroup.java

Rule Violation Priority Line
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 5 7071
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 5 130

org/basepom/mojo/propertyhelper/beans/StringDefinition.java

Rule Violation Priority Line
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 5 4344

org/basepom/mojo/propertyhelper/beans/UuidDefinition.java

Rule Violation Priority Line
UnnecessaryConstructor Avoid unnecessary constructors - the compiler will generate these for you 5 3233

org/basepom/mojo/propertyhelper/util/Log.java

Rule Violation Priority Line
TooManyMethods This class has too many methods, consider refactoring it. 5 26352
ProperLogger Logger should be defined private static final and have the correct class 5 30