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/dvc/AbstractDependencyVersionsMojo.java

Rule Violation Line
TooManyFields Too many fields 59374
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 290

org/basepom/mojo/dvc/QualifiedName.java

Rule Violation Line
TooManyMethods This class has too many methods, consider refactoring it. 37197
SimplifyBooleanReturns This if statement can be replaced by `return {condition} || {elseBranch};` 157159

org/basepom/mojo/dvc/dependency/DependencyMapBuilder.java

Rule Violation Line
CognitiveComplexity The method 'mapProject(MavenProject, DependencyFilter)' has a cognitive complexity of 16, current threshold is 15 93
CyclomaticComplexity The method 'mapProject(MavenProject, DependencyFilter)' has a cyclomatic complexity of 10. 93
CognitiveComplexity The method 'loadDependencyTree(DependencyNode, DependencyFilter, Builder<QualifiedName, DependencyNode>)' has a cognitive complexity of 21, current threshold is 15 165

org/basepom/mojo/dvc/dependency/DependencyTreeResolver.java

Rule Violation Line
CognitiveComplexity The method 'computeResolutionMap(MavenProject, ScopeLimitingFilter)' has a cognitive complexity of 20, current threshold is 15 105
CyclomaticComplexity The method 'computeResolutionMap(MavenProject, ScopeLimitingFilter)' has a cyclomatic complexity of 11. 105

org/basepom/mojo/dvc/model/ResolverDefinition.java

Rule Violation Line
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 44

org/basepom/mojo/dvc/mojo/DependencyVersionsCheckMojo.java

Rule Violation Line
NcssCount The method 'doExecute(ImmutableSetMultimap<QualifiedName, VersionResolutionCollection>, DependencyMap)' has a NCSS line count of 72. 79
CognitiveComplexity The method 'doExecute(ImmutableSetMultimap<QualifiedName, VersionResolutionCollection>, DependencyMap)' has a cognitive complexity of 48, current threshold is 15 79
CyclomaticComplexity The method 'doExecute(ImmutableSetMultimap<QualifiedName, VersionResolutionCollection>, DependencyMap)' has a cyclomatic complexity of 25. 79
NPathComplexity The method 'doExecute(ImmutableSetMultimap<QualifiedName, VersionResolutionCollection>, DependencyMap)' has an NPath complexity of 1145856, current threshold is 200 79
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 136

org/basepom/mojo/dvc/mojo/DependencyVersionsListMojo.java

Rule Violation Line
CognitiveComplexity The method 'doExecute(ImmutableSetMultimap<QualifiedName, VersionResolutionCollection>, DependencyMap)' has a cognitive complexity of 32, current threshold is 15 56
CyclomaticComplexity The method 'doExecute(ImmutableSetMultimap<QualifiedName, VersionResolutionCollection>, DependencyMap)' has a cyclomatic complexity of 15. 56
NPathComplexity The method 'doExecute(ImmutableSetMultimap<QualifiedName, VersionResolutionCollection>, DependencyMap)' has an NPath complexity of 7936, current threshold is 200 56
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 113

Files

org/basepom/mojo/dvc/AbstractDependencyVersionsMojo.java

Rule Violation Priority Line
TooManyFields Too many fields 5 59374
SignatureDeclareThrowsException A method/constructor should not explicitly throw java.lang.Exception 5 290

org/basepom/mojo/dvc/QualifiedName.java

Rule Violation Priority Line
TooManyMethods This class has too many methods, consider refactoring it. 5 37197
SimplifyBooleanReturns This if statement can be replaced by `return {condition} || {elseBranch};` 5 157159

org/basepom/mojo/dvc/dependency/DependencyMapBuilder.java

Rule Violation Priority Line
CognitiveComplexity The method 'mapProject(MavenProject, DependencyFilter)' has a cognitive complexity of 16, current threshold is 15 5 93
CyclomaticComplexity The method 'mapProject(MavenProject, DependencyFilter)' has a cyclomatic complexity of 10. 5 93
CognitiveComplexity The method 'loadDependencyTree(DependencyNode, DependencyFilter, Builder<QualifiedName, DependencyNode>)' has a cognitive complexity of 21, current threshold is 15 5 165

org/basepom/mojo/dvc/dependency/DependencyTreeResolver.java

Rule Violation Priority Line
CognitiveComplexity The method 'computeResolutionMap(MavenProject, ScopeLimitingFilter)' has a cognitive complexity of 20, current threshold is 15 5 105
CyclomaticComplexity The method 'computeResolutionMap(MavenProject, ScopeLimitingFilter)' has a cyclomatic complexity of 11. 5 105

org/basepom/mojo/dvc/model/ResolverDefinition.java

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

org/basepom/mojo/dvc/mojo/DependencyVersionsCheckMojo.java

Rule Violation Priority Line
NcssCount The method 'doExecute(ImmutableSetMultimap<QualifiedName, VersionResolutionCollection>, DependencyMap)' has a NCSS line count of 72. 5 79
CognitiveComplexity The method 'doExecute(ImmutableSetMultimap<QualifiedName, VersionResolutionCollection>, DependencyMap)' has a cognitive complexity of 48, current threshold is 15 5 79
CyclomaticComplexity The method 'doExecute(ImmutableSetMultimap<QualifiedName, VersionResolutionCollection>, DependencyMap)' has a cyclomatic complexity of 25. 5 79
NPathComplexity The method 'doExecute(ImmutableSetMultimap<QualifiedName, VersionResolutionCollection>, DependencyMap)' has an NPath complexity of 1145856, current threshold is 200 5 79
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 5 136

org/basepom/mojo/dvc/mojo/DependencyVersionsListMojo.java

Rule Violation Priority Line
CognitiveComplexity The method 'doExecute(ImmutableSetMultimap<QualifiedName, VersionResolutionCollection>, DependencyMap)' has a cognitive complexity of 32, current threshold is 15 5 56
CyclomaticComplexity The method 'doExecute(ImmutableSetMultimap<QualifiedName, VersionResolutionCollection>, DependencyMap)' has a cyclomatic complexity of 15. 5 56
NPathComplexity The method 'doExecute(ImmutableSetMultimap<QualifiedName, VersionResolutionCollection>, DependencyMap)' has an NPath complexity of 7936, current threshold is 200 5 56
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 5 113

Suppressed Violations

Filename Rule message Suppression type Reason
org/basepom/mojo/dvc/AbstractDependencyVersionsMojo.java A catch statement that catches an exception only to rethrow it should be avoided. @suppresswarnings
org/basepom/mojo/dvc/CheckExclusionsFilter.java Avoid using a branching statement as the last in a loop. @suppresswarnings
org/basepom/mojo/dvc/model/ResolverDefinition.java Consider using varargs for methods or constructors which take an array the last parameter. @suppresswarnings