Rule |
Violation |
Priority |
Line |
ExcessivePublicCount |
This class has a bunch of public methods and attributes |
3 |
17–4245 |
GodClass |
Possible God Class (WMC=490, ATFD=178, TCC=3.803%) |
3 |
67–4245 |
CyclomaticComplexity |
The class 'AccurateMath' has a total cyclomatic complexity of 490 (highest 39). |
3 |
67–4245 |
UseShortArrayInitializer |
Array initialization can be written shorter |
3 |
247–265 |
UseShortArrayInitializer |
Array initialization can be written shorter |
3 |
268–270 |
AvoidLiteralsInIfCondition |
Avoid using Literals in Conditional Statements |
3 |
392 |
AvoidLiteralsInIfCondition |
Avoid using Literals in Conditional Statements |
3 |
411 |
AvoidReassigningParameters |
Avoid reassigning parameters such as 'x' |
2 |
412 |
LocalVariableCouldBeFinal |
Local variable 'yaa' could be declared final |
3 |
420 |
LocalVariableCouldBeFinal |
Local variable 'yab' could be declared final |
3 |
421 |
LocalVariableCouldBeFinal |
Local variable 'recip' could be declared final |
3 |
424 |
LocalVariableCouldBeFinal |
Local variable 'recipa' could be declared final |
3 |
426 |
PrematureDeclaration |
Avoid declaring a variable if it is unreferenced before a possible exit point. |
3 |
452 |
AvoidLiteralsInIfCondition |
Avoid using Literals in Conditional Statements |
3 |
462 |
AvoidLiteralsInIfCondition |
Avoid using Literals in Conditional Statements |
3 |
484 |
AvoidReassigningParameters |
Avoid reassigning parameters such as 'x' |
2 |
485 |
AvoidLiteralsInIfCondition |
Avoid using Literals in Conditional Statements |
3 |
491 |
LocalVariableCouldBeFinal |
Local variable 'hiPrec' could be declared final |
3 |
492 |
LocalVariableCouldBeFinal |
Local variable 'yaa' could be declared final |
3 |
499 |
LocalVariableCouldBeFinal |
Local variable 'yab' could be declared final |
3 |
500 |
LocalVariableCouldBeFinal |
Local variable 'recip' could be declared final |
3 |
503 |
LocalVariableCouldBeFinal |
Local variable 'hiPrec' could be declared final |
3 |
527 |
LocalVariableCouldBeFinal |
Local variable 'denom' could be declared final |
3 |
534 |
LocalVariableCouldBeFinal |
Local variable 'denomr' could be declared final |
3 |
535 |
LocalVariableCouldBeFinal |
Local variable 'denomb' could be declared final |
3 |
536 |
LocalVariableCouldBeFinal |
Local variable 'ratio' could be declared final |
3 |
537 |
LocalVariableCouldBeFinal |
Local variable 'ra' could be declared final |
3 |
539 |
LocalVariableCouldBeFinal |
Local variable 'za' could be declared final |
3 |
543 |
LocalVariableCouldBeFinal |
Local variable 'zb' could be declared final |
3 |
544 |
PrematureDeclaration |
Avoid declaring a variable if it is unreferenced before a possible exit point. |
3 |
576 |
AvoidLiteralsInIfCondition |
Avoid using Literals in Conditional Statements |
3 |
588 |
AvoidLiteralsInIfCondition |
Avoid using Literals in Conditional Statements |
3 |
600 |
AvoidReassigningParameters |
Avoid reassigning parameters such as 'x' |
2 |
601 |
AvoidLiteralsInIfCondition |
Avoid using Literals in Conditional Statements |
3 |
606 |
LocalVariableCouldBeFinal |
Local variable 'hiPrec' could be declared final |
3 |
607 |
LocalVariableCouldBeFinal |
Local variable 'ya' could be declared final |
3 |
611 |
LocalVariableCouldBeFinal |
Local variable 'yb' could be declared final |
3 |
612 |
LocalVariableCouldBeFinal |
Local variable 'daa' could be declared final |
3 |
629 |
LocalVariableCouldBeFinal |
Local variable 'dab' could be declared final |
3 |
630 |
LocalVariableCouldBeFinal |
Local variable 'ratio' could be declared final |
3 |
633 |
LocalVariableCouldBeFinal |
Local variable 'ratioa' could be declared final |
3 |
635 |
LocalVariableCouldBeFinal |
Local variable 'hiPrec' could be declared final |
3 |
648 |
LocalVariableCouldBeFinal |
Local variable 'ya' could be declared final |
3 |
652 |
LocalVariableCouldBeFinal |
Local variable 'yb' could be declared final |
3 |
653 |
LocalVariableCouldBeFinal |
Local variable 'na' could be declared final |
3 |
656 |
LocalVariableCouldBeFinal |
Local variable 'nb' could be declared final |
3 |
657 |
LocalVariableCouldBeFinal |
Local variable 'daa' could be declared final |
3 |
667 |
LocalVariableCouldBeFinal |
Local variable 'dab' could be declared final |
3 |
668 |
LocalVariableCouldBeFinal |
Local variable 'ratio' could be declared final |
3 |
671 |
LocalVariableCouldBeFinal |
Local variable 'ratioa' could be declared final |
3 |
673 |
AvoidReassigningParameters |
Avoid reassigning parameters such as 'a' |
2 |
710 |
AvoidLiteralsInIfCondition |
Avoid using Literals in Conditional Statements |
3 |
714 |
AvoidLiteralsInIfCondition |
Avoid using Literals in Conditional Statements |
3 |
718 |
AvoidLiteralsInIfCondition |
Avoid using Literals in Conditional Statements |
3 |
720 |
AvoidLiteralsInIfCondition |
Avoid using Literals in Conditional Statements |
3 |
722 |
AvoidReassigningParameters |
Avoid reassigning parameters such as 'a' |
2 |
740 |
AvoidLiteralsInIfCondition |
Avoid using Literals in Conditional Statements |
3 |
744 |
AvoidLiteralsInIfCondition |
Avoid using Literals in Conditional Statements |
3 |
748 |
AvoidLiteralsInIfCondition |
Avoid using Literals in Conditional Statements |
3 |
750 |
AvoidLiteralsInIfCondition |
Avoid using Literals in Conditional Statements |
3 |
752 |
NPathComplexity |
The method 'exp(double, double, double)' has an NPath complexity of 240, current threshold is 200 |
3 |
845–961 |
CognitiveComplexity |
The method 'exp(double, double, double)' has a cognitive complexity of 28, current threshold is 15 |
3 |
845–961 |
PrematureDeclaration |
Avoid declaring a variable if it is unreferenced before a possible exit point. |
3 |
846 |
PrematureDeclaration |
Avoid declaring a variable if it is unreferenced before a possible exit point. |
3 |
847 |
AvoidLiteralsInIfCondition |
Avoid using Literals in Conditional Statements |
3 |
854 |
AvoidLiteralsInIfCondition |
Avoid using Literals in Conditional Statements |
3 |
888 |
LocalVariableCouldBeFinal |
Local variable 'tempA' could be declared final |
3 |
932 |
LocalVariableCouldBeFinal |
Local variable 'tempB' could be declared final |
3 |
933 |
AvoidLiteralsInIfCondition |
Avoid using Literals in Conditional Statements |
3 |
948 |
ConfusingTernary |
Avoid if (x != y) ..; else ..; |
3 |
948–952 |
LocalVariableCouldBeFinal |
Local variable 'hiPrec' could be declared final |
3 |
985 |
AvoidLiteralsInIfCondition |
Avoid using Literals in Conditional Statements |
3 |
987 |
AvoidLiteralsInIfCondition |
Avoid using Literals in Conditional Statements |
3 |
1002 |
AvoidReassigningParameters |
Avoid reassigning parameters such as 'x' |
2 |
1003 |
LocalVariableCouldBeFinal |
Local variable 'intFrac' could be declared final |
3 |
1007 |
LocalVariableCouldBeFinal |
Local variable 'denom' could be declared final |
3 |
1078 |
LocalVariableCouldBeFinal |
Local variable 'denomr' could be declared final |
3 |
1079 |
LocalVariableCouldBeFinal |
Local variable 'denomb' could be declared final |
3 |
1080 |
LocalVariableCouldBeFinal |
Local variable 'ratio' could be declared final |
3 |
1081 |
NPathComplexity |
The method 'log(double, double)' has an NPath complexity of 8820, current threshold is 200 |
3 |
1133–1353 |
CyclomaticComplexity |
The method 'log(double, double)' has a cyclomatic complexity of 21. |
3 |
1133–1353 |
CognitiveComplexity |
The method 'log(double, double)' has a cognitive complexity of 27, current threshold is 15 |
3 |
1133–1353 |
UnusedAssignment |
The initializer for variable 'xb' is never used (overwritten on line 1191) |
3 |
1186 |
LocalVariableNamingConventions |
The final local variable name 'lnCoef_last' doesn't match '[a-z][a-zA-Z0-9]*' |
1 |
1193 |
LocalVariableNamingConventions |
The final local variable name 'lnCoef_i' doesn't match '[a-z][a-zA-Z0-9]*' |
1 |
1207 |
UnusedAssignment |
The initializer for variable 'lnza' is never used (overwritten on lines 1292 and 1297) |
3 |
1241 |
LocalVariableCouldBeFinal |
Local variable 'xa' could be declared final |
3 |
1249 |
LocalVariableNamingConventions |
The final local variable name 'lnCoef_last' doesn't match '[a-z][a-zA-Z0-9]*' |
1 |
1259 |
LocalVariableNamingConventions |
The final local variable name 'lnCoef_i' doesn't match '[a-z][a-zA-Z0-9]*' |
1 |
1273 |
PrematureDeclaration |
Avoid declaring a variable if it is unreferenced before a possible exit point. |
3 |
1373 |
CognitiveComplexity |
The method 'pow(double, double)' has a cognitive complexity of 74, current threshold is 15 |
3 |
1442–1572 |
CyclomaticComplexity |
The method 'pow(double, double)' has a cyclomatic complexity of 23. |
3 |
1442–1572 |
AvoidLiteralsInIfCondition |
Avoid using Literals in Conditional Statements |
3 |
1456 |
AvoidLiteralsInIfCondition |
Avoid using Literals in Conditional Statements |
3 |
1465 |
AvoidLiteralsInIfCondition |
Avoid using Literals in Conditional Statements |
3 |
1491 |
AvoidLiteralsInIfCondition |
Avoid using Literals in Conditional Statements |
3 |
1494 |
AvoidLiteralsInIfCondition |
Avoid using Literals in Conditional Statements |
3 |
1516 |
PrematureDeclaration |
Avoid declaring a variable if it is unreferenced before a possible exit point. |
3 |
1534 |
UnnecessaryLocalBeforeReturn |
Consider simply returning the value vs storing it in local variable 'result' |
3 |
1568 |
LocalVariableCouldBeFinal |
Local variable 'x2' could be declared final |
3 |
1734 |
LocalVariableCouldBeFinal |
Local variable 'x2' could be declared final |
3 |
1754 |
LocalVariableCouldBeFinal |
Local variable 'idx' could be declared final |
3 |
1773 |
LocalVariableCouldBeFinal |
Local variable 'temp2' could be declared final |
3 |
1790 |
AvoidLiteralsInIfCondition |
Avoid using Literals in Conditional Statements |
3 |
1875 |
LocalVariableCouldBeFinal |
Local variable 'idx' could be declared final |
3 |
1917 |
LocalVariableCouldBeFinal |
Local variable 'temp2' could be declared final |
3 |
1934 |
UnusedAssignment |
The value assigned to variable 'c' is never used (overwritten on line 1988) |
3 |
1985 |
UnusedAssignment |
The value assigned to variable 'd' is never used (overwritten on line 1989) |
3 |
1985 |
LocalVariableCouldBeFinal |
Local variable 'est' could be declared final |
3 |
2022 |
LocalVariableCouldBeFinal |
Local variable 'esta' could be declared final |
3 |
2026 |
LocalVariableCouldBeFinal |
Local variable 'estb' could be declared final |
3 |
2027 |
LocalVariableCouldBeFinal |
Local variable 'cosaa' could be declared final |
3 |
2030 |
LocalVariableCouldBeFinal |
Local variable 'cosab' could be declared final |
3 |
2031 |
AvoidLiteralsInIfCondition |
Avoid using Literals in Conditional Statements |
3 |
2038 |
NPathComplexity |
The method 'reducePayneHanek(double, double)' has an NPath complexity of 1119744, current threshold is 200 |
3 |
2063–2272 |
CognitiveComplexity |
The method 'reducePayneHanek(double, double)' has a cognitive complexity of 34, current threshold is 15 |
3 |
2063–2272 |
CyclomaticComplexity |
The method 'reducePayneHanek(double, double)' has a cyclomatic complexity of 39. |
3 |
2063–2272 |
LocalVariableCouldBeFinal |
Local variable 'idx' could be declared final |
3 |
2080 |
LocalVariableCouldBeFinal |
Local variable 'shift' could be declared final |
3 |
2081 |
ConfusingTernary |
Avoid if (x != y) ..; else ..; |
3 |
2083–2092 |
LocalVariableCouldBeFinal |
Local variable 'intPart' could be declared final |
3 |
2173 |
LocalVariableCouldBeFinal |
Local variable 'tmpA' could be declared final |
3 |
2262 |
LocalVariableCouldBeFinal |
Local variable 'tmpB' could be declared final |
3 |
2263 |
LocalVariableCouldBeFinal |
Local variable 'sumA' could be declared final |
3 |
2265 |
LocalVariableCouldBeFinal |
Local variable 'sumB' could be declared final |
3 |
2266 |
NPathComplexity |
The method 'sin(double)' has an NPath complexity of 540, current threshold is 200 |
3 |
2280–2339 |
PrematureDeclaration |
Avoid declaring a variable if it is unreferenced before a possible exit point. |
3 |
2282 |
PrematureDeclaration |
Avoid declaring a variable if it is unreferenced before a possible exit point. |
3 |
2284 |
AvoidLiteralsInIfCondition |
Avoid using Literals in Conditional Statements |
3 |
2294 |
LocalVariableCouldBeFinal |
Local variable 'bits' could be declared final |
3 |
2295 |
AvoidLiteralsInIfCondition |
Avoid using Literals in Conditional Statements |
3 |
2307 |
LocalVariableCouldBeFinal |
Local variable 'reduceResults' could be declared final |
3 |
2311 |
AvoidLiteralsInIfCondition |
Avoid using Literals in Conditional Statements |
3 |
2316 |
PrematureDeclaration |
Avoid declaring a variable if it is unreferenced before a possible exit point. |
3 |
2348 |
AvoidLiteralsInIfCondition |
Avoid using Literals in Conditional Statements |
3 |
2362 |
LocalVariableCouldBeFinal |
Local variable 'reduceResults' could be declared final |
3 |
2366 |
AvoidLiteralsInIfCondition |
Avoid using Literals in Conditional Statements |
3 |
2371 |
NPathComplexity |
The method 'tan(double)' has an NPath complexity of 432, current threshold is 200 |
3 |
2401–2470 |
PrematureDeclaration |
Avoid declaring a variable if it is unreferenced before a possible exit point. |
3 |
2403 |
AvoidLiteralsInIfCondition |
Avoid using Literals in Conditional Statements |
3 |
2413 |
LocalVariableCouldBeFinal |
Local variable 'bits' could be declared final |
3 |
2414 |
AvoidLiteralsInIfCondition |
Avoid using Literals in Conditional Statements |
3 |
2427 |
LocalVariableCouldBeFinal |
Local variable 'reduceResults' could be declared final |
3 |
2431 |
AvoidLiteralsInIfCondition |
Avoid using Literals in Conditional Statements |
3 |
2436 |
AvoidLiteralsInIfCondition |
Avoid using Literals in Conditional Statements |
3 |
2443 |
NPathComplexity |
The method 'atan(double, double, boolean)' has an NPath complexity of 288, current threshold is 200 |
3 |
2487–2632 |
AvoidLiteralsInIfCondition |
Avoid using Literals in Conditional Statements |
3 |
2488 |
AvoidReassigningParameters |
Avoid reassigning parameters such as 'xa' |
2 |
2495 |
AvoidReassigningParameters |
Avoid reassigning parameters such as 'xb' |
2 |
2496 |
AvoidLiteralsInIfCondition |
Avoid using Literals in Conditional Statements |
3 |
2502 |
NPathComplexity |
The method 'atan2(double, double)' has an NPath complexity of 81000, current threshold is 200 |
3 |
2640–2726 |
CognitiveComplexity |
The method 'atan2(double, double)' has a cognitive complexity of 32, current threshold is 15 |
3 |
2640–2726 |
CyclomaticComplexity |
The method 'atan2(double, double)' has a cyclomatic complexity of 22. |
3 |
2640–2726 |
AvoidLiteralsInIfCondition |
Avoid using Literals in Conditional Statements |
3 |
2741 |
AvoidLiteralsInIfCondition |
Avoid using Literals in Conditional Statements |
3 |
2749 |
LocalVariableCouldBeFinal |
Local variable 'dx' could be declared final |
3 |
2786 |
LocalVariableCouldBeFinal |
Local variable 'r' could be declared final |
3 |
2789 |
AvoidLiteralsInIfCondition |
Avoid using Literals in Conditional Statements |
3 |
2821 |
LocalVariableCouldBeFinal |
Local variable 'r' could be declared final |
3 |
2866 |
AvoidReassigningParameters |
Avoid reassigning parameters such as 'x' |
2 |
2903 |
AvoidLiteralsInIfCondition |
Avoid using Literals in Conditional Statements |
3 |
2908 |
LocalVariableCouldBeFinal |
Local variable 'exp3' could be declared final |
3 |
2914 |
LocalVariableCouldBeFinal |
Local variable 'p2' could be declared final |
3 |
2917 |
LocalVariableCouldBeFinal |
Local variable 'ya' could be declared final |
3 |
2940 |
LocalVariableCouldBeFinal |
Local variable 'yb' could be declared final |
3 |
2941 |
LocalVariableCouldBeFinal |
Local variable 'temp2' could be declared final |
3 |
2946 |
LocalVariableCouldBeFinal |
Local variable 'na' could be declared final |
3 |
2953 |
LocalVariableCouldBeFinal |
Local variable 'xa' could be declared final |
3 |
2983 |
LocalVariableCouldBeFinal |
Local variable 'xb' could be declared final |
3 |
2984 |
LocalVariableCouldBeFinal |
Local variable 'xa' could be declared final |
3 |
3007 |
LocalVariableCouldBeFinal |
Local variable 'xb' could be declared final |
3 |
3008 |
CognitiveComplexity |
The method 'scalb(double, int)' has a cognitive complexity of 42, current threshold is 15 |
3 |
3085–3158 |
NPathComplexity |
The method 'scalb(double, int)' has an NPath complexity of 1512, current threshold is 200 |
3 |
3085–3158 |
CyclomaticComplexity |
The method 'scalb(double, int)' has a cyclomatic complexity of 21. |
3 |
3085–3158 |
AvoidLiteralsInIfCondition |
Avoid using Literals in Conditional Statements |
3 |
3099 |
LocalVariableCouldBeFinal |
Local variable 'exponent' could be declared final |
3 |
3106 |
AvoidLiteralsInIfCondition |
Avoid using Literals in Conditional Statements |
3 |
3147 |
AvoidLiteralsInIfCondition |
Avoid using Literals in Conditional Statements |
3 |
3152 |
CognitiveComplexity |
The method 'scalb(float, int)' has a cognitive complexity of 42, current threshold is 15 |
3 |
3166–3239 |
CyclomaticComplexity |
The method 'scalb(float, int)' has a cyclomatic complexity of 21. |
3 |
3166–3239 |
NPathComplexity |
The method 'scalb(float, int)' has an NPath complexity of 1512, current threshold is 200 |
3 |
3166–3239 |
AvoidLiteralsInIfCondition |
Avoid using Literals in Conditional Statements |
3 |
3180 |
LocalVariableCouldBeFinal |
Local variable 'exponent' could be declared final |
3 |
3187 |
AvoidLiteralsInIfCondition |
Avoid using Literals in Conditional Statements |
3 |
3228 |
AvoidLiteralsInIfCondition |
Avoid using Literals in Conditional Statements |
3 |
3233 |
AvoidLiteralsInIfCondition |
Avoid using Literals in Conditional Statements |
3 |
3337 |
PrematureDeclaration |
Avoid declaring a variable if it is unreferenced before a possible exit point. |
3 |
3357 |
PrematureDeclaration |
Avoid declaring a variable if it is unreferenced before a possible exit point. |
3 |
3384 |
LocalVariableCouldBeFinal |
Local variable 'y' could be declared final |
3 |
3409 |
LocalVariableCouldBeFinal |
Local variable 'd' could be declared final |
3 |
3410 |
AvoidLiteralsInIfCondition |
Avoid using Literals in Conditional Statements |
3 |
3412 |
AvoidLiteralsInIfCondition |
Avoid using Literals in Conditional Statements |
3 |
3418 |
LocalVariableCouldBeFinal |
Local variable 'z' could be declared final |
3 |
3423 |
LocalVariableCouldBeFinal |
Local variable 'bits' could be declared final |
3 |
3515 |
AvoidLiteralsInIfCondition |
Avoid using Literals in Conditional Statements |
3 |
3516 |
LocalVariableCouldBeFinal |
Local variable 'bits' could be declared final |
3 |
3540 |
AvoidLiteralsInIfCondition |
Avoid using Literals in Conditional Statements |
3 |
3541 |
LocalVariableCouldBeFinal |
Local variable 'bits' could be declared final |
3 |
3583 |
AvoidLiteralsInIfCondition |
Avoid using Literals in Conditional Statements |
3 |
3584 |
LocalVariableCouldBeFinal |
Local variable 'bits' could be declared final |
3 |
3608 |
AvoidLiteralsInIfCondition |
Avoid using Literals in Conditional Statements |
3 |
3609 |
MethodNamingConventions |
The static method name 'IEEEremainder' doesn't match '[a-z][a-zA-Z0-9]*' |
1 |
3678–3692 |
AvoidLiteralsInIfCondition |
Avoid using Literals in Conditional Statements |
3 |
3924 |
AvoidLiteralsInIfCondition |
Avoid using Literals in Conditional Statements |
3 |
3980 |
LocalVariableCouldBeFinal |
Local variable 'out' could be declared final |
3 |
4070 |
CloseResource |
Ensure that resources like this PrintStream object are closed after use |
3 |
4070 |
ClassNamingConventions |
The class name 'lnMant' doesn't match '[A-Z][a-zA-Z0-9]*' |
1 |
4157–4174 |