PMD Results
The following document contains the results of PMD 7.5.0.
Violations By Priority
Priority 5
org/basepom/mojo/dvc/AbstractDependencyVersionsMojo.java
org/basepom/mojo/dvc/QualifiedName.java
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
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
org/basepom/mojo/dvc/QualifiedName.java
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
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 |
|