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–1786 |
UnusedPrivateMethod | Avoid unused private methods such as 'enableOnAbsentOption(CommandLine, char, Consumer<Boolean>)'. | 1595 |
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/InterpolationHelper.java
Rule | Violation | Line |
---|---|---|
CollapsibleIfStatements | This if statement could be combined with its parent | 241–245 |
CollapsibleIfStatements | This if statement could be combined with its parent | 242–244 |
org/apache/maven/cli/props/MavenProperties.java
Rule | Violation | Line |
---|---|---|
CollapsibleIfStatements | This if statement could be combined with its parent | 356–358 |
CollapsibleIfStatements | This if statement could be combined with its parent | 369–371 |
org/apache/maven/cli/transfer/ConsoleMavenTransferListener.java
Rule | Violation | Line |
---|---|---|
UnusedFormalParameter | Avoid unused method parameters such as 'event'. | 138 |
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 | 374 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'Constants': 'MAVEN_HOME' is already in scope because it is imported in this file | 378 |
UselessParentheses | Useless parentheses. | 599 |
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. | 123 |
UselessParentheses | Useless parentheses. | 154 |
org/apache/maven/cli/transfer/AbstractMavenTransferListener.java
Rule | Violation | Line |
---|---|---|
UselessParentheses | Useless parentheses. | 69 |
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–1786 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'Constants': 'MAVEN_HOME' is already in scope because it is imported in this file | 4 | 374 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'Constants': 'MAVEN_HOME' is already in scope because it is imported in this file | 4 | 378 |
UselessParentheses | Useless parentheses. | 4 | 599 |
UnusedPrivateMethod | Avoid unused private methods such as 'enableOnAbsentOption(CommandLine, char, Consumer<Boolean>)'. | 3 | 1595 |
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/InterpolationHelper.java
Rule | Violation | Priority | Line |
---|---|---|---|
CollapsibleIfStatements | This if statement could be combined with its parent | 3 | 241–245 |
CollapsibleIfStatements | This if statement could be combined with its parent | 3 | 242–244 |
org/apache/maven/cli/props/MavenProperties.java
Rule | Violation | Priority | Line |
---|---|---|---|
CollapsibleIfStatements | This if statement could be combined with its parent | 3 | 356–358 |
CollapsibleIfStatements | This if statement could be combined with its parent | 3 | 369–371 |
org/apache/maven/cli/props/MavenPropertiesLoader.java
Rule | Violation | Priority | Line |
---|---|---|---|
UselessParentheses | Useless parentheses. | 4 | 123 |
UselessParentheses | Useless parentheses. | 4 | 154 |
org/apache/maven/cli/transfer/AbstractMavenTransferListener.java
Rule | Violation | Priority | Line |
---|---|---|---|
UselessParentheses | Useless parentheses. | 4 | 69 |
org/apache/maven/cli/transfer/ConsoleMavenTransferListener.java
Rule | Violation | Priority | Line |
---|---|---|---|
UnusedFormalParameter | Avoid unused method parameters such as 'event'. | 3 | 138 |
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 |