Apache Commons logo Apache Commons Numbers

PMD Results

The following document contains the results of PMD 7.23.0.

Violations By Priority

Priority 2

org/apache/commons/numbers/arrays/QuickSelect.java

Rule Violation Line
AvoidReassigningParameters Avoid reassigning parameters such as 'p' 297
AvoidReassigningParameters Avoid reassigning parameters such as 'p' 379
AvoidReassigningParameters Avoid reassigning parameters such as 'p' 1566
AvoidReassigningParameters Avoid reassigning parameters such as 'p' 1648
AvoidReassigningParameters Avoid reassigning parameters such as 'p' 2824
AvoidReassigningParameters Avoid reassigning parameters such as 'p' 2906

Priority 3

org/apache/commons/numbers/arrays/IndexSupport.java

Rule Violation Line
AvoidLiteralsInIfCondition Avoid using literals such as 2 in if statements 48
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'i' 149

org/apache/commons/numbers/arrays/QuickSelect.java

Rule Violation Line
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'i' 427
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'i' 473
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 12271229
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 12501252
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 14301433
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 14381444
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'i' 1696
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'i' 1742
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 24852487
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 25082510
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 26882691
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 26962702
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'i' 2954
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'i' 3000
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 37433745
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 37663768
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 39463949
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 39543960

org/apache/commons/numbers/arrays/Selection.java

Rule Violation Line
GodClass Possible God Class (WMC=56, ATFD=32, TCC=0.000%) 134
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'i' 223
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'j' 247
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 249251
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'i' 277
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'i' 298
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 300304
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 322327
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'i' 331
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 340342

org/apache/commons/numbers/arrays/Sorting.java

Rule Violation Line
CyclomaticComplexity The class 'Sorting' has a total cyclomatic complexity of 112 (highest 10). 34
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'i' 47
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'i' 275
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'i' 503

Files

org/apache/commons/numbers/arrays/IndexSupport.java

Rule Violation Priority Line
AvoidLiteralsInIfCondition Avoid using literals such as 2 in if statements 3 48
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'i' 3 149

org/apache/commons/numbers/arrays/QuickSelect.java

Rule Violation Priority Line
AvoidReassigningParameters Avoid reassigning parameters such as 'p' 2 297
AvoidReassigningParameters Avoid reassigning parameters such as 'p' 2 379
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'i' 3 427
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'i' 3 473
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 12271229
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 12501252
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 14301433
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 14381444
AvoidReassigningParameters Avoid reassigning parameters such as 'p' 2 1566
AvoidReassigningParameters Avoid reassigning parameters such as 'p' 2 1648
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'i' 3 1696
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'i' 3 1742
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 24852487
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 25082510
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 26882691
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 26962702
AvoidReassigningParameters Avoid reassigning parameters such as 'p' 2 2824
AvoidReassigningParameters Avoid reassigning parameters such as 'p' 2 2906
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'i' 3 2954
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'i' 3 3000
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 37433745
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 37663768
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 39463949
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 39543960

org/apache/commons/numbers/arrays/Selection.java

Rule Violation Priority Line
GodClass Possible God Class (WMC=56, ATFD=32, TCC=0.000%) 3 134
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'i' 3 223
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'j' 3 247
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 249251
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'i' 3 277
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'i' 3 298
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 300304
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 322327
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'i' 3 331
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 340342

org/apache/commons/numbers/arrays/Sorting.java

Rule Violation Priority Line
CyclomaticComplexity The class 'Sorting' has a total cyclomatic complexity of 112 (highest 10). 3 34
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'i' 3 47
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'i' 3 275
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'i' 3 503