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 191692
UnusedPrivateMethod Avoid unused private methods such as 'enableOnAbsentOption(CommandLine,char,Consumer)'. 15451546
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'. 137
org/apache/maven/cli/transfer/FileSizeFormat.java
Rule Violation Line
UnnecessarySemicolon Unnecessary semicolon 75
UnusedFormalParameter Avoid unused constructor parameters such as 'locale'. 104

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. 70
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 191692
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 15451546

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

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

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

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

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

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

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 73