Fork me on GitHub

PMD Results

The following document contains the results of PMD 6.49.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 193538
UnusedLocalVariable Avoid unused local variables such as 'actualFailIfNoTests'. 1627
CollapsibleIfStatements These nested if statements could be combined 26002602
CollapsibleIfStatements These nested if statements could be combined 26332647

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

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

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

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

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

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

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

Rule Violation Line
UnusedPrivateMethod Avoid unused private methods such as 'getHighestDrawnNumber()'. 77

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

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 19834
CollapsibleIfStatements These nested if statements could be combined 618625

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

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

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

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

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

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

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

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

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

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 19267
EmptyControlStatement Empty try body - you could rename the resource to 'ignored' 164171

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

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

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

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

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

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

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

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

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

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

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

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

Rule Violation Line
UselessParentheses Useless parentheses. 105

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

Rule Violation Line
UselessParentheses Useless parentheses. 306

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

Rule Violation Line
UselessParentheses Useless parentheses. 137
UselessParentheses Useless parentheses. 138

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

Rule Violation Line
UselessParentheses Useless parentheses. 139

org/apache/maven/plugin/surefire/util/ScannerUtil.java

Rule Violation Line
UselessParentheses Useless parentheses. 35
UselessParentheses Useless parentheses. 49

Files

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

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 193538
UnusedLocalVariable Avoid unused local variables such as 'actualFailIfNoTests'. 3 1627
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'Collections.emptyList' due to existing static import 'java.util.Collections.emptyList' 4 1642
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'Collections.emptyList' due to existing static import 'java.util.Collections.emptyList' 4 1997
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'Collections.singletonList' due to existing static import 'java.util.Collections.singletonList' 4 2012
CollapsibleIfStatements These nested if statements could be combined 3 26002602
CollapsibleIfStatements These nested if statements could be combined 3 26332647

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

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

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

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

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

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

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

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 105

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

Rule Violation Priority Line
UnusedPrivateMethod Avoid unused private methods such as 'getHighestDrawnNumber()'. 3 77

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

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 19834
CollapsibleIfStatements These nested if statements could be combined 3 618625

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

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

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

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

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

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

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

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

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

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 19267
EmptyControlStatement Empty try body - you could rename the resource to 'ignored' 3 164171

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

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

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

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

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

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 306

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

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

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

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 139

org/apache/maven/plugin/surefire/util/ScannerUtil.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 35
UselessParentheses Useless parentheses. 4 49

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

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

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

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