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 | 194–196 |
CollapsibleIfStatements | This if statement could be combined with its parent | 208–213 |
CollapsibleIfStatements | This if statement could be combined with its parent | 329–331 |
org/apache/maven/enforcer/rules/RequireActiveProfile.java
Rule | Violation | Line |
---|---|---|
CollapsibleIfStatements | This if statement could be combined with its parent | 84–86 |
org/apache/maven/enforcer/rules/RequireNoRepositories.java
Rule | Violation | Line |
---|---|---|
CollapsibleIfStatements | This if statement could be combined with its parent | 236–244 |
org/apache/maven/enforcer/rules/checksum/NormalizeLineSeparatorReader.java
Rule | Violation | Line |
---|---|---|
CollapsibleIfStatements | This if statement could be combined with its parent | 64–66 |
CollapsibleIfStatements | This if statement could be combined with its parent | 69–71 |
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 | 130–133 |
Priority 4
org/apache/maven/enforcer/rules/ExternalRules.java
Rule | Violation | Line |
---|---|---|
UselessParentheses | Useless parentheses. | 203–204 |
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 | 203–204 |
org/apache/maven/enforcer/rules/ReactorModuleConvergence.java
Rule | Violation | Priority | Line |
---|---|---|---|
EmptyControlStatement | Empty else statement | 3 | 194–196 |
CollapsibleIfStatements | This if statement could be combined with its parent | 3 | 208–213 |
CollapsibleIfStatements | This if statement could be combined with its parent | 3 | 329–331 |
org/apache/maven/enforcer/rules/RequireActiveProfile.java
Rule | Violation | Priority | Line |
---|---|---|---|
CollapsibleIfStatements | This if statement could be combined with its parent | 3 | 84–86 |
org/apache/maven/enforcer/rules/RequireNoRepositories.java
Rule | Violation | Priority | Line |
---|---|---|---|
CollapsibleIfStatements | This if statement could be combined with its parent | 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 | This if statement could be combined with its parent | 3 | 64–66 |
CollapsibleIfStatements | This if statement could be combined with its parent | 3 | 69–71 |
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 | 130–133 |