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 1227–1229
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 1250–1252
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 1430–1433
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 1438–1444
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 2485–2487
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 2508–2510
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 2688–2691
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 2696–2702
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 3743–3745
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3766–3768
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3946–3949
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3954–3960

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 249–251
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 300–304
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 322–327
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'i' 331
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 340–342

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 1227–1229
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 1250–1252
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 1430–1433
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 1438–1444
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 2485–2487
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 2508–2510
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 2688–2691
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 2696–2702
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 3743–3745
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 3766–3768
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 3946–3949
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 3954–3960

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 249–251
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 300–304
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 322–327
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'i' 3 331
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 340–342

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