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 | 19–1654 |
UnusedPrivateMethod | Avoid unused private methods such as 'enableOnAbsentOption(CommandLine,char,Consumer)'. | 1520–1521 |
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'. | 39 |
UnusedFormalParameter | Avoid unused constructor parameters such as 'supported'. | 39 |
org/apache/maven/cli/transfer/AbstractMavenTransferListener.java
Rule | Violation | Line |
---|---|---|
UnnecessarySemicolon | Unnecessary semicolon | 89 |
org/apache/maven/cli/transfer/ConsoleMavenTransferListener.java
Rule | Violation | Line |
---|---|---|
UnusedFormalParameter | Avoid unused method parameters such as 'event'. | 137 |
Priority 4
org/apache/maven/cli/CLIReportingUtils.java
Rule | Violation | Line |
---|---|---|
UselessParentheses | Useless parentheses. | 88 |
UselessParentheses | Useless parentheses. | 104 |
UselessParentheses | Useless parentheses. | 107 |
UselessParentheses | Useless parentheses. | 118 |
UselessParentheses | Useless parentheses. | 118 |
org/apache/maven/cli/MavenCli.java
Rule | Violation | Line |
---|---|---|
UselessParentheses | Useless parentheses. | 594 |
UselessParentheses | Useless parentheses. | 1092 |
UselessParentheses | Useless parentheses. | 1092 |
UselessParentheses | Useless parentheses. | 1272 |
UselessParentheses | Useless parentheses. | 1272 |
org/apache/maven/cli/event/ExecutionEventLogger.java
Rule | Violation | Line |
---|---|---|
UselessParentheses | Useless parentheses. | 127 |
UselessParentheses | Useless parentheses. | 333 |
org/apache/maven/cli/logging/Slf4jLoggerManager.java
Rule | Violation | Line |
---|---|---|
UselessParentheses | Useless parentheses. | 52–54 |
org/apache/maven/cli/transfer/AbstractMavenTransferListener.java
Rule | Violation | Line |
---|---|---|
UselessParentheses | Useless parentheses. | 213 |
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 | 88 |
UselessParentheses | Useless parentheses. | 4 | 104 |
UselessParentheses | Useless parentheses. | 4 | 107 |
UselessParentheses | Useless parentheses. | 4 | 118 |
UselessParentheses | Useless parentheses. | 4 | 118 |
org/apache/maven/cli/MavenCli.java
Rule | Violation | Priority | Line |
---|---|---|---|
TooManyStaticImports | Too many static imports may lead to messy code | 3 | 19–1654 |
UselessParentheses | Useless parentheses. | 4 | 594 |
UselessParentheses | Useless parentheses. | 4 | 1092 |
UselessParentheses | Useless parentheses. | 4 | 1092 |
UselessParentheses | Useless parentheses. | 4 | 1272 |
UselessParentheses | Useless parentheses. | 4 | 1272 |
UnusedPrivateMethod | Avoid unused private methods such as 'enableOnAbsentOption(CommandLine,char,Consumer)'. | 3 | 1520–1521 |
org/apache/maven/cli/event/ExecutionEventLogger.java
Rule | Violation | Priority | Line |
---|---|---|---|
UselessParentheses | Useless parentheses. | 4 | 127 |
UselessParentheses | Useless parentheses. | 4 | 333 |
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 | 52–54 |
org/apache/maven/cli/logging/impl/UnsupportedSlf4jBindingConfiguration.java
Rule | Violation | Priority | Line |
---|---|---|---|
UnusedFormalParameter | Avoid unused constructor parameters such as 'slf4jBinding'. | 3 | 39 |
UnusedFormalParameter | Avoid unused constructor parameters such as 'supported'. | 3 | 39 |
org/apache/maven/cli/transfer/AbstractMavenTransferListener.java
Rule | Violation | Priority | Line |
---|---|---|---|
UnnecessarySemicolon | Unnecessary semicolon | 3 | 89 |
UselessParentheses | Useless parentheses. | 4 | 213 |
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/Slf4jMavenTransferListener.java
Rule | Violation | Priority | Line |
---|---|---|---|
UselessParentheses | Useless parentheses. | 4 | 74 |