PMD Results

The following document contains the results of PMD 6.55.0.

Violations By Priority

Priority 3

org/apache/maven/enforcer/rules/ReactorModuleConvergence.java
Rule Violation Line
EmptyControlStatement Empty else statement 194196
CollapsibleIfStatements These nested if statements could be combined 208213
CollapsibleIfStatements These nested if statements could be combined 329331
org/apache/maven/enforcer/rules/RequireActiveProfile.java
Rule Violation Line
CollapsibleIfStatements These nested if statements could be combined 8486
org/apache/maven/enforcer/rules/RequireNoRepositories.java
Rule Violation Line
CollapsibleIfStatements These nested if statements could be combined 236244
org/apache/maven/enforcer/rules/checksum/NormalizeLineSeparatorReader.java
Rule Violation Line
CollapsibleIfStatements These nested if statements could be combined 6466
CollapsibleIfStatements These nested if statements could be combined 6971
org/apache/maven/enforcer/rules/dependency/BanDynamicVersions.java
Rule Violation Line
UnusedFormalParameter Avoid unused constructor parameters such as 'mavenSession'. 117
UnusedFormalParameter Avoid unused constructor parameters such as 'project'. 117
UnusedFormalParameter Avoid unused constructor parameters such as 'repoSystem'. 117
org/apache/maven/enforcer/rules/files/RequireFilesDontExist.java
Rule Violation Line
SimplifiedTernary Ternary operators that can be simplified with || or && 33
org/apache/maven/enforcer/rules/files/RequireFilesExist.java
Rule Violation Line
SimplifiedTernary Ternary operators that can be simplified with || or && 34
org/apache/maven/enforcer/rules/utils/ArtifactMatcher.java
Rule Violation Line
CollapsibleIfStatements These nested if statements could be combined 128131

Priority 4

org/apache/maven/enforcer/rules/AbstractStandardEnforcerRule.java
Rule Violation Line
UselessParentheses Useless parentheses. 52
UselessParentheses Useless parentheses. 57
UselessParentheses Useless parentheses. 62
org/apache/maven/enforcer/rules/RequireOS.java
Rule Violation Line
UselessParentheses Useless parentheses. 224
org/apache/maven/enforcer/rules/RequirePluginVersions.java
Rule Violation Line
UselessParentheses Useless parentheses. 564
org/apache/maven/enforcer/rules/dependency/RequireReleaseDeps.java
Rule Violation Line
UselessParentheses Useless parentheses. 100
org/apache/maven/enforcer/rules/dependency/ResolverUtil.java
Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.eclipse.aether.graph.DependencyNode' due to existing import 'org.eclipse.aether.graph.DependencyNode' 170
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.eclipse.aether.graph.DependencyNode' due to existing import 'org.eclipse.aether.graph.DependencyNode' 180
org/apache/maven/enforcer/rules/files/RequireFilesSize.java
Rule Violation Line
UselessParentheses Useless parentheses. 87
UselessParentheses Useless parentheses. 90
UselessParentheses Useless parentheses. 99
UselessParentheses Useless parentheses. 100
UselessParentheses Useless parentheses. 106
org/apache/maven/enforcer/rules/utils/ArtifactMatcher.java
Rule Violation Line
UselessParentheses Useless parentheses. 235

Files

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

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 52
UselessParentheses Useless parentheses. 4 57
UselessParentheses Useless parentheses. 4 62

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

Rule Violation Priority Line
EmptyControlStatement Empty else statement 3 194196
CollapsibleIfStatements These nested if statements could be combined 3 208213
CollapsibleIfStatements These nested if statements could be combined 3 329331

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

Rule Violation Priority Line
CollapsibleIfStatements These nested if statements could be combined 3 8486

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

Rule Violation Priority Line
CollapsibleIfStatements These nested if statements could be combined 3 236244

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

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 224

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 These nested if statements could be combined 3 6466
CollapsibleIfStatements These nested if statements could be combined 3 6971

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

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

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

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 100

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

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.eclipse.aether.graph.DependencyNode' due to existing import 'org.eclipse.aether.graph.DependencyNode' 4 170
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.eclipse.aether.graph.DependencyNode' due to existing import 'org.eclipse.aether.graph.DependencyNode' 4 180

org/apache/maven/enforcer/rules/files/RequireFilesDontExist.java

Rule Violation Priority Line
SimplifiedTernary Ternary operators that can be simplified with || or && 3 33

org/apache/maven/enforcer/rules/files/RequireFilesExist.java

Rule Violation Priority Line
SimplifiedTernary Ternary operators that can be simplified with || or && 3 34

org/apache/maven/enforcer/rules/files/RequireFilesSize.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 87
UselessParentheses Useless parentheses. 4 90
UselessParentheses Useless parentheses. 4 99
UselessParentheses Useless parentheses. 4 100
UselessParentheses Useless parentheses. 4 106

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

Rule Violation Priority Line
CollapsibleIfStatements These nested if statements could be combined 3 128131
UselessParentheses Useless parentheses. 4 235