PMD Results

The following document contains the results of PMD 7.0.0.

Violations By Priority

Priority 3

org/apache/maven/ReactorReader.java
Rule Violation Line
CollapsibleIfStatements This if statement could be combined with its parent 419425
org/apache/maven/artifact/resolver/filter/ExclusionArtifactFilter.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'exclusions'. 37
org/apache/maven/bridge/MavenRepositorySystem.java
Rule Violation Line
AvoidUsingHardCodedIP Do not hard code the IP address ${variableName} 765
org/apache/maven/configuration/BasedirBeanConfigurationPathTranslator.java
Rule Violation Line
EmptyControlStatement Empty if statement 4553
org/apache/maven/execution/MavenSession.java
Rule Violation Line
UnusedFormalParameter Avoid unused constructor parameters such as 'eventDispatcher'. 370
org/apache/maven/internal/aether/DefaultRepositorySystemSessionFactory.java
Rule Violation Line
EmptyControlStatement Empty if statement 348373
org/apache/maven/internal/impl/DefaultLifecycleRegistry.java
Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 19484
org/apache/maven/internal/impl/DefaultPluginXmlFactory.java
Rule Violation Line
UnusedLocalVariable Avoid unused local variables such as 'os'. 96
org/apache/maven/internal/transformation/impl/DefaultConsumerPomArtifactTransformer.java
Rule Violation Line
UnusedPrivateMethod Avoid unused private methods such as 'doDeleteFiles()'. 125
org/apache/maven/lifecycle/DefaultLifecycles.java
Rule Violation Line
UnusedFormalParameter Avoid unused constructor parameters such as 'logger'. 70
org/apache/maven/lifecycle/LifecycleExecutionException.java
Rule Violation Line
UnusedFormalParameter Avoid unused constructor parameters such as 'execution'. 49
UnusedFormalParameter Avoid unused constructor parameters such as 'execution'. 54
org/apache/maven/lifecycle/internal/MojoExecutor.java
Rule Violation Line
UnusedLocalVariable Avoid unused local variables such as 'lock'. 309
org/apache/maven/lifecycle/internal/builder/BuilderCommon.java
Rule Violation Line
EmptyControlStatement Empty if statement 184194
org/apache/maven/lifecycle/internal/concurrent/BuildPlanExecutor.java
Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 19935
UnusedLocalVariable Avoid unused local variables such as 'phase'. 302
EmptyControlStatement Empty if statement 581591
org/apache/maven/plugin/CycleDetectedInPluginGraphException.java
Rule Violation Line
UnusedFormalParameter Avoid unused constructor parameters such as 'e'. 31
org/apache/maven/plugin/PluginConfigurationException.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'pluginDescriptor'. 29
UnusedPrivateField Avoid unused private fields such as 'originalMessage'. 31
org/apache/maven/plugin/PluginParameterExpressionEvaluator.java
Rule Violation Line
EmptyControlStatement Empty if statement 352360
org/apache/maven/plugin/PluginParameterExpressionEvaluatorV4.java
Rule Violation Line
CollapsibleIfStatements This if statement could be combined with its parent 182189
EmptyControlStatement Empty if statement 232243
org/apache/maven/project/MavenProject.java
Rule Violation Line
UnusedFormalParameter Avoid unused method parameters such as 'scope'. 338
CollapsibleIfStatements This if statement could be combined with its parent 13571359
CollapsibleIfStatements This if statement could be combined with its parent 13771379
CollapsibleIfStatements This if statement could be combined with its parent 15041509
CollapsibleIfStatements This if statement could be combined with its parent 15231525
org/apache/maven/toolchain/java/DefaultJavaToolChain.java
Rule Violation Line
UselessOverridingMethod Overriding method merely calls super 41
UselessOverridingMethod Overriding method merely calls super 46

Priority 4

org/apache/maven/ReactorReader.java
Rule Violation Line
UselessParentheses Useless parentheses. 310
org/apache/maven/bridge/MavenRepositorySystem.java
Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'MavenRepositorySystem': 'DEFAULT_REMOTE_REPO_URL' is already in scope because it is declared in an enclosing type 534
UnnecessaryFullyQualifiedName Unnecessary qualifier 'MavenRepositorySystem': 'DEFAULT_REMOTE_REPO_ID' is already in scope because it is declared in an enclosing type 535
UnnecessaryFullyQualifiedName Unnecessary qualifier 'MavenRepositorySystem': 'DEFAULT_LOCAL_REPO_ID' is already in scope because it is declared in an enclosing type 658
UselessParentheses Useless parentheses. 804
org/apache/maven/exception/DefaultExceptionHandler.java
Rule Violation Line
UselessParentheses Useless parentheses. 210
UselessParentheses Useless parentheses. 245
org/apache/maven/graph/DefaultGraphBuilder.java
Rule Violation Line
UselessParentheses Useless parentheses. 271
org/apache/maven/internal/impl/DefaultLifecycleRegistry.java
Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.apache.maven.api': 'Lifecycle' is already in scope because it is imported in this file 146
UnnecessaryFullyQualifiedName Unnecessary qualifier 'Lifecycle': 'CLEAN' is already in scope because it is inherited by an enclosing type 342
UnnecessaryFullyQualifiedName Unnecessary qualifier 'Lifecycle': 'DEFAULT' is already in scope because it is inherited by an enclosing type 363
UnnecessaryFullyQualifiedName Unnecessary qualifier 'Lifecycle': 'SITE' is already in scope because it is inherited by an enclosing type 466
org/apache/maven/internal/impl/DefaultToolchainManager.java
Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.apache.maven.toolchain': 'ToolchainPrivate' is already in scope because it is imported in this file 80
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.apache.maven.toolchain': 'ToolchainPrivate' is already in scope because it is imported in this file 81
org/apache/maven/lifecycle/internal/DefaultLifecycleExecutionPlanCalculator.java
Rule Violation Line
UselessParentheses Useless parentheses. 321
org/apache/maven/lifecycle/internal/DefaultLifecycleTaskSegmentCalculator.java
Rule Violation Line
UselessParentheses Useless parentheses. 7879
org/apache/maven/lifecycle/internal/concurrent/BuildPlanExecutor.java
Rule Violation Line
UselessParentheses Useless parentheses. 854
org/apache/maven/lifecycle/internal/concurrent/ConcurrentLifecycleStarter.java
Rule Violation Line
UselessParentheses Useless parentheses. 125126
org/apache/maven/logging/LoggingExecutionListener.java
Rule Violation Line
UselessParentheses Useless parentheses. 64
org/apache/maven/plugin/PluginParameterException.java
Rule Violation Line
UselessParentheses Useless parentheses. 125
org/apache/maven/plugin/PluginParameterExpressionEvaluator.java
Rule Violation Line
UselessParentheses Useless parentheses. 307
UselessParentheses Useless parentheses. 336337
org/apache/maven/plugin/PluginParameterExpressionEvaluatorV4.java
Rule Violation Line
UselessParentheses Useless parentheses. 216217
org/apache/maven/plugin/internal/DefaultLegacySupport.java
Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'DefaultLegacySupport': 'SESSION' is already in scope because it is declared in an enclosing type 44
UnnecessaryFullyQualifiedName Unnecessary qualifier 'DefaultLegacySupport': 'SESSION' is already in scope because it is declared in an enclosing type 50
UnnecessaryFullyQualifiedName Unnecessary qualifier 'DefaultLegacySupport': 'SESSION' is already in scope because it is declared in an enclosing type 52
UnnecessaryFullyQualifiedName Unnecessary qualifier 'DefaultLegacySupport': 'SESSION' is already in scope because it is declared in an enclosing type 57
org/apache/maven/plugin/prefix/internal/DefaultPluginPrefixResolver.java
Rule Violation Line
UselessParentheses Useless parentheses. 100
org/apache/maven/project/DefaultProjectBuilder.java
Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.eclipse.aether': 'RepositorySystem' is already in scope because it is imported in this file 106
org/apache/maven/project/MavenProject.java
Rule Violation Line
UselessParentheses Useless parentheses. 884
UselessParentheses Useless parentheses. 1095
UselessParentheses Useless parentheses. 1106
UselessParentheses Useless parentheses. 1116
UselessParentheses Useless parentheses. 1120
UselessParentheses Useless parentheses. 1124
org/apache/maven/project/ProjectModelResolver.java
Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.apache.maven.api.model': 'Parent' is already in scope because it is imported in this file 347
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.apache.maven.api.model': 'Dependency' is already in scope because it is imported in this file 357
org/apache/maven/project/ProjectSorter.java
Rule Violation Line
UselessParentheses Useless parentheses. 244
org/apache/maven/project/collector/DefaultProjectsSelector.java
Rule Violation Line
UselessParentheses Useless parentheses. 78

Files

org/apache/maven/ReactorReader.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 310
CollapsibleIfStatements This if statement could be combined with its parent 3 419425

org/apache/maven/artifact/resolver/filter/ExclusionArtifactFilter.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'exclusions'. 3 37

org/apache/maven/bridge/MavenRepositorySystem.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'MavenRepositorySystem': 'DEFAULT_REMOTE_REPO_URL' is already in scope because it is declared in an enclosing type 4 534
UnnecessaryFullyQualifiedName Unnecessary qualifier 'MavenRepositorySystem': 'DEFAULT_REMOTE_REPO_ID' is already in scope because it is declared in an enclosing type 4 535
UnnecessaryFullyQualifiedName Unnecessary qualifier 'MavenRepositorySystem': 'DEFAULT_LOCAL_REPO_ID' is already in scope because it is declared in an enclosing type 4 658
AvoidUsingHardCodedIP Do not hard code the IP address ${variableName} 3 765
UselessParentheses Useless parentheses. 4 804

org/apache/maven/configuration/BasedirBeanConfigurationPathTranslator.java

Rule Violation Priority Line
EmptyControlStatement Empty if statement 3 4553

org/apache/maven/exception/DefaultExceptionHandler.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 210
UselessParentheses Useless parentheses. 4 245

org/apache/maven/execution/MavenSession.java

Rule Violation Priority Line
UnusedFormalParameter Avoid unused constructor parameters such as 'eventDispatcher'. 3 370

org/apache/maven/graph/DefaultGraphBuilder.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 271

org/apache/maven/internal/aether/DefaultRepositorySystemSessionFactory.java

Rule Violation Priority Line
EmptyControlStatement Empty if statement 3 348373

org/apache/maven/internal/impl/DefaultLifecycleRegistry.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 19484
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.apache.maven.api': 'Lifecycle' is already in scope because it is imported in this file 4 146
UnnecessaryFullyQualifiedName Unnecessary qualifier 'Lifecycle': 'CLEAN' is already in scope because it is inherited by an enclosing type 4 342
UnnecessaryFullyQualifiedName Unnecessary qualifier 'Lifecycle': 'DEFAULT' is already in scope because it is inherited by an enclosing type 4 363
UnnecessaryFullyQualifiedName Unnecessary qualifier 'Lifecycle': 'SITE' is already in scope because it is inherited by an enclosing type 4 466

org/apache/maven/internal/impl/DefaultPluginXmlFactory.java

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

org/apache/maven/internal/impl/DefaultToolchainManager.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.apache.maven.toolchain': 'ToolchainPrivate' is already in scope because it is imported in this file 4 80
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.apache.maven.toolchain': 'ToolchainPrivate' is already in scope because it is imported in this file 4 81

org/apache/maven/internal/transformation/impl/DefaultConsumerPomArtifactTransformer.java

Rule Violation Priority Line
UnusedPrivateMethod Avoid unused private methods such as 'doDeleteFiles()'. 3 125

org/apache/maven/lifecycle/DefaultLifecycles.java

Rule Violation Priority Line
UnusedFormalParameter Avoid unused constructor parameters such as 'logger'. 3 70

org/apache/maven/lifecycle/LifecycleExecutionException.java

Rule Violation Priority Line
UnusedFormalParameter Avoid unused constructor parameters such as 'execution'. 3 49
UnusedFormalParameter Avoid unused constructor parameters such as 'execution'. 3 54

org/apache/maven/lifecycle/internal/DefaultLifecycleExecutionPlanCalculator.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 321

org/apache/maven/lifecycle/internal/DefaultLifecycleTaskSegmentCalculator.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 7879

org/apache/maven/lifecycle/internal/MojoExecutor.java

Rule Violation Priority Line
UnusedLocalVariable Avoid unused local variables such as 'lock'. 3 309

org/apache/maven/lifecycle/internal/builder/BuilderCommon.java

Rule Violation Priority Line
EmptyControlStatement Empty if statement 3 184194

org/apache/maven/lifecycle/internal/concurrent/BuildPlanExecutor.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 19935
UnusedLocalVariable Avoid unused local variables such as 'phase'. 3 302
EmptyControlStatement Empty if statement 3 581591
UselessParentheses Useless parentheses. 4 854

org/apache/maven/lifecycle/internal/concurrent/ConcurrentLifecycleStarter.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 125126

org/apache/maven/logging/LoggingExecutionListener.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 64

org/apache/maven/plugin/CycleDetectedInPluginGraphException.java

Rule Violation Priority Line
UnusedFormalParameter Avoid unused constructor parameters such as 'e'. 3 31

org/apache/maven/plugin/PluginConfigurationException.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'pluginDescriptor'. 3 29
UnusedPrivateField Avoid unused private fields such as 'originalMessage'. 3 31

org/apache/maven/plugin/PluginParameterException.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 125

org/apache/maven/plugin/PluginParameterExpressionEvaluator.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 307
UselessParentheses Useless parentheses. 4 336337
EmptyControlStatement Empty if statement 3 352360

org/apache/maven/plugin/PluginParameterExpressionEvaluatorV4.java

Rule Violation Priority Line
CollapsibleIfStatements This if statement could be combined with its parent 3 182189
UselessParentheses Useless parentheses. 4 216217
EmptyControlStatement Empty if statement 3 232243

org/apache/maven/plugin/internal/DefaultLegacySupport.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'DefaultLegacySupport': 'SESSION' is already in scope because it is declared in an enclosing type 4 44
UnnecessaryFullyQualifiedName Unnecessary qualifier 'DefaultLegacySupport': 'SESSION' is already in scope because it is declared in an enclosing type 4 50
UnnecessaryFullyQualifiedName Unnecessary qualifier 'DefaultLegacySupport': 'SESSION' is already in scope because it is declared in an enclosing type 4 52
UnnecessaryFullyQualifiedName Unnecessary qualifier 'DefaultLegacySupport': 'SESSION' is already in scope because it is declared in an enclosing type 4 57

org/apache/maven/plugin/prefix/internal/DefaultPluginPrefixResolver.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 100

org/apache/maven/project/DefaultProjectBuilder.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.eclipse.aether': 'RepositorySystem' is already in scope because it is imported in this file 4 106

org/apache/maven/project/MavenProject.java

Rule Violation Priority Line
UnusedFormalParameter Avoid unused method parameters such as 'scope'. 3 338
UselessParentheses Useless parentheses. 4 884
UselessParentheses Useless parentheses. 4 1095
UselessParentheses Useless parentheses. 4 1106
UselessParentheses Useless parentheses. 4 1116
UselessParentheses Useless parentheses. 4 1120
UselessParentheses Useless parentheses. 4 1124
CollapsibleIfStatements This if statement could be combined with its parent 3 13571359
CollapsibleIfStatements This if statement could be combined with its parent 3 13771379
CollapsibleIfStatements This if statement could be combined with its parent 3 15041509
CollapsibleIfStatements This if statement could be combined with its parent 3 15231525

org/apache/maven/project/ProjectModelResolver.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.apache.maven.api.model': 'Parent' is already in scope because it is imported in this file 4 347
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.apache.maven.api.model': 'Dependency' is already in scope because it is imported in this file 4 357

org/apache/maven/project/ProjectSorter.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 244

org/apache/maven/project/collector/DefaultProjectsSelector.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 78

org/apache/maven/toolchain/java/DefaultJavaToolChain.java

Rule Violation Priority Line
UselessOverridingMethod Overriding method merely calls super 3 41
UselessOverridingMethod Overriding method merely calls super 3 46