PMD Results

The following document contains the results of PMD 6.55.0.

Violations By Priority

Priority 3

org/apache/maven/cli/MavenCli.java
Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 191675
UnusedPrivateMethod Avoid unused private methods such as 'enableOnAbsentOption(CommandLine,char,Consumer)'. 15291530
org/apache/maven/cli/jansi/MessageUtils.java
Rule Violation Line
SimplifiedTernary Ternary operators that can be simplified with || or && 124
org/apache/maven/cli/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/cli/transfer/AbstractMavenTransferListener.java
Rule Violation Line
UnnecessarySemicolon Unnecessary semicolon 94
org/apache/maven/cli/transfer/ConsoleMavenTransferListener.java
Rule Violation Line
UnusedFormalParameter Avoid unused method parameters such as 'event'. 135

Priority 4

org/apache/maven/cli/CLIReportingUtils.java
Rule Violation Line
UselessParentheses Useless parentheses. 87
UselessParentheses Useless parentheses. 103
UselessParentheses Useless parentheses. 106
UselessParentheses Useless parentheses. 117
UselessParentheses Useless parentheses. 117
org/apache/maven/cli/MavenCli.java
Rule Violation Line
UselessParentheses Useless parentheses. 593
UselessParentheses Useless parentheses. 1107
UselessParentheses Useless parentheses. 1107
UselessParentheses Useless parentheses. 1287
UselessParentheses Useless parentheses. 1287
org/apache/maven/cli/event/ExecutionEventLogger.java
Rule Violation Line
UselessParentheses Useless parentheses. 125
UselessParentheses Useless parentheses. 332
org/apache/maven/cli/logging/Slf4jLoggerManager.java
Rule Violation Line
UselessParentheses Useless parentheses. 5153
org/apache/maven/cli/transfer/AbstractMavenTransferListener.java
Rule Violation Line
UselessParentheses Useless parentheses. 225
org/apache/maven/cli/transfer/Slf4jMavenTransferListener.java
Rule Violation Line
UselessParentheses Useless parentheses. 74

Files

org/apache/maven/cli/CLIReportingUtils.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 87
UselessParentheses Useless parentheses. 4 103
UselessParentheses Useless parentheses. 4 106
UselessParentheses Useless parentheses. 4 117
UselessParentheses Useless parentheses. 4 117

org/apache/maven/cli/MavenCli.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 191675
UselessParentheses Useless parentheses. 4 593
UselessParentheses Useless parentheses. 4 1107
UselessParentheses Useless parentheses. 4 1107
UselessParentheses Useless parentheses. 4 1287
UselessParentheses Useless parentheses. 4 1287
UnusedPrivateMethod Avoid unused private methods such as 'enableOnAbsentOption(CommandLine,char,Consumer)'. 3 15291530

org/apache/maven/cli/event/ExecutionEventLogger.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 125
UselessParentheses Useless parentheses. 4 332

org/apache/maven/cli/jansi/MessageUtils.java

Rule Violation Priority Line
SimplifiedTernary Ternary operators that can be simplified with || or && 3 124

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

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 5153

org/apache/maven/cli/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/cli/transfer/AbstractMavenTransferListener.java

Rule Violation Priority Line
UnnecessarySemicolon Unnecessary semicolon 3 94
UselessParentheses Useless parentheses. 4 225

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

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

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

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 74