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/gamma/Digamma.java

Rule Violation Line
AvoidReassigningParameters Avoid reassigning parameters such as 'x' 76

org/apache/commons/numbers/gamma/Trigamma.java

Rule Violation Line
AvoidReassigningParameters Avoid reassigning parameters such as 'x' 61

Priority 3

org/apache/commons/numbers/gamma/BoostBeta.java

Rule Violation Line
CognitiveComplexity The method 'ibetaPowerTerms(double, double, double, double, boolean, double)' has a cognitive complexity of 56, current threshold is 20 255
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 297301
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 302306
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 329339
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 343349
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 372378
CognitiveComplexity The method 'betaIncompleteImp(double, double, double, Policy, boolean, boolean)' has a cognitive complexity of 244, current threshold is 20 523
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 544547
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 630673
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 677683
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 696702
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 704710
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 762764
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 766772
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 776778
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 781785
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 795798
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 801805
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 807810
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 854858

org/apache/commons/numbers/gamma/BoostErf.java

Rule Violation Line
CognitiveComplexity The method 'erfImp(double, boolean, boolean)' has a cognitive complexity of 46, current threshold is 20 133
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 162167
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 221225
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 248252
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 277281

org/apache/commons/numbers/gamma/BoostGamma.java

Rule Violation Line
CognitiveComplexity The method 'lgamma(double, int[])' has a cognitive complexity of 23, current threshold is 20 757
CognitiveComplexity The method 'gammaIncompleteImp(double, double, boolean, boolean, Policy)' has a cognitive complexity of 158, current threshold is 20 1185
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 12161226
AssignmentInOperand Avoid assignment to isHalfInt in operand 1245
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 13171319
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 13831393
CognitiveComplexity The method 'regularisedGammaPrefix(double, double)' has a cognitive complexity of 26, current threshold is 20 1716
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 17581760
CognitiveComplexity The method 'tgammaDeltaRatio(double, double)' has a cognitive complexity of 21, current threshold is 20 2080
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 21102118

org/apache/commons/numbers/gamma/BoostMath.java

Rule Violation Line
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 6163

org/apache/commons/numbers/gamma/IncompleteGamma.java

Rule Violation Line
MissingStaticMethodInNonInstantiatableClass Class cannot be instantiated and does not provide any static methods or fields 35

org/apache/commons/numbers/gamma/InvGamma1pm1.java

Rule Violation Line
PublicMemberInNonPublicType Public member 'value' declared in a non-public type 116

org/apache/commons/numbers/gamma/LogBeta.java

Rule Violation Line
CognitiveComplexity The method 'value(double, double)' has a cognitive complexity of 40, current threshold is 20 155
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 214225

org/apache/commons/numbers/gamma/LogGamma1p.java

Rule Violation Line
PublicMemberInNonPublicType Public member 'value' declared in a non-public type 40

org/apache/commons/numbers/gamma/RegularizedGamma.java

Rule Violation Line
MissingStaticMethodInNonInstantiatableClass Class cannot be instantiated and does not provide any static methods or fields 34

Files

org/apache/commons/numbers/gamma/BoostBeta.java

Rule Violation Priority Line
CognitiveComplexity The method 'ibetaPowerTerms(double, double, double, double, boolean, double)' has a cognitive complexity of 56, current threshold is 20 3 255
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 297301
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 302306
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 329339
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 343349
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 372378
CognitiveComplexity The method 'betaIncompleteImp(double, double, double, Policy, boolean, boolean)' has a cognitive complexity of 244, current threshold is 20 3 523
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 544547
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 630673
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 677683
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 696702
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 704710
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 762764
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 766772
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 776778
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 781785
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 795798
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 801805
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 807810
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 854858

org/apache/commons/numbers/gamma/BoostErf.java

Rule Violation Priority Line
CognitiveComplexity The method 'erfImp(double, boolean, boolean)' has a cognitive complexity of 46, current threshold is 20 3 133
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 162167
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 221225
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 248252
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 277281

org/apache/commons/numbers/gamma/BoostGamma.java

Rule Violation Priority Line
CognitiveComplexity The method 'lgamma(double, int[])' has a cognitive complexity of 23, current threshold is 20 3 757
CognitiveComplexity The method 'gammaIncompleteImp(double, double, boolean, boolean, Policy)' has a cognitive complexity of 158, current threshold is 20 3 1185
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 12161226
AssignmentInOperand Avoid assignment to isHalfInt in operand 3 1245
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 13171319
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 13831393
CognitiveComplexity The method 'regularisedGammaPrefix(double, double)' has a cognitive complexity of 26, current threshold is 20 3 1716
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 17581760
CognitiveComplexity The method 'tgammaDeltaRatio(double, double)' has a cognitive complexity of 21, current threshold is 20 3 2080
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 21102118

org/apache/commons/numbers/gamma/BoostMath.java

Rule Violation Priority Line
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 6163

org/apache/commons/numbers/gamma/Digamma.java

Rule Violation Priority Line
AvoidReassigningParameters Avoid reassigning parameters such as 'x' 2 76

org/apache/commons/numbers/gamma/IncompleteGamma.java

Rule Violation Priority Line
MissingStaticMethodInNonInstantiatableClass Class cannot be instantiated and does not provide any static methods or fields 3 35

org/apache/commons/numbers/gamma/InvGamma1pm1.java

Rule Violation Priority Line
PublicMemberInNonPublicType Public member 'value' declared in a non-public type 3 116

org/apache/commons/numbers/gamma/LogBeta.java

Rule Violation Priority Line
CognitiveComplexity The method 'value(double, double)' has a cognitive complexity of 40, current threshold is 20 3 155
AvoidDeeplyNestedIfStmts Deeply nested if..then statements are hard to read 3 214225

org/apache/commons/numbers/gamma/LogGamma1p.java

Rule Violation Priority Line
PublicMemberInNonPublicType Public member 'value' declared in a non-public type 3 40

org/apache/commons/numbers/gamma/RegularizedGamma.java

Rule Violation Priority Line
MissingStaticMethodInNonInstantiatableClass Class cannot be instantiated and does not provide any static methods or fields 3 34

org/apache/commons/numbers/gamma/Trigamma.java

Rule Violation Priority Line
AvoidReassigningParameters Avoid reassigning parameters such as 'x' 2 61