PMD Results

The following document contains the results of PMD 7.0.0.

Violations By Priority

Priority 3

org/apache/maven/cling/invoker/BaseParser.java
Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 19325
org/apache/maven/cling/logging/impl/UnsupportedSlf4jBindingConfiguration.java
Rule Violation Line
UnusedFormalParameter Avoid unused constructor parameters such as 'slf4jBinding'. 38
UnusedFormalParameter Avoid unused constructor parameters such as 'supported'. 38
org/apache/maven/cling/props/MavenProperties.java
Rule Violation Line
CollapsibleIfStatements This if statement could be combined with its parent 358360
CollapsibleIfStatements This if statement could be combined with its parent 371373
org/apache/maven/cling/transfer/ConsoleMavenTransferListener.java
Rule Violation Line
UnusedFormalParameter Avoid unused method parameters such as 'event'. 139
org/apache/maven/cling/transfer/FileSizeFormat.java
Rule Violation Line
UnnecessarySemicolon Unnecessary semicolon 73

Priority 4

org/apache/maven/cling/invoker/BaseParser.java
Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'Constants': 'MAVEN_HOME' is already in scope because it is imported in this file 153
UnnecessaryFullyQualifiedName Unnecessary qualifier 'Constants': 'MAVEN_HOME' is already in scope because it is imported in this file 155
org/apache/maven/cling/invoker/mvnenc/CommonsCliEncryptOptions.java
Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'Options': 'SOURCE_CLI' is already in scope because it is inherited by an enclosing type 44
org/apache/maven/cling/logging/Slf4jLoggerManager.java
Rule Violation Line
UselessParentheses Useless parentheses. 5355
org/apache/maven/cling/props/MavenPropertiesLoader.java
Rule Violation Line
UselessParentheses Useless parentheses. 124
UselessParentheses Useless parentheses. 155
org/apache/maven/cling/transfer/AbstractMavenTransferListener.java
Rule Violation Line
UselessParentheses Useless parentheses. 69
org/apache/maven/cling/transfer/Slf4jMavenTransferListener.java
Rule Violation Line
UselessParentheses Useless parentheses. 71
org/apache/maven/cling/utils/CLIReportingUtils.java
Rule Violation Line
UselessParentheses Useless parentheses. 98
UselessParentheses Useless parentheses. 128
UselessParentheses Useless parentheses. 180
UselessParentheses Useless parentheses. 181
UselessParentheses Useless parentheses. 182

Files

org/apache/maven/cling/invoker/BaseParser.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 19325
UnnecessaryFullyQualifiedName Unnecessary qualifier 'Constants': 'MAVEN_HOME' is already in scope because it is imported in this file 4 153
UnnecessaryFullyQualifiedName Unnecessary qualifier 'Constants': 'MAVEN_HOME' is already in scope because it is imported in this file 4 155

org/apache/maven/cling/invoker/mvnenc/CommonsCliEncryptOptions.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'Options': 'SOURCE_CLI' is already in scope because it is inherited by an enclosing type 4 44

org/apache/maven/cling/logging/Slf4jLoggerManager.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 5355

org/apache/maven/cling/logging/impl/UnsupportedSlf4jBindingConfiguration.java

Rule Violation Priority Line
UnusedFormalParameter Avoid unused constructor parameters such as 'slf4jBinding'. 3 38
UnusedFormalParameter Avoid unused constructor parameters such as 'supported'. 3 38

org/apache/maven/cling/props/MavenProperties.java

Rule Violation Priority Line
CollapsibleIfStatements This if statement could be combined with its parent 3 358360
CollapsibleIfStatements This if statement could be combined with its parent 3 371373

org/apache/maven/cling/props/MavenPropertiesLoader.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 124
UselessParentheses Useless parentheses. 4 155

org/apache/maven/cling/transfer/AbstractMavenTransferListener.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 69

org/apache/maven/cling/transfer/ConsoleMavenTransferListener.java

Rule Violation Priority Line
UnusedFormalParameter Avoid unused method parameters such as 'event'. 3 139

org/apache/maven/cling/transfer/FileSizeFormat.java

Rule Violation Priority Line
UnnecessarySemicolon Unnecessary semicolon 3 73

org/apache/maven/cling/transfer/Slf4jMavenTransferListener.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 71

org/apache/maven/cling/utils/CLIReportingUtils.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 98
UselessParentheses Useless parentheses. 4 128
UselessParentheses Useless parentheses. 4 180
UselessParentheses Useless parentheses. 4 181
UselessParentheses Useless parentheses. 4 182