Showing 89 of 93 total issues
Function _extended_euclidean_algorithm
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function _extended_euclidean_algorithm(r, a, ai, aj, b, bi, bj) {
assert(r >= 2);
assert(ai >= 0 && aj <= a.length);
assert(bi >= 0 && bj <= b.length);
assert(aj - ai <= 0 || a[ai] !== 0);
Function _sub
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function _sub(r, a, ai, aj, b, bi, bj, c, ci, cj) {
assert(r >= 2);
assert(ai >= 0 && aj <= a.length);
assert(bi >= 0 && bj <= b.length);
assert(ci >= 0 && cj <= c.length);
Function _convert_to_smaller_slow
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
export default function _convert_to_smaller_slow(f, t, a, ai, aj, b, bi, bj) {
Function _mul_limb
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
export default function _mul_limb(r, x, b, bi, bj, c, ci, cj) {
Function _idivmod_limb_with_prefix
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
export default function _idivmod_limb_with_prefix(r, tmp, d, D, Di, Dj, Q, Qi) {
Function _convert
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
export default function _convert(f, t, a, ai, aj, b, bi, bj) {
Function _convert_slow
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
export default function _convert_slow(f, t, a, ai, aj, b, bi, bj) {
Function _convert_to_smaller_fast
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
export default function _convert_to_smaller_fast(br, z, a, ai, aj, b, bi, bj) {
Function _convert_to_larger_fast
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
export default function _convert_to_larger_fast(ar, z, a, ai, aj, b, bi, bj) {
Function _convert_to_larger_slow
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
export default function _convert_to_larger_slow(f, t, a, ai, aj, b, bi, bj) {
Function _div_limb_with_prefix
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
export default function _div_limb_with_prefix(r, tmp, d, D, Di, Dj, Q, Qi) {
Function _convert_to_larger
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
export default function _convert_to_larger(f, t, a, ai, aj, b, bi, bj) {
Function _pow_double_recursive
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
export default function _pow_double_recursive(r, x, a, ai, aj, c, ci, cj) {
Function _convert_to_smaller
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
export default function _convert_to_smaller(f, t, a, ai, aj, b, bi, bj) {
Function _pow_double
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
export default function _pow_double(r, x, a, ai, aj, c, ci, cj) {
Function _pow_double
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
Open
export default function _pow_double(r, x, a, ai, aj, c, ci, cj) {
assert(r >= 2);
assert(x >= 0);
assert(ai >= 0 && aj <= a.length);
assert(ci >= 0 && cj <= c.length);
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function _imod_schoolbook_subroutine_do
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
r,
a,
ai,
aj,
b,
Function _isub
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
export default function _isub(r, a, ai, aj, b, bi, bj) {
Function _imod_schoolbook
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
export default function _imod_schoolbook(r, a, ai, aj, b, bi, bj) {
Function _extended_euclidean_algorithm
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
export default function _extended_euclidean_algorithm(r, a, ai, aj, b, bi, bj) {