Fork me on GitHub

PMD Results

The following document contains the results of PMD 7.17.0.

Violations By Priority

Priority 2

org/apache/maven/surefire/junitplatform/JUnitPlatformProvider.java

Rule Violation Line
AvoidBranchingStatementAsLastInLoop Avoid using a branching statement as the last in a loop. 777

Priority 3

org/apache/maven/surefire/junitplatform/DefaultStackTraceWriter.java

Rule Violation Line
CollapsibleIfStatements This if statement could be combined with its parent 8991

org/apache/maven/surefire/junitplatform/JUnit4ListenersAdapter.java

Rule Violation Line
CollapsibleIfStatements This if statement could be combined with its parent 207209

org/apache/maven/surefire/junitplatform/JUnitPlatformProvider.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 19805
CollapsibleIfStatements This if statement could be combined with its parent 495500
CollapsibleIfStatements This if statement could be combined with its parent 508511
CollapsibleIfStatements This if statement could be combined with its parent 529534
CollapsibleIfStatements This if statement could be combined with its parent 542545

org/apache/maven/surefire/junitplatform/ReverseOrdering.java

Rule Violation Line
UnusedPrivateMethod Avoid unused private methods such as 'parameterList(Method)'. 48

org/apache/maven/surefire/junitplatform/RunListenerAdapter.java

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

Priority 4

org/apache/maven/surefire/junitplatform/JUnitPlatformProvider.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'Optional': 'of' is already in scope 582
UnnecessaryFullyQualifiedName Unnecessary qualifier 'Optional': 'empty' is already in scope 584
UnnecessaryFullyQualifiedName Unnecessary qualifier 'Collectors': 'toList' is already in scope 594
UnnecessaryFullyQualifiedName Unnecessary qualifier 'Collectors': 'toList' is already in scope 608
UselessParentheses Useless parentheses around `patIdxTmp - patIdxStart - 1`. 763
UselessParentheses Useless parentheses around `strIdxEnd - strIdxStart + 1`. 764

Files

org/apache/maven/surefire/junitplatform/DefaultStackTraceWriter.java

Rule Violation Priority Line
CollapsibleIfStatements This if statement could be combined with its parent 3 8991

org/apache/maven/surefire/junitplatform/JUnit4ListenersAdapter.java

Rule Violation Priority Line
CollapsibleIfStatements This if statement could be combined with its parent 3 207209

org/apache/maven/surefire/junitplatform/JUnitPlatformProvider.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 19805
CollapsibleIfStatements This if statement could be combined with its parent 3 495500
CollapsibleIfStatements This if statement could be combined with its parent 3 508511
CollapsibleIfStatements This if statement could be combined with its parent 3 529534
CollapsibleIfStatements This if statement could be combined with its parent 3 542545
UnnecessaryFullyQualifiedName Unnecessary qualifier 'Optional': 'of' is already in scope 4 582
UnnecessaryFullyQualifiedName Unnecessary qualifier 'Optional': 'empty' is already in scope 4 584
UnnecessaryFullyQualifiedName Unnecessary qualifier 'Collectors': 'toList' is already in scope 4 594
UnnecessaryFullyQualifiedName Unnecessary qualifier 'Collectors': 'toList' is already in scope 4 608
UselessParentheses Useless parentheses around `patIdxTmp - patIdxStart - 1`. 4 763
UselessParentheses Useless parentheses around `strIdxEnd - strIdxStart + 1`. 4 764
AvoidBranchingStatementAsLastInLoop Avoid using a branching statement as the last in a loop. 2 777

org/apache/maven/surefire/junitplatform/ReverseOrdering.java

Rule Violation Priority Line
UnusedPrivateMethod Avoid unused private methods such as 'parameterList(Method)'. 3 48

org/apache/maven/surefire/junitplatform/RunListenerAdapter.java

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