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 191686
UnusedPrivateMethod Avoid unused private methods such as 'enableOnAbsentOption(CommandLine,char,Consumer)'. 15401541
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/ConsoleMavenTransferListener.java
Rule Violation Line
UnusedFormalParameter Avoid unused method parameters such as 'event'. 135
org/apache/maven/cli/transfer/FileSizeFormat.java
Rule Violation Line
UnnecessarySemicolon Unnecessary semicolon 73
UnusedFormalParameter Avoid unused constructor parameters such as 'locale'. 102

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. 76
org/apache/maven/cli/transfer/Slf4jMavenTransferListener.java
Rule Violation Line
UselessParentheses Useless parentheses. 73

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 191686
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 15401541

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
UselessParentheses Useless parentheses. 4 76

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

Rule Violation Priority Line
UnnecessarySemicolon Unnecessary semicolon 3 73
UnusedFormalParameter Avoid unused constructor parameters such as 'locale'. 3 102

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

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 73