Fork me on GitHub

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 24153
UnusedLocalVariable Avoid unused local variables such as 'actualFailIfNoTests'. 1859
CollapsibleIfStatements These nested if statements could be combined 29512954
CollapsibleIfStatements These nested if statements could be combined 30053022

org/apache/maven/plugin/surefire/StartupReportConfiguration.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 1275

org/apache/maven/plugin/surefire/SurefireDependencyResolver.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 1297

org/apache/maven/plugin/surefire/SurefireHelper.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 1351

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 1205

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 1932
CollapsibleIfStatements These nested if statements could be combined 685696

org/apache/maven/plugin/surefire/booterclient/JarManifestForkConfiguration.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 1255

org/apache/maven/plugin/surefire/booterclient/ModularClasspathForkConfiguration.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 1239

org/apache/maven/plugin/surefire/booterclient/lazytestprovider/TestProvidingInputStream.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 1184

org/apache/maven/plugin/surefire/booterclient/output/ForkedProcessEventNotifier.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 1249

org/apache/maven/plugin/surefire/booterclient/output/InPluginProcessDumpSingleton.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 1111

org/apache/maven/plugin/surefire/extensions/SurefireForkChannel.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 1302

org/apache/maven/plugin/surefire/report/DefaultReporterFactory.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 1502

org/apache/maven/plugin/surefire/report/StatelessXmlReporter.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 1726

org/apache/maven/surefire/stream/CommandEncoder.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 1145

org/apache/maven/surefire/stream/EventDecoder.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 1474

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 24153
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 29512954
CollapsibleIfStatements These nested if statements could be combined 3 30053022

org/apache/maven/plugin/surefire/StartupReportConfiguration.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 1275

org/apache/maven/plugin/surefire/SurefireDependencyResolver.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 1297

org/apache/maven/plugin/surefire/SurefireHelper.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 1351

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 1205

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 1932
CollapsibleIfStatements These nested if statements could be combined 3 685696

org/apache/maven/plugin/surefire/booterclient/JarManifestForkConfiguration.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 1255

org/apache/maven/plugin/surefire/booterclient/ModularClasspathForkConfiguration.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 1239

org/apache/maven/plugin/surefire/booterclient/lazytestprovider/TestProvidingInputStream.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 1184

org/apache/maven/plugin/surefire/booterclient/output/ForkedProcessEventNotifier.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 1249

org/apache/maven/plugin/surefire/booterclient/output/InPluginProcessDumpSingleton.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 1111

org/apache/maven/plugin/surefire/extensions/SurefireForkChannel.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 1302

org/apache/maven/plugin/surefire/report/DefaultReporterFactory.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 1502

org/apache/maven/plugin/surefire/report/StatelessXmlReporter.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 1726

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 1145

org/apache/maven/surefire/stream/EventDecoder.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 1474