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 | 1130–1134 |
org/apache/maven/model/io/DefaultModelReader.java
Rule | Violation | Line |
---|---|---|
UnusedLocalVariable | Avoid unused local variables such as 'in'. | 92 |
UnusedPrivateMethod | Avoid unused private methods such as 'getRootDirectory(Map<String, ?>)'. | 107 |
UnusedFormalParameter | Avoid unused method parameters such as 'pomFile'. | 112 |
UnusedFormalParameter | Avoid unused method parameters such as 'pomFile'. | 136 |
org/apache/maven/model/validation/DefaultModelValidator.java
Rule | Violation | Line |
---|---|---|
UnusedFormalParameter | Avoid unused method parameters such as 'request'. | 976 |
UnusedFormalParameter | Avoid unused method parameters such as 'request'. | 1069 |
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 | 153 |
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 | 1191 |
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 | 136 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'org.apache.maven.api.model': 'Model' is already in scope because it is imported in this file | 162 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'org.apache.maven.api.model': 'Model' is already in scope because it is imported in this file | 183 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'org.apache.maven.api.model': 'Model' is already in scope because it is imported in this file | 191 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'org.apache.maven.api.model': 'Model' is already in scope because it is imported in this file | 202 |
org/apache/maven/model/inheritance/DefaultInheritanceAssembler.java
Rule | Violation | Line |
---|---|---|
UselessParentheses | Useless parentheses. | 120 |
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 | 153 |
org/apache/maven/model/building/DefaultModelBuilder.java
Rule | Violation | Priority | Line |
---|---|---|---|
CollapsibleIfStatements | This if statement could be combined with its parent | 3 | 1130–1134 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'org.apache.maven.api.model': 'InputSource' is already in scope because it is imported in this file | 4 | 1191 |
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 | 136 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'org.apache.maven.api.model': 'Model' is already in scope because it is imported in this file | 4 | 162 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'org.apache.maven.api.model': 'Model' is already in scope because it is imported in this file | 4 | 183 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'org.apache.maven.api.model': 'Model' is already in scope because it is imported in this file | 4 | 191 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'org.apache.maven.api.model': 'Model' is already in scope because it is imported in this file | 4 | 202 |
org/apache/maven/model/inheritance/DefaultInheritanceAssembler.java
Rule | Violation | Priority | Line |
---|---|---|---|
UselessParentheses | Useless parentheses. | 4 | 120 |
org/apache/maven/model/io/DefaultModelReader.java
Rule | Violation | Priority | Line |
---|---|---|---|
UnusedLocalVariable | Avoid unused local variables such as 'in'. | 3 | 92 |
UnusedPrivateMethod | Avoid unused private methods such as 'getRootDirectory(Map<String, ?>)'. | 3 | 107 |
UnusedFormalParameter | Avoid unused method parameters such as 'pomFile'. | 3 | 112 |
UnusedFormalParameter | Avoid unused method parameters such as 'pomFile'. | 3 | 136 |
org/apache/maven/model/validation/DefaultModelValidator.java
Rule | Violation | Priority | Line |
---|---|---|---|
UnusedFormalParameter | Avoid unused method parameters such as 'request'. | 3 | 976 |
UnusedFormalParameter | Avoid unused method parameters such as 'request'. | 3 | 1069 |