PMD Results

The following document contains the results of PMD 6.55.0.

Violations By Priority

Priority 3

org/apache/maven/scm/provider/hg/command/branch/HgBranchCommand.java
Rule Violation Line
CollapsibleIfStatements These nested if statements could be combined 108119
org/apache/maven/scm/provider/hg/command/checkin/HgCheckInCommand.java
Rule Violation Line
SimplifiedTernary Ternary operators that can be simplified with || or && 60
org/apache/maven/scm/provider/hg/command/tag/HgTagCommand.java
Rule Violation Line
CollapsibleIfStatements These nested if statements could be combined 92103
org/apache/maven/scm/provider/hg/repository/HgScmProviderRepository.java
Rule Violation Line
EmptyControlStatement Empty if statement 166168

Priority 4

org/apache/maven/scm/provider/hg/command/HgConsumer.java
Rule Violation Line
UselessParentheses Useless parentheses. 113
org/apache/maven/scm/provider/hg/repository/HgScmProviderRepository.java
Rule Violation Line
UselessParentheses Useless parentheses. 204
UselessParentheses Useless parentheses. 204
UselessParentheses Useless parentheses. 204

Files

org/apache/maven/scm/provider/hg/command/HgConsumer.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 113

org/apache/maven/scm/provider/hg/command/branch/HgBranchCommand.java

Rule Violation Priority Line
CollapsibleIfStatements These nested if statements could be combined 3 108119

org/apache/maven/scm/provider/hg/command/checkin/HgCheckInCommand.java

Rule Violation Priority Line
SimplifiedTernary Ternary operators that can be simplified with || or && 3 60

org/apache/maven/scm/provider/hg/command/tag/HgTagCommand.java

Rule Violation Priority Line
CollapsibleIfStatements These nested if statements could be combined 3 92103

org/apache/maven/scm/provider/hg/repository/HgScmProviderRepository.java

Rule Violation Priority Line
EmptyControlStatement Empty if statement 3 166168
UselessParentheses Useless parentheses. 4 204
UselessParentheses Useless parentheses. 4 204
UselessParentheses Useless parentheses. 4 204

Suppressed Violations

Filename Rule message Suppression type Reason
org/apache/maven/scm/provider/hg/HgScmProvider.java Avoid unused local variables such as 'file'. annotation