aureooms/js-integer-big-endian

View on GitHub

Showing 93 of 93 total issues

Function stringify has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

export default function stringify(f, t, a, ai, aj) {
Severity: Minor
Found in src/api/convert/stringify.js - About 35 mins to fix

    Function _cmp_n has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    export default function _cmp_n(a, ai, aj, b, bi) {
    Severity: Minor
    Found in src/core/compare/_cmp_n.js - About 35 mins to fix

      Function convert has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

      export default function convert(f, t, a, ai, aj) {
      Severity: Minor
      Found in src/api/convert/convert.js - About 35 mins to fix

        Function _mod_limb has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

        export default function _mod_limb(r, d, D, Di, Dj) {
        Severity: Minor
        Found in src/core/arithmetic/div/_mod_limb.js - About 35 mins to fix

          Function _imod_limb has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

          export default function _imod_limb(r, d, D, Di, Dj) {
          Severity: Minor
          Found in src/core/arithmetic/div/_imod_limb.js - About 35 mins to fix

            Function _iadd_limb has 5 arguments (exceeds 4 allowed). Consider refactoring.
            Open

            export default function _iadd_limb(r, x, a, ai, aj) {
            Severity: Minor
            Found in src/core/arithmetic/add/_iadd_limb.js - About 35 mins to fix

              Function _copy has 5 arguments (exceeds 4 allowed). Consider refactoring.
              Open

              export default function _copy(a, ai, aj, b, bi) {
              Severity: Minor
              Found in src/core/array/_copy.js - About 35 mins to fix

                Function _convert_to_larger_fast has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                Open

                export default function _convert_to_larger_fast(ar, z, a, ai, aj, b, bi, bj) {
                    assert(ar >= 2);
                    assert(ai >= 0 && aj <= a.length);
                    assert(bi >= 0 && bj <= b.length);
                    assert(aj - ai >= 0);
                Severity: Minor
                Found in src/core/convert/_convert_to_larger_fast.js - About 35 mins to fix

                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 _sub has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                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);
                Severity: Minor
                Found in src/core/arithmetic/sub/_sub.js - About 35 mins to fix

                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 _convert_to_smaller_fast has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                Open

                export default function _convert_to_smaller_fast(br, z, a, ai, aj, b, bi, bj) {
                    assert(br >= 2);
                    assert(ai >= 0 && aj <= a.length);
                    assert(bi >= 0 && bj <= b.length);
                    assert(aj - ai >= 0);
                Severity: Minor
                Found in src/core/convert/_convert_to_smaller_fast.js - About 35 mins to fix

                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 _cmp_half_odd_radix has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                Open

                export default function _cmp_half_odd_radix(_r, a, ai, aj) {
                    assert(_r >= 1);
                    assert(ai >= 0 && aj <= a.length);
                
                    for (; ai < aj; ++ai) {
                Severity: Minor
                Found in src/core/compare/_cmp_half_odd_radix.js - About 25 mins to fix

                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 _cmp_n has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                Open

                export default function _cmp_n(a, ai, aj, b, bi) {
                    assert(ai >= 0 && aj <= a.length);
                    assert(bi >= 0);
                    assert(b.length - bi >= aj - ai);
                
                
                Severity: Minor
                Found in src/core/compare/_cmp_n.js - About 25 mins to fix

                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 _idivmod_dc_32 has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                Open

                export default function _idivmod_dc_32(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);
                Severity: Minor
                Found in src/core/arithmetic/div/_idivmod_dc_32.js - About 25 mins to fix

                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

                Severity
                Category
                Status
                Source
                Language