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'. | 245 |
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/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 | 1046–1051 |
org/apache/maven/internal/impl/model/DefaultModelInterpolator.java
Rule | Violation | Line |
---|---|---|
EmptyControlStatement | Empty if statement | 138–140 |
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'. | 47 |
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 | 318 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'org.apache.maven.api.model': 'InputLocation' is already in scope because it is imported in this file | 324 |
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 | 1770 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'org.apache.maven.api.model': 'Dependency' is already in scope because it is imported in this file | 1947 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'org.apache.maven.api.model': 'Dependency' is already in scope because it is imported in this file | 1948 |
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 | 344 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MINIMAL' is already in scope because it is inherited by an enclosing type | 358 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_2_0' is already in scope because it is inherited by an enclosing type | 373 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_3_0' is already in scope because it is inherited by an enclosing type | 442 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_3_1' is already in scope because it is inherited by an enclosing type | 693 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_3_0' is already in scope because it is inherited by an enclosing type | 821 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_2_0' is already in scope because it is inherited by an enclosing type | 830 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_3_1' is already in scope because it is inherited by an enclosing type | 831 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_3_0' is already in scope because it is inherited by an enclosing type | 960 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_3_1' is already in scope because it is inherited by an enclosing type | 961 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_3_1' is already in scope because it is inherited by an enclosing type | 992 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_3_0' is already in scope because it is inherited by an enclosing type | 1097 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_2_0' is already in scope because it is inherited by an enclosing type | 1104 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_3_0' is already in scope because it is inherited by an enclosing type | 1174 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_2_0' is already in scope because it is inherited by an enclosing type | 1266 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_3_0' is already in scope because it is inherited by an enclosing type | 1268 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_3_0' is already in scope because it is inherited by an enclosing type | 1364 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_3_1' is already in scope because it is inherited by an enclosing type | 1384 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_3_0' is already in scope because it is inherited by an enclosing type | 1424 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_3_0' is already in scope because it is inherited by an enclosing type | 2027 |
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 | 245 |
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 | 318 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'org.apache.maven.api.model': 'InputLocation' is already in scope because it is imported in this file | 4 | 324 |
org/apache/maven/internal/impl/model/DefaultInheritanceAssembler.java
Rule | Violation | Priority | Line |
---|---|---|---|
UselessParentheses | Useless parentheses. | 4 | 128 |
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 | 1046–1051 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'org.apache.maven.api.model': 'Profile' is already in scope because it is imported in this file | 4 | 1770 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'org.apache.maven.api.model': 'Dependency' is already in scope because it is imported in this file | 4 | 1947 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'org.apache.maven.api.model': 'Dependency' is already in scope because it is imported in this file | 4 | 1948 |
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 | 344 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MINIMAL' is already in scope because it is inherited by an enclosing type | 4 | 358 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_2_0' is already in scope because it is inherited by an enclosing type | 4 | 373 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_3_0' is already in scope because it is inherited by an enclosing type | 4 | 442 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_3_1' is already in scope because it is inherited by an enclosing type | 4 | 693 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_3_0' is already in scope because it is inherited by an enclosing type | 4 | 821 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_2_0' is already in scope because it is inherited by an enclosing type | 4 | 830 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_3_1' is already in scope because it is inherited by an enclosing type | 4 | 831 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_3_0' is already in scope because it is inherited by an enclosing type | 4 | 960 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_3_1' is already in scope because it is inherited by an enclosing type | 4 | 961 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_3_1' is already in scope because it is inherited by an enclosing type | 4 | 992 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_3_0' is already in scope because it is inherited by an enclosing type | 4 | 1097 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_2_0' is already in scope because it is inherited by an enclosing type | 4 | 1104 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_3_0' is already in scope because it is inherited by an enclosing type | 4 | 1174 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_2_0' is already in scope because it is inherited by an enclosing type | 4 | 1266 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_3_0' is already in scope because it is inherited by an enclosing type | 4 | 1268 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_3_0' is already in scope because it is inherited by an enclosing type | 4 | 1364 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_3_1' is already in scope because it is inherited by an enclosing type | 4 | 1384 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_3_0' is already in scope because it is inherited by an enclosing type | 4 | 1424 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_3_0' is already in scope because it is inherited by an enclosing type | 4 | 2027 |
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 | 47 |
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 |