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'. 241
UnusedFormalParameter Avoid unused method parameters such as 'request'. 268
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 10391044
org/apache/maven/internal/impl/model/DefaultModelInterpolator.java
Rule Violation Line
EmptyControlStatement Empty if statement 138140
org/apache/maven/internal/impl/model/DefaultModelValidator.java
Rule Violation Line
UnusedFormalParameter Avoid unused method parameters such as 'request'. 723
UnusedFormalParameter Avoid unused method parameters such as 'request'. 1009
UnusedFormalParameter Avoid unused method parameters such as 'request'. 1119
UnusedFormalParameter Avoid unused method parameters such as 'request'. 1209
UnusedFormalParameter Avoid unused method parameters such as 'request'. 1392
UnusedFormalParameter Avoid unused method parameters such as 'request'. 1452
UnusedFormalParameter Avoid unused method parameters such as 'request'. 1497
UnusedFormalParameter Avoid unused method parameters such as 'request'. 2089
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 8891
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 19169
org/apache/maven/internal/impl/resolver/scopes/Maven4ScopeManagerConfiguration.java
Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 19197

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 1757
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.apache.maven.api.model': 'Dependency' is already in scope because it is imported in this file 1934
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.apache.maven.api.model': 'Dependency' is already in scope because it is imported in this file 1935
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 346
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MINIMAL' is already in scope because it is inherited by an enclosing type 360
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_2_0' is already in scope because it is inherited by an enclosing type 375
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_3_0' is already in scope because it is inherited by an enclosing type 444
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_3_1' is already in scope because it is inherited by an enclosing type 724
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_3_0' is already in scope because it is inherited by an enclosing type 853
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_2_0' is already in scope because it is inherited by an enclosing type 862
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_3_1' is already in scope because it is inherited by an enclosing type 863
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_3_0' is already in scope because it is inherited by an enclosing type 1010
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_3_1' is already in scope because it is inherited by an enclosing type 1011
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_3_1' is already in scope because it is inherited by an enclosing type 1042
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_3_0' is already in scope because it is inherited by an enclosing type 1152
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_2_0' is already in scope because it is inherited by an enclosing type 1159
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_3_0' is already in scope because it is inherited by an enclosing type 1229
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_2_0' is already in scope because it is inherited by an enclosing type 1331
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_3_0' is already in scope because it is inherited by an enclosing type 1333
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_3_0' is already in scope because it is inherited by an enclosing type 1430
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_3_1' is already in scope because it is inherited by an enclosing type 1454
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_3_0' is already in scope because it is inherited by an enclosing type 1498
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_3_0' is already in scope because it is inherited by an enclosing type 2102
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 241
UnusedFormalParameter Avoid unused method parameters such as 'request'. 3 268

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 10391044
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.apache.maven.api.model': 'Profile' is already in scope because it is imported in this file 4 1757
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.apache.maven.api.model': 'Dependency' is already in scope because it is imported in this file 4 1934
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.apache.maven.api.model': 'Dependency' is already in scope because it is imported in this file 4 1935

org/apache/maven/internal/impl/model/DefaultModelInterpolator.java

Rule Violation Priority Line
EmptyControlStatement Empty if statement 3 138140

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 346
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MINIMAL' is already in scope because it is inherited by an enclosing type 4 360
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_2_0' is already in scope because it is inherited by an enclosing type 4 375
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_3_0' is already in scope because it is inherited by an enclosing type 4 444
UnusedFormalParameter Avoid unused method parameters such as 'request'. 3 723
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_3_1' is already in scope because it is inherited by an enclosing type 4 724
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_3_0' is already in scope because it is inherited by an enclosing type 4 853
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_2_0' is already in scope because it is inherited by an enclosing type 4 862
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_3_1' is already in scope because it is inherited by an enclosing type 4 863
UnusedFormalParameter Avoid unused method parameters such as 'request'. 3 1009
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_3_0' is already in scope because it is inherited by an enclosing type 4 1010
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_3_1' is already in scope because it is inherited by an enclosing type 4 1011
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_3_1' is already in scope because it is inherited by an enclosing type 4 1042
UnusedFormalParameter Avoid unused method parameters such as 'request'. 3 1119
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_3_0' is already in scope because it is inherited by an enclosing type 4 1152
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_2_0' is already in scope because it is inherited by an enclosing type 4 1159
UnusedFormalParameter Avoid unused method parameters such as 'request'. 3 1209
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_3_0' is already in scope because it is inherited by an enclosing type 4 1229
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_2_0' is already in scope because it is inherited by an enclosing type 4 1331
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_3_0' is already in scope because it is inherited by an enclosing type 4 1333
UnusedFormalParameter Avoid unused method parameters such as 'request'. 3 1392
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_3_0' is already in scope because it is inherited by an enclosing type 4 1430
UnusedFormalParameter Avoid unused method parameters such as 'request'. 3 1452
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_3_1' is already in scope because it is inherited by an enclosing type 4 1454
UnusedFormalParameter Avoid unused method parameters such as 'request'. 3 1497
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_3_0' is already in scope because it is inherited by an enclosing type 4 1498
UnusedFormalParameter Avoid unused method parameters such as 'request'. 3 2089
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ModelValidator': 'VALIDATION_LEVEL_MAVEN_3_0' is already in scope because it is inherited by an enclosing type 4 2102

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 8891

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 19169
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 19197
UnnecessaryFullyQualifiedName Unnecessary qualifier 'Maven4ScopeManagerConfiguration': 'INSTANCE' is already in scope because it is declared in an enclosing type 4 195