PMD Results
The following document contains the results of PMD 6.42.0.
Violations By Priority
Priority 3
org/apache/maven/plugins/enforcer/BanDuplicatePomDependencyVersions.java
| Rule | Violation | Line |
|---|---|---|
| UnusedFormalParameter | Avoid unused method parameters such as 'helper'. | 99 |
org/apache/maven/plugins/enforcer/ReactorModuleConvergence.java
| Rule | Violation | Line |
|---|---|---|
| EmptyIfStmt | Avoid empty if statements | 236–238 |
| CollapsibleIfStatements | These nested if statements could be combined | 253–260 |
| CollapsibleIfStatements | These nested if statements could be combined | 396–399 |
org/apache/maven/plugins/enforcer/RequireActiveProfile.java
| Rule | Violation | Line |
|---|---|---|
| CollapsibleIfStatements | These nested if statements could be combined | 97–100 |
org/apache/maven/plugins/enforcer/RequireFilesDontExist.java
| Rule | Violation | Line |
|---|---|---|
| SimplifiedTernary | Ternary operators that can be simplified with || or && | 34 |
org/apache/maven/plugins/enforcer/RequireFilesExist.java
| Rule | Violation | Line |
|---|---|---|
| SimplifiedTernary | Ternary operators that can be simplified with || or && | 35 |
org/apache/maven/plugins/enforcer/RequireNoRepositories.java
| Rule | Violation | Line |
|---|---|---|
| CollapsibleIfStatements | These nested if statements could be combined | 215–222 |
org/apache/maven/plugins/enforcer/RequirePluginVersions.java
| Rule | Violation | Line |
|---|---|---|
| UnusedFormalParameter | Avoid unused method parameters such as 'model'. | 989 |
| UnusedFormalParameter | Avoid unused method parameters such as 'model'. | 1002 |
| UnusedFormalParameter | Avoid unused method parameters such as 'model'. | 1017 |
org/apache/maven/plugins/enforcer/utils/ArtifactMatcher.java
| Rule | Violation | Line |
|---|---|---|
| CollapsibleIfStatements | These nested if statements could be combined | 116–122 |
org/apache/maven/plugins/enforcer/utils/DependencyVersionMap.java
| Rule | Violation | Line |
|---|---|---|
| UnusedFormalParameter | Avoid unused constructor parameters such as 'log'. | 43 |
org/apache/maven/plugins/enforcer/utils/EnforcerRuleUtils.java
| Rule | Violation | Line |
|---|---|---|
| UnusedFormalParameter | Avoid unused constructor parameters such as 'theFactory'. | 70 |
org/apache/maven/plugins/enforcer/utils/NormalizeLineSeparatorReader.java
| Rule | Violation | Line |
|---|---|---|
| CollapsibleIfStatements | These nested if statements could be combined | 72–75 |
| CollapsibleIfStatements | These nested if statements could be combined | 79–82 |
Priority 4
org/apache/maven/plugins/enforcer/AbstractVersionEnforcer.java
| Rule | Violation | Line |
|---|---|---|
| UselessParentheses | Useless parentheses. | 134 |
org/apache/maven/plugins/enforcer/BanTransitiveDependencies.java
| Rule | Violation | Line |
|---|---|---|
| UselessParentheses | Useless parentheses. | 110 |
org/apache/maven/plugins/enforcer/RequireFilesSize.java
| Rule | Violation | Line |
|---|---|---|
| UselessParentheses | Useless parentheses. | 111 |
| UselessParentheses | Useless parentheses. | 116 |
| UselessParentheses | Useless parentheses. | 126 |
| UselessParentheses | Useless parentheses. | 127 |
| UselessParentheses | Useless parentheses. | 134 |
org/apache/maven/plugins/enforcer/RequireOS.java
| Rule | Violation | Line |
|---|---|---|
| UselessParentheses | Useless parentheses. | 147–154 |
| UselessParentheses | Useless parentheses. | 216 |
| UselessParentheses | Useless parentheses. | 287 |
Files
org/apache/maven/plugins/enforcer/AbstractVersionEnforcer.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UselessParentheses | Useless parentheses. | 4 | 134 |
org/apache/maven/plugins/enforcer/BanDuplicatePomDependencyVersions.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnusedFormalParameter | Avoid unused method parameters such as 'helper'. | 3 | 99 |
org/apache/maven/plugins/enforcer/BanTransitiveDependencies.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UselessParentheses | Useless parentheses. | 4 | 110 |
org/apache/maven/plugins/enforcer/ReactorModuleConvergence.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| EmptyIfStmt | Avoid empty if statements | 3 | 236–238 |
| CollapsibleIfStatements | These nested if statements could be combined | 3 | 253–260 |
| CollapsibleIfStatements | These nested if statements could be combined | 3 | 396–399 |
org/apache/maven/plugins/enforcer/RequireActiveProfile.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| CollapsibleIfStatements | These nested if statements could be combined | 3 | 97–100 |
org/apache/maven/plugins/enforcer/RequireFilesDontExist.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| SimplifiedTernary | Ternary operators that can be simplified with || or && | 3 | 34 |
org/apache/maven/plugins/enforcer/RequireFilesExist.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| SimplifiedTernary | Ternary operators that can be simplified with || or && | 3 | 35 |
org/apache/maven/plugins/enforcer/RequireFilesSize.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UselessParentheses | Useless parentheses. | 4 | 111 |
| UselessParentheses | Useless parentheses. | 4 | 116 |
| UselessParentheses | Useless parentheses. | 4 | 126 |
| UselessParentheses | Useless parentheses. | 4 | 127 |
| UselessParentheses | Useless parentheses. | 4 | 134 |
org/apache/maven/plugins/enforcer/RequireNoRepositories.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| CollapsibleIfStatements | These nested if statements could be combined | 3 | 215–222 |
org/apache/maven/plugins/enforcer/RequireOS.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UselessParentheses | Useless parentheses. | 4 | 147–154 |
| UselessParentheses | Useless parentheses. | 4 | 216 |
| UselessParentheses | Useless parentheses. | 4 | 287 |
org/apache/maven/plugins/enforcer/RequirePluginVersions.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnusedFormalParameter | Avoid unused method parameters such as 'model'. | 3 | 989 |
| UnusedFormalParameter | Avoid unused method parameters such as 'model'. | 3 | 1002 |
| UnusedFormalParameter | Avoid unused method parameters such as 'model'. | 3 | 1017 |
org/apache/maven/plugins/enforcer/utils/ArtifactMatcher.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| CollapsibleIfStatements | These nested if statements could be combined | 3 | 116–122 |
org/apache/maven/plugins/enforcer/utils/DependencyVersionMap.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnusedFormalParameter | Avoid unused constructor parameters such as 'log'. | 3 | 43 |
org/apache/maven/plugins/enforcer/utils/EnforcerRuleUtils.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnusedFormalParameter | Avoid unused constructor parameters such as 'theFactory'. | 3 | 70 |
org/apache/maven/plugins/enforcer/utils/NormalizeLineSeparatorReader.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| CollapsibleIfStatements | These nested if statements could be combined | 3 | 72–75 |
| CollapsibleIfStatements | These nested if statements could be combined | 3 | 79–82 |


