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 | 194–196 |
| CollapsibleIfStatements | These nested if statements could be combined | 208–213 |
| CollapsibleIfStatements | These nested if statements could be combined | 329–331 |
org/apache/maven/enforcer/rules/RequireActiveProfile.java
| Rule | Violation | Line |
|---|---|---|
| CollapsibleIfStatements | These nested if statements could be combined | 84–86 |
org/apache/maven/enforcer/rules/RequireNoRepositories.java
| Rule | Violation | Line |
|---|---|---|
| CollapsibleIfStatements | These nested if statements could be combined | 236–244 |
org/apache/maven/enforcer/rules/checksum/NormalizeLineSeparatorReader.java
| Rule | Violation | Line |
|---|---|---|
| CollapsibleIfStatements | These nested if statements could be combined | 64–66 |
| CollapsibleIfStatements | These nested if statements could be combined | 69–71 |
org/apache/maven/enforcer/rules/dependency/BanDynamicVersions.java
| Rule | Violation | Line |
|---|---|---|
| UnusedFormalParameter | Avoid unused constructor parameters such as 'mavenSession'. | 126 |
| UnusedFormalParameter | Avoid unused constructor parameters such as 'project'. | 126 |
| UnusedFormalParameter | Avoid unused constructor parameters such as 'repoSystem'. | 126 |
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 | 128–131 |
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. | 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/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 | 194–196 |
| CollapsibleIfStatements | These nested if statements could be combined | 3 | 208–213 |
| CollapsibleIfStatements | These nested if statements could be combined | 3 | 329–331 |
org/apache/maven/enforcer/rules/RequireActiveProfile.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| CollapsibleIfStatements | These nested if statements could be combined | 3 | 84–86 |
org/apache/maven/enforcer/rules/RequireNoRepositories.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| CollapsibleIfStatements | These nested if statements could be combined | 3 | 236–244 |
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 | These nested if statements could be combined | 3 | 64–66 |
| CollapsibleIfStatements | These nested if statements could be combined | 3 | 69–71 |
org/apache/maven/enforcer/rules/dependency/BanDynamicVersions.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnusedFormalParameter | Avoid unused constructor parameters such as 'mavenSession'. | 3 | 126 |
| UnusedFormalParameter | Avoid unused constructor parameters such as 'project'. | 3 | 126 |
| UnusedFormalParameter | Avoid unused constructor parameters such as 'repoSystem'. | 3 | 126 |
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 | 128–131 |
| UselessParentheses | Useless parentheses. | 4 | 235 |


