PMD Results
The following document contains the results of PMD 7.0.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–1762 |
UnusedPrivateMethod | Avoid unused private methods such as 'enableOnAbsentOption(CommandLine, char, Consumer<Boolean>)'. | 1588 |
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/props/MavenProperties.java
Rule | Violation | Line |
---|---|---|
CollapsibleIfStatements | This if statement could be combined with its parent | 358–360 |
CollapsibleIfStatements | This if statement could be combined with its parent | 371–373 |
org/apache/maven/cli/transfer/ConsoleMavenTransferListener.java
Rule | Violation | Line |
---|---|---|
UnusedFormalParameter | Avoid unused method parameters such as 'event'. | 144 |
org/apache/maven/cli/transfer/FileSizeFormat.java
Rule | Violation | Line |
---|---|---|
UnnecessarySemicolon | Unnecessary semicolon | 73 |
Priority 4
org/apache/maven/cli/CLIReportingUtils.java
Rule | Violation | Line |
---|---|---|
UselessParentheses | Useless parentheses. | 87 |
UselessParentheses | Useless parentheses. | 117 |
UselessParentheses | Useless parentheses. | 169 |
UselessParentheses | Useless parentheses. | 170 |
UselessParentheses | Useless parentheses. | 171 |
org/apache/maven/cli/MavenCli.java
Rule | Violation | Line |
---|---|---|
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'Constants': 'MAVEN_HOME' is already in scope because it is imported in this file | 367 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'Constants': 'MAVEN_HOME' is already in scope because it is imported in this file | 371 |
UselessParentheses | Useless parentheses. | 616 |
org/apache/maven/cli/logging/Slf4jLoggerManager.java
Rule | Violation | Line |
---|---|---|
UselessParentheses | Useless parentheses. | 51–53 |
org/apache/maven/cli/props/MavenPropertiesLoader.java
Rule | Violation | Line |
---|---|---|
UselessParentheses | Useless parentheses. | 124 |
UselessParentheses | Useless parentheses. | 155 |
org/apache/maven/cli/transfer/AbstractMavenTransferListener.java
Rule | Violation | Line |
---|---|---|
UselessParentheses | Useless parentheses. | 74 |
org/apache/maven/cli/transfer/Slf4jMavenTransferListener.java
Rule | Violation | Line |
---|---|---|
UselessParentheses | Useless parentheses. | 71 |
Files
org/apache/maven/cli/CLIReportingUtils.java
Rule | Violation | Priority | Line |
---|---|---|---|
UselessParentheses | Useless parentheses. | 4 | 87 |
UselessParentheses | Useless parentheses. | 4 | 117 |
UselessParentheses | Useless parentheses. | 4 | 169 |
UselessParentheses | Useless parentheses. | 4 | 170 |
UselessParentheses | Useless parentheses. | 4 | 171 |
org/apache/maven/cli/MavenCli.java
Rule | Violation | Priority | Line |
---|---|---|---|
TooManyStaticImports | Too many static imports may lead to messy code | 3 | 19–1762 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'Constants': 'MAVEN_HOME' is already in scope because it is imported in this file | 4 | 367 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'Constants': 'MAVEN_HOME' is already in scope because it is imported in this file | 4 | 371 |
UselessParentheses | Useless parentheses. | 4 | 616 |
UnusedPrivateMethod | Avoid unused private methods such as 'enableOnAbsentOption(CommandLine, char, Consumer<Boolean>)'. | 3 | 1588 |
org/apache/maven/cli/logging/Slf4jLoggerManager.java
Rule | Violation | Priority | Line |
---|---|---|---|
UselessParentheses | Useless parentheses. | 4 | 51–53 |
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/props/MavenProperties.java
Rule | Violation | Priority | Line |
---|---|---|---|
CollapsibleIfStatements | This if statement could be combined with its parent | 3 | 358–360 |
CollapsibleIfStatements | This if statement could be combined with its parent | 3 | 371–373 |
org/apache/maven/cli/props/MavenPropertiesLoader.java
Rule | Violation | Priority | Line |
---|---|---|---|
UselessParentheses | Useless parentheses. | 4 | 124 |
UselessParentheses | Useless parentheses. | 4 | 155 |
org/apache/maven/cli/transfer/AbstractMavenTransferListener.java
Rule | Violation | Priority | Line |
---|---|---|---|
UselessParentheses | Useless parentheses. | 4 | 74 |
org/apache/maven/cli/transfer/ConsoleMavenTransferListener.java
Rule | Violation | Priority | Line |
---|---|---|---|
UnusedFormalParameter | Avoid unused method parameters such as 'event'. | 3 | 144 |
org/apache/maven/cli/transfer/FileSizeFormat.java
Rule | Violation | Priority | Line |
---|---|---|---|
UnnecessarySemicolon | Unnecessary semicolon | 3 | 73 |
org/apache/maven/cli/transfer/Slf4jMavenTransferListener.java
Rule | Violation | Priority | Line |
---|---|---|---|
UselessParentheses | Useless parentheses. | 4 | 71 |