Apache Commons logo Apache Commons Numbers

PMD Results

The following document contains the results of PMD 6.49.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 'beta(double, double)' has a cognitive complexity of 16, current threshold is 15 108158
CognitiveComplexity The method 'ibetaDerivative(double, double, double)' has a cognitive complexity of 18, current threshold is 15 171214
CognitiveComplexity The method 'ibetaPowerTerms(double, double, double, double, boolean, double)' has a cognitive complexity of 56, current threshold is 15 255397
CognitiveComplexity The method 'betaIncompleteImp(double, double, double, Policy, boolean, boolean)' has a cognitive complexity of 244, current threshold is 15 523822
CognitiveComplexity The method 'binomialCCdf(int, int, double, double)' has a cognitive complexity of 18, current threshold is 15 956997

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

Rule Violation Line
GodClass Possible God Class (WMC=55, ATFD=11, TCC=1.282%) 41877
NPathComplexity The method 'erfImp(double, boolean, boolean)' has an NPath complexity of 208, current threshold is 200 138342
CognitiveComplexity The method 'erfImp(double, boolean, boolean)' has a cognitive complexity of 46, current threshold is 15 138342
UnusedAssignment The initializer for variable 'result' is never used (overwritten on lines 552, 590, 639, 663, 687 and 711) 514

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

Rule Violation Line
CognitiveComplexity The method 'tgamma(double)' has a cognitive complexity of 18, current threshold is 15 595690
CognitiveComplexity The method 'lgamma(double, int)' has a cognitive complexity of 23, current threshold is 15 757816
UnusedAssignment The initializer for variable 'result' is never used (overwritten on lines 777, 785, 787, 793, 798 and 802) 758
CognitiveComplexity The method 'lgammaSmall(double, double, double)' has a cognitive complexity of 16, current threshold is 15 8261000
CognitiveComplexity The method 'gammaIncompleteImp(double, double, boolean, boolean, Policy)' has a cognitive complexity of 158, current threshold is 15 11861468
CognitiveComplexity The method 'regularisedGammaPrefix(double, double)' has a cognitive complexity of 26, current threshold is 15 17181824
CognitiveComplexity The method 'tgammaDeltaRatio(double, double)' has a cognitive complexity of 21, current threshold is 15 20822130
CognitiveComplexity The method 'tgammaRatio(double, double)' has a cognitive complexity of 18, current threshold is 15 22172269

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 15 160252

Files

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

Rule Violation Priority Line
CognitiveComplexity The method 'beta(double, double)' has a cognitive complexity of 16, current threshold is 15 3 108158
CognitiveComplexity The method 'ibetaDerivative(double, double, double)' has a cognitive complexity of 18, current threshold is 15 3 171214
CognitiveComplexity The method 'ibetaPowerTerms(double, double, double, double, boolean, double)' has a cognitive complexity of 56, current threshold is 15 3 255397
CognitiveComplexity The method 'betaIncompleteImp(double, double, double, Policy, boolean, boolean)' has a cognitive complexity of 244, current threshold is 15 3 523822
CognitiveComplexity The method 'binomialCCdf(int, int, double, double)' has a cognitive complexity of 18, current threshold is 15 3 956997

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

Rule Violation Priority Line
GodClass Possible God Class (WMC=55, ATFD=11, TCC=1.282%) 3 41877
NPathComplexity The method 'erfImp(double, boolean, boolean)' has an NPath complexity of 208, current threshold is 200 3 138342
CognitiveComplexity The method 'erfImp(double, boolean, boolean)' has a cognitive complexity of 46, current threshold is 15 3 138342
UnusedAssignment The initializer for variable 'result' is never used (overwritten on lines 552, 590, 639, 663, 687 and 711) 3 514

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

Rule Violation Priority Line
CognitiveComplexity The method 'tgamma(double)' has a cognitive complexity of 18, current threshold is 15 3 595690
CognitiveComplexity The method 'lgamma(double, int)' has a cognitive complexity of 23, current threshold is 15 3 757816
UnusedAssignment The initializer for variable 'result' is never used (overwritten on lines 777, 785, 787, 793, 798 and 802) 3 758
CognitiveComplexity The method 'lgammaSmall(double, double, double)' has a cognitive complexity of 16, current threshold is 15 3 8261000
CognitiveComplexity The method 'gammaIncompleteImp(double, double, boolean, boolean, Policy)' has a cognitive complexity of 158, current threshold is 15 3 11861468
CognitiveComplexity The method 'regularisedGammaPrefix(double, double)' has a cognitive complexity of 26, current threshold is 15 3 17181824
CognitiveComplexity The method 'tgammaDeltaRatio(double, double)' has a cognitive complexity of 21, current threshold is 15 3 20822130
CognitiveComplexity The method 'tgammaRatio(double, double)' has a cognitive complexity of 18, current threshold is 15 3 22172269

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/LogBeta.java

Rule Violation Priority Line
CognitiveComplexity The method 'value(double, double)' has a cognitive complexity of 40, current threshold is 15 3 160252

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

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

Suppressed Violations

Filename Rule message Suppression type Reason
org/apache/commons/numbers/gamma/BoostBeta.java Avoid using Literals in Conditional Statements annotation
org/apache/commons/numbers/gamma/BoostBeta.java Avoid using Literals in Conditional Statements annotation
org/apache/commons/numbers/gamma/BoostBeta.java Avoid using Literals in Conditional Statements annotation
org/apache/commons/numbers/gamma/BoostBeta.java Avoid using Literals in Conditional Statements annotation
org/apache/commons/numbers/gamma/BoostBeta.java Avoid using Literals in Conditional Statements annotation
org/apache/commons/numbers/gamma/BoostBeta.java Avoid using Literals in Conditional Statements annotation
org/apache/commons/numbers/gamma/BoostBeta.java Avoid using Literals in Conditional Statements annotation
org/apache/commons/numbers/gamma/BoostBeta.java Avoid using Literals in Conditional Statements annotation
org/apache/commons/numbers/gamma/BoostBeta.java Avoid using Literals in Conditional Statements annotation
org/apache/commons/numbers/gamma/BoostBeta.java Avoid using Literals in Conditional Statements annotation
org/apache/commons/numbers/gamma/BoostBeta.java Avoid using Literals in Conditional Statements annotation
org/apache/commons/numbers/gamma/BoostBeta.java Avoid using Literals in Conditional Statements annotation
org/apache/commons/numbers/gamma/BoostBeta.java Avoid using Literals in Conditional Statements annotation
org/apache/commons/numbers/gamma/BoostBeta.java Avoid using Literals in Conditional Statements annotation
org/apache/commons/numbers/gamma/BoostBeta.java Avoid using Literals in Conditional Statements annotation
org/apache/commons/numbers/gamma/BoostBeta.java Avoid using Literals in Conditional Statements annotation
org/apache/commons/numbers/gamma/BoostBeta.java Avoid using Literals in Conditional Statements annotation
org/apache/commons/numbers/gamma/BoostBeta.java Avoid reassigning parameters such as 'a' annotation
org/apache/commons/numbers/gamma/BoostBeta.java Avoid reassigning parameters such as 'b' annotation
org/apache/commons/numbers/gamma/BoostBeta.java Avoid reassigning parameters such as 'x' annotation
org/apache/commons/numbers/gamma/BoostBeta.java Avoid reassigning parameters such as 's0' annotation
org/apache/commons/numbers/gamma/BoostBeta.java The method 'ibetaPowerTerms(double, double, double, double, boolean, double)' has a cyclomatic complexity of 26. annotation
org/apache/commons/numbers/gamma/BoostBeta.java The method 'betaIncompleteImp(double, double, double, Policy, boolean, boolean)' has a cyclomatic complexity of 78. annotation
org/apache/commons/numbers/gamma/BoostBeta.java The class 'BoostBeta' has a total cyclomatic complexity of 187 (highest 78). annotation
org/apache/commons/numbers/gamma/BoostBeta.java The method 'beta(double, double)' has an NPath complexity of 1440, current threshold is 200 annotation
org/apache/commons/numbers/gamma/BoostBeta.java The method 'ibetaDerivative(double, double, double)' has an NPath complexity of 270, current threshold is 200 annotation
org/apache/commons/numbers/gamma/BoostBeta.java The method 'betaIncompleteImp(double, double, double, Policy, boolean, boolean)' has an NPath complexity of 153446400, current threshold is 200 annotation
org/apache/commons/numbers/gamma/BoostBeta.java Avoid really long classes. annotation
org/apache/commons/numbers/gamma/BoostBeta.java Possible God Class (WMC=187, ATFD=37, TCC=0.362%) annotation
org/apache/commons/numbers/gamma/BoostBeta.java Avoid really long methods. annotation
org/apache/commons/numbers/gamma/BoostBeta.java Avoid really long methods. annotation
org/apache/commons/numbers/gamma/BoostErf.java The final local variable name 'Y' doesn't match '[a-z][a-zA-Z0-9]*' annotation
org/apache/commons/numbers/gamma/BoostErf.java The local variable name 'P' doesn't match '[a-z][a-zA-Z0-9]*' annotation
org/apache/commons/numbers/gamma/BoostErf.java The local variable name 'Q' doesn't match '[a-z][a-zA-Z0-9]*' annotation
org/apache/commons/numbers/gamma/BoostErf.java The final local variable name 'Y' doesn't match '[a-z][a-zA-Z0-9]*' annotation
org/apache/commons/numbers/gamma/BoostErf.java The local variable name 'P' doesn't match '[a-z][a-zA-Z0-9]*' annotation
org/apache/commons/numbers/gamma/BoostErf.java The local variable name 'Q' doesn't match '[a-z][a-zA-Z0-9]*' annotation
org/apache/commons/numbers/gamma/BoostErf.java The final local variable name 'Y' doesn't match '[a-z][a-zA-Z0-9]*' annotation
org/apache/commons/numbers/gamma/BoostErf.java The local variable name 'P' doesn't match '[a-z][a-zA-Z0-9]*' annotation
org/apache/commons/numbers/gamma/BoostErf.java The local variable name 'Q' doesn't match '[a-z][a-zA-Z0-9]*' annotation
org/apache/commons/numbers/gamma/BoostErf.java The final local variable name 'Y' doesn't match '[a-z][a-zA-Z0-9]*' annotation
org/apache/commons/numbers/gamma/BoostErf.java The local variable name 'P' doesn't match '[a-z][a-zA-Z0-9]*' annotation
org/apache/commons/numbers/gamma/BoostErf.java The local variable name 'Q' doesn't match '[a-z][a-zA-Z0-9]*' annotation
org/apache/commons/numbers/gamma/BoostErf.java The final local variable name 'Y' doesn't match '[a-z][a-zA-Z0-9]*' annotation
org/apache/commons/numbers/gamma/BoostErf.java The local variable name 'P' doesn't match '[a-z][a-zA-Z0-9]*' annotation
org/apache/commons/numbers/gamma/BoostErf.java The local variable name 'Q' doesn't match '[a-z][a-zA-Z0-9]*' annotation
org/apache/commons/numbers/gamma/BoostErf.java The final local variable name 'Y' doesn't match '[a-z][a-zA-Z0-9]*' annotation
org/apache/commons/numbers/gamma/BoostErf.java The local variable name 'P' doesn't match '[a-z][a-zA-Z0-9]*' annotation
org/apache/commons/numbers/gamma/BoostErf.java The local variable name 'Q' doesn't match '[a-z][a-zA-Z0-9]*' annotation
org/apache/commons/numbers/gamma/BoostErf.java The final local variable name 'Y' doesn't match '[a-z][a-zA-Z0-9]*' annotation
org/apache/commons/numbers/gamma/BoostErf.java The local variable name 'P' doesn't match '[a-z][a-zA-Z0-9]*' annotation
org/apache/commons/numbers/gamma/BoostErf.java The local variable name 'Q' doesn't match '[a-z][a-zA-Z0-9]*' annotation
org/apache/commons/numbers/gamma/BoostErf.java The final local variable name 'R' doesn't match '[a-z][a-zA-Z0-9]*' annotation
org/apache/commons/numbers/gamma/BoostErf.java The final local variable name 'Y' doesn't match '[a-z][a-zA-Z0-9]*' annotation
org/apache/commons/numbers/gamma/BoostErf.java The local variable name 'P' doesn't match '[a-z][a-zA-Z0-9]*' annotation
org/apache/commons/numbers/gamma/BoostErf.java The local variable name 'Q' doesn't match '[a-z][a-zA-Z0-9]*' annotation
org/apache/commons/numbers/gamma/BoostErf.java The final local variable name 'R' doesn't match '[a-z][a-zA-Z0-9]*' annotation
org/apache/commons/numbers/gamma/BoostErf.java The final local variable name 'Y' doesn't match '[a-z][a-zA-Z0-9]*' annotation
org/apache/commons/numbers/gamma/BoostErf.java The local variable name 'P' doesn't match '[a-z][a-zA-Z0-9]*' annotation
org/apache/commons/numbers/gamma/BoostErf.java The local variable name 'Q' doesn't match '[a-z][a-zA-Z0-9]*' annotation
org/apache/commons/numbers/gamma/BoostErf.java The final local variable name 'R' doesn't match '[a-z][a-zA-Z0-9]*' annotation
org/apache/commons/numbers/gamma/BoostErf.java The final local variable name 'Y' doesn't match '[a-z][a-zA-Z0-9]*' annotation
org/apache/commons/numbers/gamma/BoostErf.java The local variable name 'P' doesn't match '[a-z][a-zA-Z0-9]*' annotation
org/apache/commons/numbers/gamma/BoostErf.java The local variable name 'Q' doesn't match '[a-z][a-zA-Z0-9]*' annotation
org/apache/commons/numbers/gamma/BoostErf.java The final local variable name 'R' doesn't match '[a-z][a-zA-Z0-9]*' annotation
org/apache/commons/numbers/gamma/BoostErf.java Avoid using Literals in Conditional Statements annotation
org/apache/commons/numbers/gamma/BoostErf.java Avoid using Literals in Conditional Statements annotation
org/apache/commons/numbers/gamma/BoostErf.java Avoid using Literals in Conditional Statements annotation
org/apache/commons/numbers/gamma/BoostErf.java Avoid using Literals in Conditional Statements annotation
org/apache/commons/numbers/gamma/BoostErf.java Avoid using Literals in Conditional Statements annotation
org/apache/commons/numbers/gamma/BoostErf.java Avoid using Literals in Conditional Statements annotation
org/apache/commons/numbers/gamma/BoostErf.java Avoid using Literals in Conditional Statements annotation
org/apache/commons/numbers/gamma/BoostErf.java Avoid using Literals in Conditional Statements annotation
org/apache/commons/numbers/gamma/BoostErf.java Avoid using Literals in Conditional Statements annotation
org/apache/commons/numbers/gamma/BoostErf.java Avoid reassigning parameters such as 'invert' annotation
org/apache/commons/numbers/gamma/BoostErf.java Avoid if (x != y) ..; else ..; annotation
org/apache/commons/numbers/gamma/BoostErf.java Avoid really long methods. annotation
org/apache/commons/numbers/gamma/BoostErf.java Avoid really long methods. annotation
org/apache/commons/numbers/gamma/BoostGamma.java The local variable name 'P' doesn't match '[a-z][a-zA-Z0-9]*' annotation
org/apache/commons/numbers/gamma/BoostGamma.java The local variable name 'Q' doesn't match '[a-z][a-zA-Z0-9]*' annotation
org/apache/commons/numbers/gamma/BoostGamma.java The final local variable name 'Y' doesn't match '[a-z][a-zA-Z0-9]*' annotation
org/apache/commons/numbers/gamma/BoostGamma.java The final local variable name 'R' doesn't match '[a-z][a-zA-Z0-9]*' annotation
org/apache/commons/numbers/gamma/BoostGamma.java The final local variable name 'Y' doesn't match '[a-z][a-zA-Z0-9]*' annotation
org/apache/commons/numbers/gamma/BoostGamma.java The local variable name 'P' doesn't match '[a-z][a-zA-Z0-9]*' annotation
org/apache/commons/numbers/gamma/BoostGamma.java The local variable name 'Q' doesn't match '[a-z][a-zA-Z0-9]*' annotation
org/apache/commons/numbers/gamma/BoostGamma.java The final local variable name 'Y' doesn't match '[a-z][a-zA-Z0-9]*' annotation
org/apache/commons/numbers/gamma/BoostGamma.java The local variable name 'P' doesn't match '[a-z][a-zA-Z0-9]*' annotation
org/apache/commons/numbers/gamma/BoostGamma.java The local variable name 'Q' doesn't match '[a-z][a-zA-Z0-9]*' annotation
org/apache/commons/numbers/gamma/BoostGamma.java The final local variable name 'R' doesn't match '[a-z][a-zA-Z0-9]*' annotation
org/apache/commons/numbers/gamma/BoostGamma.java The final local variable name 'C0' doesn't match '[a-z][a-zA-Z0-9]*' annotation
org/apache/commons/numbers/gamma/BoostGamma.java The final local variable name 'C1' doesn't match '[a-z][a-zA-Z0-9]*' annotation
org/apache/commons/numbers/gamma/BoostGamma.java The final local variable name 'C2' doesn't match '[a-z][a-zA-Z0-9]*' annotation
org/apache/commons/numbers/gamma/BoostGamma.java The final local variable name 'C3' doesn't match '[a-z][a-zA-Z0-9]*' annotation
org/apache/commons/numbers/gamma/BoostGamma.java The final local variable name 'C4' doesn't match '[a-z][a-zA-Z0-9]*' annotation
org/apache/commons/numbers/gamma/BoostGamma.java The final local variable name 'C5' doesn't match '[a-z][a-zA-Z0-9]*' annotation
org/apache/commons/numbers/gamma/BoostGamma.java The final local variable name 'C6' doesn't match '[a-z][a-zA-Z0-9]*' annotation
org/apache/commons/numbers/gamma/BoostGamma.java The final local variable name 'C7' doesn't match '[a-z][a-zA-Z0-9]*' annotation
org/apache/commons/numbers/gamma/BoostGamma.java The final local variable name 'C8' doesn't match '[a-z][a-zA-Z0-9]*' annotation
org/apache/commons/numbers/gamma/BoostGamma.java Avoid using Literals in Conditional Statements annotation
org/apache/commons/numbers/gamma/BoostGamma.java Avoid using Literals in Conditional Statements annotation
org/apache/commons/numbers/gamma/BoostGamma.java Avoid using Literals in Conditional Statements annotation
org/apache/commons/numbers/gamma/BoostGamma.java Avoid using Literals in Conditional Statements annotation
org/apache/commons/numbers/gamma/BoostGamma.java Avoid using Literals in Conditional Statements annotation
org/apache/commons/numbers/gamma/BoostGamma.java Avoid using Literals in Conditional Statements annotation
org/apache/commons/numbers/gamma/BoostGamma.java Avoid using Literals in Conditional Statements annotation
org/apache/commons/numbers/gamma/BoostGamma.java Avoid using Literals in Conditional Statements annotation
org/apache/commons/numbers/gamma/BoostGamma.java Avoid using Literals in Conditional Statements annotation
org/apache/commons/numbers/gamma/BoostGamma.java Avoid using Literals in Conditional Statements annotation
org/apache/commons/numbers/gamma/BoostGamma.java Avoid using Literals in Conditional Statements annotation
org/apache/commons/numbers/gamma/BoostGamma.java Avoid using Literals in Conditional Statements annotation
org/apache/commons/numbers/gamma/BoostGamma.java Avoid using Literals in Conditional Statements annotation
org/apache/commons/numbers/gamma/BoostGamma.java Avoid using Literals in Conditional Statements annotation
org/apache/commons/numbers/gamma/BoostGamma.java Avoid using Literals in Conditional Statements annotation
org/apache/commons/numbers/gamma/BoostGamma.java Avoid using Literals in Conditional Statements annotation
org/apache/commons/numbers/gamma/BoostGamma.java Avoid reassigning parameters such as 'x' annotation
org/apache/commons/numbers/gamma/BoostGamma.java Avoid reassigning parameters such as 'z' annotation
org/apache/commons/numbers/gamma/BoostGamma.java Avoid reassigning parameters such as 'z' annotation
org/apache/commons/numbers/gamma/BoostGamma.java Avoid reassigning parameters such as 'zm1' annotation
org/apache/commons/numbers/gamma/BoostGamma.java Avoid reassigning parameters such as 'zm2' annotation
org/apache/commons/numbers/gamma/BoostGamma.java Avoid reassigning parameters such as 'invert' annotation
org/apache/commons/numbers/gamma/BoostGamma.java Avoid reassigning parameters such as 'z' annotation
org/apache/commons/numbers/gamma/BoostGamma.java Avoid reassigning parameters such as 'x' annotation
org/apache/commons/numbers/gamma/BoostGamma.java Avoid reassigning parameters such as 'y' annotation
org/apache/commons/numbers/gamma/BoostGamma.java The method 'gammaIncompleteImp(double, double, boolean, boolean, Policy)' has a cyclomatic complexity of 66. annotation
org/apache/commons/numbers/gamma/BoostGamma.java The method 'regularisedGammaPrefix(double, double)' has a cyclomatic complexity of 20. annotation
org/apache/commons/numbers/gamma/BoostGamma.java The class 'BoostGamma' has a total cyclomatic complexity of 200 (highest 66). annotation
org/apache/commons/numbers/gamma/BoostGamma.java The method 'tgamma(double)' has an NPath complexity of 210, current threshold is 200 annotation
org/apache/commons/numbers/gamma/BoostGamma.java The method 'gammaIncompleteImp(double, double, boolean, boolean, Policy)' has an NPath complexity of 1992600, current threshold is 200 annotation
org/apache/commons/numbers/gamma/BoostGamma.java The method 'regularisedGammaPrefix(double, double)' has an NPath complexity of 1080, current threshold is 200 annotation
org/apache/commons/numbers/gamma/BoostGamma.java The method 'tgammaDeltaRatio(double, double)' has an NPath complexity of 342, current threshold is 200 annotation
org/apache/commons/numbers/gamma/BoostGamma.java The method 'tgammaRatio(double, double)' has an NPath complexity of 480, current threshold is 200 annotation
org/apache/commons/numbers/gamma/BoostGamma.java Avoid really long classes. annotation
org/apache/commons/numbers/gamma/BoostGamma.java Possible God Class (WMC=200, ATFD=51, TCC=4.278%) annotation
org/apache/commons/numbers/gamma/BoostGamma.java Avoid really long methods. annotation
org/apache/commons/numbers/gamma/BoostGamma.java Avoid really long methods. annotation
org/apache/commons/numbers/gamma/BoostGamma.java Avoid really long methods. annotation
org/apache/commons/numbers/gamma/BoostGamma.java Avoid really long methods. annotation
org/apache/commons/numbers/gamma/BoostGamma.java Avoid really long methods. annotation
org/apache/commons/numbers/gamma/BoostMath.java Avoid using Literals in Conditional Statements annotation
org/apache/commons/numbers/gamma/InvGamma1pm1.java Avoid using Literals in Conditional Statements annotation
org/apache/commons/numbers/gamma/InvGamma1pm1.java Avoid using Literals in Conditional Statements annotation
org/apache/commons/numbers/gamma/LanczosApproximation.java Avoid using short method names annotation
org/apache/commons/numbers/gamma/LogGammaSum.java Avoid using Literals in Conditional Statements annotation
org/apache/commons/numbers/gamma/LogGammaSum.java Avoid using Literals in Conditional Statements annotation