arithmetic-operations-for/naturals-big-endian

View on GitHub

Showing 89 of 93 total issues

Function extended_euclidean_algorithm has 7 arguments (exceeds 4 allowed). Consider refactoring.
Open

export default function extended_euclidean_algorithm(r, a, ai, aj, b, bi, bj) {
Severity: Major
Found in src/api/arithmetic/gcd/extended_euclidean_algorithm.js - About 50 mins to fix

    Function iadd has 7 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    export default function iadd(r, a, ai, aj, b, bi, bj) {
    Severity: Major
    Found in src/api/arithmetic/add/iadd.js - About 50 mins to fix

      Function _imod_schoolbook_large_divisor has 7 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          r,
          a,
          ai,
          aj,
          b,
      Severity: Major
      Found in src/core/arithmetic/div/_imod_schoolbook_large_divisor.js - About 50 mins to fix

        Function _iadd has 7 arguments (exceeds 4 allowed). Consider refactoring.
        Open

        export default function _iadd(r, a, ai, aj, b, bi, bj) {
        Severity: Major
        Found in src/core/arithmetic/add/_iadd.js - About 50 mins to fix

          Function _idivmod_limb has 7 arguments (exceeds 4 allowed). Consider refactoring.
          Open

          export default function _idivmod_limb(r, d, D, Di, Dj, Q, Qi) {
          Severity: Major
          Found in src/core/arithmetic/div/_idivmod_limb.js - About 50 mins to fix

            Function euclidean_algorithm has 7 arguments (exceeds 4 allowed). Consider refactoring.
            Open

            export default function euclidean_algorithm(r, a, ai, aj, b, bi, bj) {
            Severity: Major
            Found in src/api/arithmetic/gcd/euclidean_algorithm.js - About 50 mins to fix

              Function _imod_schoolbook_subroutine has 7 arguments (exceeds 4 allowed). Consider refactoring.
              Open

              export default function _imod_schoolbook_subroutine(r, a, ai, aj, b, bi, bj) {
              Severity: Major
              Found in src/core/arithmetic/div/_imod_schoolbook_subroutine.js - About 50 mins to fix

                Function _euclidean_algorithm_loop has 7 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                export default function _euclidean_algorithm_loop(r, a, ai, aj, b, bi, bj) {
                Severity: Major
                Found in src/core/arithmetic/gcd/_euclidean_algorithm_loop.js - About 50 mins to fix

                  Function cmp has 6 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                  export default function cmp(a, ai, aj, b, bi, bj) {
                  Severity: Minor
                  Found in src/api/compare/cmp.js - About 45 mins to fix

                    Function _pow_double_recursive has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                    Open

                    export default function _pow_double_recursive(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);
                    Severity: Minor
                    Found in src/core/arithmetic/pow/_pow_double_recursive.js - About 45 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 _isub has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                    Open

                    export default function _isub(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 >= bj - bi);
                    Severity: Minor
                    Found in src/core/arithmetic/sub/_isub.js - About 45 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 has 6 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

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

                      Function _iadd has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                      Open

                      export default function _iadd(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 >= bj - bi);
                      Severity: Minor
                      Found in src/core/arithmetic/add/_iadd.js - About 45 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 _euclidean_algorithm_loop has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                      Open

                      export default function _euclidean_algorithm_loop(r, a, ai, aj, b, bi, bj) {
                          assert(r >= 2);
                      
                          assert(ai >= 0 && aj <= a.length);
                          assert(bi >= 0 && bj <= b.length);
                      Severity: Minor
                      Found in src/core/arithmetic/gcd/_euclidean_algorithm_loop.js - About 45 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_slow has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                      Open

                      export default function _convert_to_smaller_slow(f, t, a, ai, aj, b, bi, bj) {
                          assert(f >= t);
                          assert(ai >= 0 && aj <= a.length);
                          assert(bi >= 0 && bj <= b.length);
                          assert(aj - ai >= 1);
                      Severity: Minor
                      Found in src/core/convert/_convert_to_smaller_slow.js - About 45 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 _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 _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 _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 convert_keep_zeros has 5 arguments (exceeds 4 allowed). Consider refactoring.
                              Open

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