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 |
---|---|---|
UnusedPrivateMethod | Avoid unused private methods such as 'enableOnAbsentOption(CommandLine, char, Consumer<Boolean>)'. | 1588 |
org/apache/maven/cli/props/MavenProperties.java
Rule | Violation | Line |
---|---|---|
CollapsibleIfStatements | This if statement could be combined with its parent | 359–361 |
CollapsibleIfStatements | This if statement could be combined with its parent | 372–374 |
org/apache/maven/cli/transfer/ConsoleMavenTransferListener.java
Rule | Violation | Line |
---|---|---|
UnusedFormalParameter | Avoid unused method parameters such as 'event'. | 146 |
org/apache/maven/cli/transfer/FileSizeFormat.java
Rule | Violation | Line |
---|---|---|
UnnecessarySemicolon | Unnecessary semicolon | 74 |
Priority 4
org/apache/maven/cli/CLIReportingUtils.java
Rule | Violation | Line |
---|---|---|
UselessParentheses | Useless parentheses. | 99 |
UselessParentheses | Useless parentheses. | 129 |
UselessParentheses | Useless parentheses. | 181 |
UselessParentheses | Useless parentheses. | 182 |
UselessParentheses | Useless parentheses. | 183 |
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 | 363 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'Constants': 'MAVEN_HOME' is already in scope because it is imported in this file | 367 |
UselessParentheses | Useless parentheses. | 613 |
org/apache/maven/cli/props/MavenPropertiesLoader.java
Rule | Violation | Line |
---|---|---|
UselessParentheses | Useless parentheses. | 125 |
UselessParentheses | Useless parentheses. | 156 |
org/apache/maven/cli/transfer/AbstractMavenTransferListener.java
Rule | Violation | Line |
---|---|---|
UselessParentheses | Useless parentheses. | 75 |
org/apache/maven/cli/transfer/Slf4jMavenTransferListener.java
Rule | Violation | Line |
---|---|---|
UselessParentheses | Useless parentheses. | 72 |
Files
org/apache/maven/cli/CLIReportingUtils.java
Rule | Violation | Priority | Line |
---|---|---|---|
UselessParentheses | Useless parentheses. | 4 | 99 |
UselessParentheses | Useless parentheses. | 4 | 129 |
UselessParentheses | Useless parentheses. | 4 | 181 |
UselessParentheses | Useless parentheses. | 4 | 182 |
UselessParentheses | Useless parentheses. | 4 | 183 |
org/apache/maven/cli/MavenCli.java
Rule | Violation | Priority | Line |
---|---|---|---|
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'Constants': 'MAVEN_HOME' is already in scope because it is imported in this file | 4 | 363 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'Constants': 'MAVEN_HOME' is already in scope because it is imported in this file | 4 | 367 |
UselessParentheses | Useless parentheses. | 4 | 613 |
UnusedPrivateMethod | Avoid unused private methods such as 'enableOnAbsentOption(CommandLine, char, Consumer<Boolean>)'. | 3 | 1588 |
org/apache/maven/cli/props/MavenProperties.java
Rule | Violation | Priority | Line |
---|---|---|---|
CollapsibleIfStatements | This if statement could be combined with its parent | 3 | 359–361 |
CollapsibleIfStatements | This if statement could be combined with its parent | 3 | 372–374 |
org/apache/maven/cli/props/MavenPropertiesLoader.java
Rule | Violation | Priority | Line |
---|---|---|---|
UselessParentheses | Useless parentheses. | 4 | 125 |
UselessParentheses | Useless parentheses. | 4 | 156 |
org/apache/maven/cli/transfer/AbstractMavenTransferListener.java
Rule | Violation | Priority | Line |
---|---|---|---|
UselessParentheses | Useless parentheses. | 4 | 75 |
org/apache/maven/cli/transfer/ConsoleMavenTransferListener.java
Rule | Violation | Priority | Line |
---|---|---|---|
UnusedFormalParameter | Avoid unused method parameters such as 'event'. | 3 | 146 |
org/apache/maven/cli/transfer/FileSizeFormat.java
Rule | Violation | Priority | Line |
---|---|---|---|
UnnecessarySemicolon | Unnecessary semicolon | 3 | 74 |
org/apache/maven/cli/transfer/Slf4jMavenTransferListener.java
Rule | Violation | Priority | Line |
---|---|---|---|
UselessParentheses | Useless parentheses. | 4 | 72 |