PMD Results
The following document contains the results of PMD 7.0.0.
Violations By Priority
Priority 3
org/apache/maven/model/building/DefaultModelBuilder.java
Rule | Violation | Line |
---|---|---|
CollapsibleIfStatements | This if statement could be combined with its parent | 1127–1131 |
org/apache/maven/model/io/DefaultModelReader.java
Rule | Violation | Line |
---|---|---|
UnusedLocalVariable | Avoid unused local variables such as 'in'. | 89 |
UnusedPrivateMethod | Avoid unused private methods such as 'getRootDirectory(Map<String, ?>)'. | 104 |
UnusedFormalParameter | Avoid unused method parameters such as 'pomFile'. | 109 |
UnusedFormalParameter | Avoid unused method parameters such as 'pomFile'. | 133 |
org/apache/maven/model/validation/DefaultModelValidator.java
Rule | Violation | Line |
---|---|---|
UnusedFormalParameter | Avoid unused method parameters such as 'request'. | 974 |
UnusedFormalParameter | Avoid unused method parameters such as 'request'. | 1067 |
Priority 4
org/apache/maven/model/building/BuildModelSourceTransformer.java
Rule | Violation | Line |
---|---|---|
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'org.apache.maven.model': 'Model' is already in scope because it is imported in this file | 151 |
org/apache/maven/model/building/DefaultModelBuilder.java
Rule | Violation | Line |
---|---|---|
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'org.apache.maven.api.model': 'InputSource' is already in scope because it is imported in this file | 1188 |
org/apache/maven/model/building/DefaultModelProcessor.java
Rule | Violation | Line |
---|---|---|
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'org.apache.maven.api.model': 'Model' is already in scope because it is imported in this file | 133 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'org.apache.maven.api.model': 'Model' is already in scope because it is imported in this file | 159 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'org.apache.maven.api.model': 'Model' is already in scope because it is imported in this file | 180 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'org.apache.maven.api.model': 'Model' is already in scope because it is imported in this file | 188 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'org.apache.maven.api.model': 'Model' is already in scope because it is imported in this file | 199 |
org/apache/maven/model/inheritance/DefaultInheritanceAssembler.java
Rule | Violation | Line |
---|---|---|
UselessParentheses | Useless parentheses. | 118 |
Files
org/apache/maven/model/building/BuildModelSourceTransformer.java
Rule | Violation | Priority | Line |
---|---|---|---|
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'org.apache.maven.model': 'Model' is already in scope because it is imported in this file | 4 | 151 |
org/apache/maven/model/building/DefaultModelBuilder.java
Rule | Violation | Priority | Line |
---|---|---|---|
CollapsibleIfStatements | This if statement could be combined with its parent | 3 | 1127–1131 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'org.apache.maven.api.model': 'InputSource' is already in scope because it is imported in this file | 4 | 1188 |
org/apache/maven/model/building/DefaultModelProcessor.java
Rule | Violation | Priority | Line |
---|---|---|---|
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'org.apache.maven.api.model': 'Model' is already in scope because it is imported in this file | 4 | 133 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'org.apache.maven.api.model': 'Model' is already in scope because it is imported in this file | 4 | 159 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'org.apache.maven.api.model': 'Model' is already in scope because it is imported in this file | 4 | 180 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'org.apache.maven.api.model': 'Model' is already in scope because it is imported in this file | 4 | 188 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'org.apache.maven.api.model': 'Model' is already in scope because it is imported in this file | 4 | 199 |
org/apache/maven/model/inheritance/DefaultInheritanceAssembler.java
Rule | Violation | Priority | Line |
---|---|---|---|
UselessParentheses | Useless parentheses. | 4 | 118 |
org/apache/maven/model/io/DefaultModelReader.java
Rule | Violation | Priority | Line |
---|---|---|---|
UnusedLocalVariable | Avoid unused local variables such as 'in'. | 3 | 89 |
UnusedPrivateMethod | Avoid unused private methods such as 'getRootDirectory(Map<String, ?>)'. | 3 | 104 |
UnusedFormalParameter | Avoid unused method parameters such as 'pomFile'. | 3 | 109 |
UnusedFormalParameter | Avoid unused method parameters such as 'pomFile'. | 3 | 133 |
org/apache/maven/model/validation/DefaultModelValidator.java
Rule | Violation | Priority | Line |
---|---|---|---|
UnusedFormalParameter | Avoid unused method parameters such as 'request'. | 3 | 974 |
UnusedFormalParameter | Avoid unused method parameters such as 'request'. | 3 | 1067 |