PMD Results

The following document contains the results of PMD 7.0.0.

Violations By Priority

Priority 3

org/apache/maven/internal/impl/DefaultModelXmlFactory.java
Rule Violation Line
UnusedLocalVariable Avoid unused local variables such as 'os'. 107
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 647649
UnusedFormalParameter Avoid unused method parameters such as 'request'. 1519
org/apache/maven/internal/impl/model/DefaultModelValidator.java
Rule Violation Line
UnusedFormalParameter Avoid unused method parameters such as 'request'. 989
UnusedFormalParameter Avoid unused method parameters such as 'request'. 1078
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 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. 117
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 451
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.apache.maven.api.model': 'Dependency' is already in scope because it is imported in this file 1327
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.apache.maven.api.model': 'Dependency' is already in scope because it is imported in this file 1328
org/apache/maven/internal/impl/resolver/DefaultModelRepositoryHolder.java
Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.apache.maven.api': 'RemoteRepository' is already in scope because it is imported in this file 104
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/DefaultModelXmlFactory.java

Rule Violation Priority Line
UnusedLocalVariable Avoid unused local variables such as 'os'. 3 107

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/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 117

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
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.apache.maven.api.model': 'Profile' is already in scope because it is imported in this file 4 451
CollapsibleIfStatements This if statement could be combined with its parent 3 647649
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.apache.maven.api.model': 'Dependency' is already in scope because it is imported in this file 4 1327
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.apache.maven.api.model': 'Dependency' is already in scope because it is imported in this file 4 1328
UnusedFormalParameter Avoid unused method parameters such as 'request'. 3 1519

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

Rule Violation Priority Line
UnusedFormalParameter Avoid unused method parameters such as 'request'. 3 989
UnusedFormalParameter Avoid unused method parameters such as 'request'. 3 1078

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/DefaultModelRepositoryHolder.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.apache.maven.api': 'RemoteRepository' is already in scope because it is imported in this file 4 104

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