PMD Results

The following document contains the results of PMD 7.7.0.

Violations By Priority

Priority 3

org/apache/maven/enforcer/rules/ReactorModuleConvergence.java

Rule Violation Line
EmptyControlStatement Empty else statement 194196
CollapsibleIfStatements This if statement could be combined with its parent 208213
CollapsibleIfStatements This if statement could be combined with its parent 329331

org/apache/maven/enforcer/rules/RequireActiveProfile.java

Rule Violation Line
CollapsibleIfStatements This if statement could be combined with its parent 8486

org/apache/maven/enforcer/rules/RequireNoRepositories.java

Rule Violation Line
CollapsibleIfStatements This if statement could be combined with its parent 236244

org/apache/maven/enforcer/rules/checksum/NormalizeLineSeparatorReader.java

Rule Violation Line
CollapsibleIfStatements This if statement could be combined with its parent 6466
CollapsibleIfStatements This if statement could be combined with its parent 6971

org/apache/maven/enforcer/rules/dependency/BanDynamicVersions.java

Rule Violation Line
UnusedFormalParameter Avoid unused constructor parameters such as 'project'. 125
UnusedFormalParameter Avoid unused constructor parameters such as 'repoSystem'. 125
UnusedFormalParameter Avoid unused constructor parameters such as 'mavenSession'. 125

org/apache/maven/enforcer/rules/utils/ArtifactMatcher.java

Rule Violation Line
CollapsibleIfStatements This if statement could be combined with its parent 130133

Priority 4

org/apache/maven/enforcer/rules/ExternalRules.java

Rule Violation Line
UselessParentheses Useless parentheses. 203204

org/apache/maven/enforcer/rules/RequireOS.java

Rule Violation Line
UselessParentheses Useless parentheses. 164
UselessParentheses Useless parentheses. 242

org/apache/maven/enforcer/rules/RequirePluginVersions.java

Rule Violation Line
UselessParentheses Useless parentheses. 564

org/apache/maven/enforcer/rules/dependency/ResolverUtil.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.eclipse.aether.graph': 'DependencyNode' is already in scope because it is imported in this file 170
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.eclipse.aether.graph': 'DependencyNode' is already in scope because it is imported in this file 180

Files

org/apache/maven/enforcer/rules/ExternalRules.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 203204

org/apache/maven/enforcer/rules/ReactorModuleConvergence.java

Rule Violation Priority Line
EmptyControlStatement Empty else statement 3 194196
CollapsibleIfStatements This if statement could be combined with its parent 3 208213
CollapsibleIfStatements This if statement could be combined with its parent 3 329331

org/apache/maven/enforcer/rules/RequireActiveProfile.java

Rule Violation Priority Line
CollapsibleIfStatements This if statement could be combined with its parent 3 8486

org/apache/maven/enforcer/rules/RequireNoRepositories.java

Rule Violation Priority Line
CollapsibleIfStatements This if statement could be combined with its parent 3 236244

org/apache/maven/enforcer/rules/RequireOS.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 164
UselessParentheses Useless parentheses. 4 242

org/apache/maven/enforcer/rules/RequirePluginVersions.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 564

org/apache/maven/enforcer/rules/checksum/NormalizeLineSeparatorReader.java

Rule Violation Priority Line
CollapsibleIfStatements This if statement could be combined with its parent 3 6466
CollapsibleIfStatements This if statement could be combined with its parent 3 6971

org/apache/maven/enforcer/rules/dependency/BanDynamicVersions.java

Rule Violation Priority Line
UnusedFormalParameter Avoid unused constructor parameters such as 'project'. 3 125
UnusedFormalParameter Avoid unused constructor parameters such as 'repoSystem'. 3 125
UnusedFormalParameter Avoid unused constructor parameters such as 'mavenSession'. 3 125

org/apache/maven/enforcer/rules/dependency/ResolverUtil.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.eclipse.aether.graph': 'DependencyNode' is already in scope because it is imported in this file 4 170
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.eclipse.aether.graph': 'DependencyNode' is already in scope because it is imported in this file 4 180

org/apache/maven/enforcer/rules/utils/ArtifactMatcher.java

Rule Violation Priority Line
CollapsibleIfStatements This if statement could be combined with its parent 3 130133