PMD Results
The following document contains the results of PMD 7.0.0.
Violations By Priority
Priority 3
org/apache/maven/internal/impl/DefaultSettingsBuilder.java
Rule | Violation | Line |
---|---|---|
UnusedFormalParameter | Avoid unused method parameters such as 'problems'. | 227 |
org/apache/maven/internal/impl/DefaultToolchainsBuilder.java
Rule | Violation | Line |
---|---|---|
UnusedFormalParameter | Avoid unused method parameters such as 'problems'. | 167 |
org/apache/maven/internal/impl/model/DefaultInterpolator.java
Rule | Violation | Line |
---|---|---|
CollapsibleIfStatements | This if statement could be combined with its parent | 293–300 |
CollapsibleIfStatements | This if statement could be combined with its parent | 294–299 |
org/apache/maven/internal/impl/model/DefaultLifecycleBindingsInjector.java
Rule | Violation | Line |
---|---|---|
UnusedPrivateMethod | Avoid unused private methods such as 'getExecutionId(Plugin, String)'. | 111 |
org/apache/maven/internal/impl/model/DefaultModelBuilder.java
Rule | Violation | Line |
---|---|---|
CollapsibleIfStatements | This if statement could be combined with its parent | 1029–1034 |
org/apache/maven/internal/impl/model/DefaultModelInterpolator.java
Rule | Violation | Line |
---|---|---|
EmptyControlStatement | Empty if statement | 138–140 |
org/apache/maven/internal/impl/model/DefaultModelValidator.java
Rule | Violation | Line |
---|---|---|
UnusedFormalParameter | Avoid unused method parameters such as 'request'. | 710 |
UnusedFormalParameter | Avoid unused method parameters such as 'request'. | 996 |
UnusedFormalParameter | Avoid unused method parameters such as 'request'. | 1106 |
UnusedFormalParameter | Avoid unused method parameters such as 'request'. | 1196 |
UnusedFormalParameter | Avoid unused method parameters such as 'request'. | 1379 |
UnusedFormalParameter | Avoid unused method parameters such as 'request'. | 1439 |
UnusedFormalParameter | Avoid unused method parameters such as 'request'. | 1484 |
UnusedFormalParameter | Avoid unused method parameters such as 'request'. | 2069 |
org/apache/maven/internal/impl/model/MavenModelMerger.java
Rule | Violation | Line |
---|---|---|
UselessOverridingMethod | Overriding method merely calls super | 72 |
CollapsibleIfStatements | This if statement could be combined with its parent | 88–91 |
org/apache/maven/internal/impl/resolver/LocalSnapshotMetadataGenerator.java
Rule | Violation | Line |
---|---|---|
UnusedFormalParameter | Avoid unused constructor parameters such as 'request'. | 45 |
org/apache/maven/internal/impl/resolver/scopes/Maven3ScopeManagerConfiguration.java
Rule | Violation | Line |
---|---|---|
TooManyStaticImports | Too many static imports may lead to messy code | 19–169 |
org/apache/maven/internal/impl/resolver/scopes/Maven4ScopeManagerConfiguration.java
Rule | Violation | Line |
---|---|---|
TooManyStaticImports | Too many static imports may lead to messy code | 19–197 |
Priority 4
org/apache/maven/internal/impl/AbstractNode.java
Rule | Violation | Line |
---|---|---|
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'org.eclipse.aether.graph': 'DependencyNode' is already in scope because it is imported in this file | 34 |
org/apache/maven/internal/impl/DefaultNode.java
Rule | Violation | Line |
---|---|---|
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'org.eclipse.aether.graph': 'DependencyNode' is already in scope because it is imported in this file | 38 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'org.eclipse.aether.graph': 'DependencyNode' is already in scope because it is imported in this file | 42 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'org.eclipse.aether.graph': 'DependencyNode' is already in scope because it is imported in this file | 87 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'org.eclipse.aether.graph': 'DependencyNode' is already in scope because it is imported in this file | 91 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'org.eclipse.aether.graph': 'DependencyNode' is already in scope because it is imported in this file | 92 |
UselessParentheses | Useless parentheses. | 94 |
org/apache/maven/internal/impl/DefaultRepositoryFactory.java
Rule | Violation | Line |
---|---|---|
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'org.eclipse.aether.repository': 'RepositoryPolicy' is already in scope because it is imported in this file | 85 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'org.eclipse.aether.repository': 'RepositoryPolicy' is already in scope because it is imported in this file | 99 |
org/apache/maven/internal/impl/DefaultTransportProvider.java
Rule | Violation | Line |
---|---|---|
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'org.eclipse.aether.spi.connector.transport': 'TransporterProvider' is already in scope because it is imported in this file | 40 |
org/apache/maven/internal/impl/InternalSession.java
Rule | Violation | Line |
---|---|---|
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'org.eclipse.aether': 'RepositorySystemSession' is already in scope because it is imported in this file | 44 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'org.eclipse.aether': 'RepositorySystemSession' is already in scope because it is imported in this file | 48 |
org/apache/maven/internal/impl/PropertiesAsMap.java
Rule | Violation | Line |
---|---|---|
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'PropertiesAsMap': 'matches' is already in scope | 53 |
org/apache/maven/internal/impl/SettingsUtilsV4.java
Rule | Violation | Line |
---|---|---|
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'org.apache.maven.api.model': 'ActivationFile' is already in scope because it is imported in this file | 116 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'org.apache.maven.api.model': 'InputLocation' is already in scope because it is imported in this file | 314 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'org.apache.maven.api.model': 'InputLocation' is already in scope because it is imported in this file | 320 |
org/apache/maven/internal/impl/model/DefaultInheritanceAssembler.java
Rule | Violation | Line |
---|---|---|
UselessParentheses | Useless parentheses. | 128 |
org/apache/maven/internal/impl/model/DefaultModelBuilder.java
Rule | Violation | Line |
---|---|---|
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'org.apache.maven.api.model': 'Profile' is already in scope because it is imported in this file | 1740 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'org.apache.maven.api.model': 'Dependency' is already in scope because it is imported in this file | 1915 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'org.apache.maven.api.model': 'Dependency' is already in scope because it is imported in this file | 1916 |
org/apache/maven/internal/impl/model/DefaultModelValidator.java
Rule | Violation | Line |
---|---|---|
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_4_0' is already in scope because it is inherited by an enclosing type | 335 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MINIMAL' is already in scope because it is inherited by an enclosing type | 349 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_2_0' is already in scope because it is inherited by an enclosing type | 364 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_3_0' is already in scope because it is inherited by an enclosing type | 433 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_3_1' is already in scope because it is inherited by an enclosing type | 711 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_3_0' is already in scope because it is inherited by an enclosing type | 840 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_2_0' is already in scope because it is inherited by an enclosing type | 849 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_3_1' is already in scope because it is inherited by an enclosing type | 850 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_3_0' is already in scope because it is inherited by an enclosing type | 997 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_3_1' is already in scope because it is inherited by an enclosing type | 998 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_3_1' is already in scope because it is inherited by an enclosing type | 1029 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_3_0' is already in scope because it is inherited by an enclosing type | 1139 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_2_0' is already in scope because it is inherited by an enclosing type | 1146 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_3_0' is already in scope because it is inherited by an enclosing type | 1216 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_2_0' is already in scope because it is inherited by an enclosing type | 1318 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_3_0' is already in scope because it is inherited by an enclosing type | 1320 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_3_0' is already in scope because it is inherited by an enclosing type | 1417 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_3_1' is already in scope because it is inherited by an enclosing type | 1441 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_3_0' is already in scope because it is inherited by an enclosing type | 1485 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_3_0' is already in scope because it is inherited by an enclosing type | 2082 |
org/apache/maven/internal/impl/resolver/scopes/Maven3ScopeManagerConfiguration.java
Rule | Violation | Line |
---|---|---|
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'Maven3ScopeManagerConfiguration': 'INSTANCE' is already in scope because it is declared in an enclosing type | 167 |
org/apache/maven/internal/impl/resolver/scopes/Maven4ScopeManagerConfiguration.java
Rule | Violation | Line |
---|---|---|
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'Maven4ScopeManagerConfiguration': 'INSTANCE' is already in scope because it is declared in an enclosing type | 195 |
Files
org/apache/maven/internal/impl/AbstractNode.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 | 34 |
org/apache/maven/internal/impl/DefaultNode.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 | 38 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'org.eclipse.aether.graph': 'DependencyNode' is already in scope because it is imported in this file | 4 | 42 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'org.eclipse.aether.graph': 'DependencyNode' is already in scope because it is imported in this file | 4 | 87 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'org.eclipse.aether.graph': 'DependencyNode' is already in scope because it is imported in this file | 4 | 91 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'org.eclipse.aether.graph': 'DependencyNode' is already in scope because it is imported in this file | 4 | 92 |
UselessParentheses | Useless parentheses. | 4 | 94 |
org/apache/maven/internal/impl/DefaultRepositoryFactory.java
Rule | Violation | Priority | Line |
---|---|---|---|
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'org.eclipse.aether.repository': 'RepositoryPolicy' is already in scope because it is imported in this file | 4 | 85 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'org.eclipse.aether.repository': 'RepositoryPolicy' is already in scope because it is imported in this file | 4 | 99 |
org/apache/maven/internal/impl/DefaultSettingsBuilder.java
Rule | Violation | Priority | Line |
---|---|---|---|
UnusedFormalParameter | Avoid unused method parameters such as 'problems'. | 3 | 227 |
org/apache/maven/internal/impl/DefaultToolchainsBuilder.java
Rule | Violation | Priority | Line |
---|---|---|---|
UnusedFormalParameter | Avoid unused method parameters such as 'problems'. | 3 | 167 |
org/apache/maven/internal/impl/DefaultTransportProvider.java
Rule | Violation | Priority | Line |
---|---|---|---|
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'org.eclipse.aether.spi.connector.transport': 'TransporterProvider' is already in scope because it is imported in this file | 4 | 40 |
org/apache/maven/internal/impl/InternalSession.java
Rule | Violation | Priority | Line |
---|---|---|---|
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'org.eclipse.aether': 'RepositorySystemSession' is already in scope because it is imported in this file | 4 | 44 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'org.eclipse.aether': 'RepositorySystemSession' is already in scope because it is imported in this file | 4 | 48 |
org/apache/maven/internal/impl/PropertiesAsMap.java
Rule | Violation | Priority | Line |
---|---|---|---|
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'PropertiesAsMap': 'matches' is already in scope | 4 | 53 |
org/apache/maven/internal/impl/SettingsUtilsV4.java
Rule | Violation | Priority | Line |
---|---|---|---|
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'org.apache.maven.api.model': 'ActivationFile' is already in scope because it is imported in this file | 4 | 116 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'org.apache.maven.api.model': 'InputLocation' is already in scope because it is imported in this file | 4 | 314 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'org.apache.maven.api.model': 'InputLocation' is already in scope because it is imported in this file | 4 | 320 |
org/apache/maven/internal/impl/model/DefaultInheritanceAssembler.java
Rule | Violation | Priority | Line |
---|---|---|---|
UselessParentheses | Useless parentheses. | 4 | 128 |
org/apache/maven/internal/impl/model/DefaultInterpolator.java
Rule | Violation | Priority | Line |
---|---|---|---|
CollapsibleIfStatements | This if statement could be combined with its parent | 3 | 293–300 |
CollapsibleIfStatements | This if statement could be combined with its parent | 3 | 294–299 |
org/apache/maven/internal/impl/model/DefaultLifecycleBindingsInjector.java
Rule | Violation | Priority | Line |
---|---|---|---|
UnusedPrivateMethod | Avoid unused private methods such as 'getExecutionId(Plugin, String)'. | 3 | 111 |
org/apache/maven/internal/impl/model/DefaultModelBuilder.java
Rule | Violation | Priority | Line |
---|---|---|---|
CollapsibleIfStatements | This if statement could be combined with its parent | 3 | 1029–1034 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'org.apache.maven.api.model': 'Profile' is already in scope because it is imported in this file | 4 | 1740 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'org.apache.maven.api.model': 'Dependency' is already in scope because it is imported in this file | 4 | 1915 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'org.apache.maven.api.model': 'Dependency' is already in scope because it is imported in this file | 4 | 1916 |
org/apache/maven/internal/impl/model/DefaultModelInterpolator.java
Rule | Violation | Priority | Line |
---|---|---|---|
EmptyControlStatement | Empty if statement | 3 | 138–140 |
org/apache/maven/internal/impl/model/DefaultModelValidator.java
Rule | Violation | Priority | Line |
---|---|---|---|
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_4_0' is already in scope because it is inherited by an enclosing type | 4 | 335 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MINIMAL' is already in scope because it is inherited by an enclosing type | 4 | 349 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_2_0' is already in scope because it is inherited by an enclosing type | 4 | 364 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_3_0' is already in scope because it is inherited by an enclosing type | 4 | 433 |
UnusedFormalParameter | Avoid unused method parameters such as 'request'. | 3 | 710 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_3_1' is already in scope because it is inherited by an enclosing type | 4 | 711 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_3_0' is already in scope because it is inherited by an enclosing type | 4 | 840 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_2_0' is already in scope because it is inherited by an enclosing type | 4 | 849 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_3_1' is already in scope because it is inherited by an enclosing type | 4 | 850 |
UnusedFormalParameter | Avoid unused method parameters such as 'request'. | 3 | 996 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_3_0' is already in scope because it is inherited by an enclosing type | 4 | 997 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_3_1' is already in scope because it is inherited by an enclosing type | 4 | 998 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_3_1' is already in scope because it is inherited by an enclosing type | 4 | 1029 |
UnusedFormalParameter | Avoid unused method parameters such as 'request'. | 3 | 1106 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_3_0' is already in scope because it is inherited by an enclosing type | 4 | 1139 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_2_0' is already in scope because it is inherited by an enclosing type | 4 | 1146 |
UnusedFormalParameter | Avoid unused method parameters such as 'request'. | 3 | 1196 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_3_0' is already in scope because it is inherited by an enclosing type | 4 | 1216 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_2_0' is already in scope because it is inherited by an enclosing type | 4 | 1318 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_3_0' is already in scope because it is inherited by an enclosing type | 4 | 1320 |
UnusedFormalParameter | Avoid unused method parameters such as 'request'. | 3 | 1379 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_3_0' is already in scope because it is inherited by an enclosing type | 4 | 1417 |
UnusedFormalParameter | Avoid unused method parameters such as 'request'. | 3 | 1439 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_3_1' is already in scope because it is inherited by an enclosing type | 4 | 1441 |
UnusedFormalParameter | Avoid unused method parameters such as 'request'. | 3 | 1484 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_3_0' is already in scope because it is inherited by an enclosing type | 4 | 1485 |
UnusedFormalParameter | Avoid unused method parameters such as 'request'. | 3 | 2069 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_3_0' is already in scope because it is inherited by an enclosing type | 4 | 2082 |
org/apache/maven/internal/impl/model/MavenModelMerger.java
Rule | Violation | Priority | Line |
---|---|---|---|
UselessOverridingMethod | Overriding method merely calls super | 3 | 72 |
CollapsibleIfStatements | This if statement could be combined with its parent | 3 | 88–91 |
org/apache/maven/internal/impl/resolver/LocalSnapshotMetadataGenerator.java
Rule | Violation | Priority | Line |
---|---|---|---|
UnusedFormalParameter | Avoid unused constructor parameters such as 'request'. | 3 | 45 |
org/apache/maven/internal/impl/resolver/scopes/Maven3ScopeManagerConfiguration.java
Rule | Violation | Priority | Line |
---|---|---|---|
TooManyStaticImports | Too many static imports may lead to messy code | 3 | 19–169 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'Maven3ScopeManagerConfiguration': 'INSTANCE' is already in scope because it is declared in an enclosing type | 4 | 167 |
org/apache/maven/internal/impl/resolver/scopes/Maven4ScopeManagerConfiguration.java
Rule | Violation | Priority | Line |
---|---|---|---|
TooManyStaticImports | Too many static imports may lead to messy code | 3 | 19–197 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'Maven4ScopeManagerConfiguration': 'INSTANCE' is already in scope because it is declared in an enclosing type | 4 | 195 |