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 24052
UnusedLocalVariable Avoid unused local variables such as 'actualFailIfNoTests'. 1821
CollapsibleIfStatements These nested if statements could be combined 28882891
CollapsibleIfStatements These nested if statements could be combined 29332950

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 1256

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 1727

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

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

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' 1840
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'Collections.emptyList' due to existing static import 'java.util.Collections.emptyList' 2193
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'Collections.singletonList' due to existing static import 'java.util.Collections.singletonList' 2214

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. 345

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

Rule Violation Line
UselessParentheses Useless parentheses. 155
UselessParentheses Useless parentheses. 155

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 24052
UnusedLocalVariable Avoid unused local variables such as 'actualFailIfNoTests'. 3 1821
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'Collections.emptyList' due to existing static import 'java.util.Collections.emptyList' 4 1840
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'Collections.emptyList' due to existing static import 'java.util.Collections.emptyList' 4 2193
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'Collections.singletonList' due to existing static import 'java.util.Collections.singletonList' 4 2214
CollapsibleIfStatements These nested if statements could be combined 3 28882891
CollapsibleIfStatements These nested if statements could be combined 3 29332950

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 1256

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 1727

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

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 345

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

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 1268
UselessParentheses Useless parentheses. 4 155
UselessParentheses Useless parentheses. 4 155

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