PMD Results
The following document contains the results of PMD 6.42.0.
Violations By Priority
Priority 3
org/apache/maven/plugin/surefire/AbstractSurefireMojo.java
Rule | Violation | Line |
---|---|---|
TooManyStaticImports | Too many static imports may lead to messy code | 2–4153 |
UnusedLocalVariable | Avoid unused local variables such as 'actualFailIfNoTests'. | 1859 |
CollapsibleIfStatements | These nested if statements could be combined | 2951–2954 |
CollapsibleIfStatements | These nested if statements could be combined | 3005–3022 |
org/apache/maven/plugin/surefire/StartupReportConfiguration.java
Rule | Violation | Line |
---|---|---|
TooManyStaticImports | Too many static imports may lead to messy code | 1–275 |
org/apache/maven/plugin/surefire/SurefireDependencyResolver.java
Rule | Violation | Line |
---|---|---|
TooManyStaticImports | Too many static imports may lead to messy code | 1–297 |
org/apache/maven/plugin/surefire/SurefireHelper.java
Rule | Violation | Line |
---|---|---|
TooManyStaticImports | Too many static imports may lead to messy code | 1–351 |
org/apache/maven/plugin/surefire/SurefireProperties.java
Rule | Violation | Line |
---|---|---|
UnnecessaryModifier | Unnecessary modifier 'final' on resource specification 'surefirePropertiesStream': resource specifications are implicitly final | 251 |
org/apache/maven/plugin/surefire/booterclient/BooterSerializer.java
Rule | Violation | Line |
---|---|---|
TooManyStaticImports | Too many static imports may lead to messy code | 1–205 |
org/apache/maven/plugin/surefire/booterclient/ForkNumberBucket.java
Rule | Violation | Line |
---|---|---|
UnusedPrivateMethod | Avoid unused private methods such as 'getHighestDrawnNumber()'. | 85 |
org/apache/maven/plugin/surefire/booterclient/ForkStarter.java
Rule | Violation | Line |
---|---|---|
TooManyStaticImports | Too many static imports may lead to messy code | 1–932 |
CollapsibleIfStatements | These nested if statements could be combined | 685–696 |
org/apache/maven/plugin/surefire/booterclient/JarManifestForkConfiguration.java
Rule | Violation | Line |
---|---|---|
TooManyStaticImports | Too many static imports may lead to messy code | 1–255 |
org/apache/maven/plugin/surefire/booterclient/ModularClasspathForkConfiguration.java
Rule | Violation | Line |
---|---|---|
TooManyStaticImports | Too many static imports may lead to messy code | 1–239 |
org/apache/maven/plugin/surefire/booterclient/lazytestprovider/TestProvidingInputStream.java
Rule | Violation | Line |
---|---|---|
TooManyStaticImports | Too many static imports may lead to messy code | 1–184 |
org/apache/maven/plugin/surefire/booterclient/output/ForkedProcessEventNotifier.java
Rule | Violation | Line |
---|---|---|
TooManyStaticImports | Too many static imports may lead to messy code | 1–249 |
org/apache/maven/plugin/surefire/booterclient/output/InPluginProcessDumpSingleton.java
Rule | Violation | Line |
---|---|---|
TooManyStaticImports | Too many static imports may lead to messy code | 1–111 |
org/apache/maven/plugin/surefire/extensions/SurefireForkChannel.java
Rule | Violation | Line |
---|---|---|
TooManyStaticImports | Too many static imports may lead to messy code | 1–302 |
org/apache/maven/plugin/surefire/report/DefaultReporterFactory.java
Rule | Violation | Line |
---|---|---|
TooManyStaticImports | Too many static imports may lead to messy code | 1–502 |
org/apache/maven/plugin/surefire/report/StatelessXmlReporter.java
Rule | Violation | Line |
---|---|---|
TooManyStaticImports | Too many static imports may lead to messy code | 1–726 |
org/apache/maven/surefire/stream/CommandEncoder.java
Rule | Violation | Line |
---|---|---|
TooManyStaticImports | Too many static imports may lead to messy code | 1–145 |
org/apache/maven/surefire/stream/EventDecoder.java
Rule | Violation | Line |
---|---|---|
TooManyStaticImports | Too many static imports may lead to messy code | 1–474 |
Priority 4
org/apache/maven/plugin/surefire/AbstractSurefireMojo.java
Rule | Violation | Line |
---|---|---|
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'Collections.emptyList' due to existing static import 'java.util.Collections.emptyList' | 1878 |
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'Collections.emptyList' due to existing static import 'java.util.Collections.emptyList' | 2230 |
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'Collections.singletonList' due to existing static import 'java.util.Collections.singletonList' | 2251 |
org/apache/maven/plugin/surefire/booterclient/ChecksumCalculator.java
Rule | Violation | Line |
---|---|---|
UselessParentheses | Useless parentheses. | 137 |
org/apache/maven/plugin/surefire/report/TestSetRunListener.java
Rule | Violation | Line |
---|---|---|
UselessParentheses | Useless parentheses. | 334 |
org/apache/maven/plugin/surefire/report/WrappedReportEntry.java
Rule | Violation | Line |
---|---|---|
UselessParentheses | Useless parentheses. | 151 |
org/apache/maven/plugin/surefire/util/ScannerUtil.java
Rule | Violation | Line |
---|---|---|
UselessParentheses | Useless parentheses. | 37 |
UselessParentheses | Useless parentheses. | 52 |
Files
org/apache/maven/plugin/surefire/AbstractSurefireMojo.java
Rule | Violation | Priority | Line |
---|---|---|---|
TooManyStaticImports | Too many static imports may lead to messy code | 3 | 2–4153 |
UnusedLocalVariable | Avoid unused local variables such as 'actualFailIfNoTests'. | 3 | 1859 |
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'Collections.emptyList' due to existing static import 'java.util.Collections.emptyList' | 4 | 1878 |
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'Collections.emptyList' due to existing static import 'java.util.Collections.emptyList' | 4 | 2230 |
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'Collections.singletonList' due to existing static import 'java.util.Collections.singletonList' | 4 | 2251 |
CollapsibleIfStatements | These nested if statements could be combined | 3 | 2951–2954 |
CollapsibleIfStatements | These nested if statements could be combined | 3 | 3005–3022 |
org/apache/maven/plugin/surefire/StartupReportConfiguration.java
Rule | Violation | Priority | Line |
---|---|---|---|
TooManyStaticImports | Too many static imports may lead to messy code | 3 | 1–275 |
org/apache/maven/plugin/surefire/SurefireDependencyResolver.java
Rule | Violation | Priority | Line |
---|---|---|---|
TooManyStaticImports | Too many static imports may lead to messy code | 3 | 1–297 |
org/apache/maven/plugin/surefire/SurefireHelper.java
Rule | Violation | Priority | Line |
---|---|---|---|
TooManyStaticImports | Too many static imports may lead to messy code | 3 | 1–351 |
org/apache/maven/plugin/surefire/SurefireProperties.java
Rule | Violation | Priority | Line |
---|---|---|---|
UnnecessaryModifier | Unnecessary modifier 'final' on resource specification 'surefirePropertiesStream': resource specifications are implicitly final | 3 | 251 |
org/apache/maven/plugin/surefire/booterclient/BooterSerializer.java
Rule | Violation | Priority | Line |
---|---|---|---|
TooManyStaticImports | Too many static imports may lead to messy code | 3 | 1–205 |
org/apache/maven/plugin/surefire/booterclient/ChecksumCalculator.java
Rule | Violation | Priority | Line |
---|---|---|---|
UselessParentheses | Useless parentheses. | 4 | 137 |
org/apache/maven/plugin/surefire/booterclient/ForkNumberBucket.java
Rule | Violation | Priority | Line |
---|---|---|---|
UnusedPrivateMethod | Avoid unused private methods such as 'getHighestDrawnNumber()'. | 3 | 85 |
org/apache/maven/plugin/surefire/booterclient/ForkStarter.java
Rule | Violation | Priority | Line |
---|---|---|---|
TooManyStaticImports | Too many static imports may lead to messy code | 3 | 1–932 |
CollapsibleIfStatements | These nested if statements could be combined | 3 | 685–696 |
org/apache/maven/plugin/surefire/booterclient/JarManifestForkConfiguration.java
Rule | Violation | Priority | Line |
---|---|---|---|
TooManyStaticImports | Too many static imports may lead to messy code | 3 | 1–255 |
org/apache/maven/plugin/surefire/booterclient/ModularClasspathForkConfiguration.java
Rule | Violation | Priority | Line |
---|---|---|---|
TooManyStaticImports | Too many static imports may lead to messy code | 3 | 1–239 |
org/apache/maven/plugin/surefire/booterclient/lazytestprovider/TestProvidingInputStream.java
Rule | Violation | Priority | Line |
---|---|---|---|
TooManyStaticImports | Too many static imports may lead to messy code | 3 | 1–184 |
org/apache/maven/plugin/surefire/booterclient/output/ForkedProcessEventNotifier.java
Rule | Violation | Priority | Line |
---|---|---|---|
TooManyStaticImports | Too many static imports may lead to messy code | 3 | 1–249 |
org/apache/maven/plugin/surefire/booterclient/output/InPluginProcessDumpSingleton.java
Rule | Violation | Priority | Line |
---|---|---|---|
TooManyStaticImports | Too many static imports may lead to messy code | 3 | 1–111 |
org/apache/maven/plugin/surefire/extensions/SurefireForkChannel.java
Rule | Violation | Priority | Line |
---|---|---|---|
TooManyStaticImports | Too many static imports may lead to messy code | 3 | 1–302 |
org/apache/maven/plugin/surefire/report/DefaultReporterFactory.java
Rule | Violation | Priority | Line |
---|---|---|---|
TooManyStaticImports | Too many static imports may lead to messy code | 3 | 1–502 |
org/apache/maven/plugin/surefire/report/StatelessXmlReporter.java
Rule | Violation | Priority | Line |
---|---|---|---|
TooManyStaticImports | Too many static imports may lead to messy code | 3 | 1–726 |
org/apache/maven/plugin/surefire/report/TestSetRunListener.java
Rule | Violation | Priority | Line |
---|---|---|---|
UselessParentheses | Useless parentheses. | 4 | 334 |
org/apache/maven/plugin/surefire/report/WrappedReportEntry.java
Rule | Violation | Priority | Line |
---|---|---|---|
UselessParentheses | Useless parentheses. | 4 | 151 |
org/apache/maven/plugin/surefire/util/ScannerUtil.java
Rule | Violation | Priority | Line |
---|---|---|---|
UselessParentheses | Useless parentheses. | 4 | 37 |
UselessParentheses | Useless parentheses. | 4 | 52 |
org/apache/maven/surefire/stream/CommandEncoder.java
Rule | Violation | Priority | Line |
---|---|---|---|
TooManyStaticImports | Too many static imports may lead to messy code | 3 | 1–145 |
org/apache/maven/surefire/stream/EventDecoder.java
Rule | Violation | Priority | Line |
---|---|---|---|
TooManyStaticImports | Too many static imports may lead to messy code | 3 | 1–474 |