aureooms/js-integer-little-endian

View on GitHub

Showing 38 of 44 total issues

Function _convert has 8 arguments (exceeds 4 allowed). Consider refactoring.
Open

export function _convert ( f , t , a , ai , aj , b , bi , bj ) {
Severity: Major
Found in src/1-new/convert/_convert.js - About 1 hr to fix

    Function _convert_to_smaller has 8 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    export function _convert_to_smaller ( f , t , a , ai , aj , b , bi , bj ) {
    Severity: Major
    Found in src/1-new/convert/_convert_to_smaller.js - About 1 hr to fix

      Function _convert_to_larger_fast has 8 arguments (exceeds 4 allowed). Consider refactoring.
      Open

      export function _convert_to_larger_fast ( ar , z , a , ai , aj , b , bi , bj ) {
      Severity: Major
      Found in src/1-new/convert/_convert_to_larger_fast.js - About 1 hr to fix

        Function _convert_to_smaller_fast has 8 arguments (exceeds 4 allowed). Consider refactoring.
        Open

        export function _convert_to_smaller_fast ( br , z , a , ai , aj , b , bi , bj ) {
        Severity: Major
        Found in src/1-new/convert/_convert_to_smaller_fast.js - About 1 hr to fix

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

          export function bkaratsuba_t (add, sub, mul, calloc, mov, r, wrap){
          Severity: Major
          Found in src/0-legacy/arithmetic/mul/karatsuba.js - About 50 mins to fix

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

            export function and (a, a0, b, b0, c, c0, c1) {
            Severity: Major
            Found in src/0-legacy/binary/and/and.js - About 50 mins to fix

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

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

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

                export function __ebs__ (alloc, iszero, setone, iseven, div2, minus1) {
                Severity: Minor
                Found in src/0-legacy/others/pow/ebs.js - About 45 mins to fix

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

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

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

                    export function _CMP (a, ai, aj, b, bi, bj){
                    
                        var tmp = aj - bj + bi;
                    
                        for (; ai < tmp; ++ai)
                    Severity: Minor
                    Found in src/1-new/compare/_CMP.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 __pow__ has 6 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                    export function __pow__ (alloc, isnotzero, setone, iseven, div2, minus1) {
                    Severity: Minor
                    Found in src/0-legacy/others/pow/pow.js - About 45 mins to fix

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

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

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

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

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

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

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

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

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

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

                                Function _convert_to_smaller_fast has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                Open

                                export function _convert_to_smaller_fast ( br , z , a , ai , aj , b , bi , bj ) {
                                
                                    var m, n, q, r, i, w, t;
                                
                                    m = bj - bi;
                                Severity: Minor
                                Found in src/1-new/convert/_convert_to_smaller_fast.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 _convert_to_larger_fast has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                Open

                                export function _convert_to_larger_fast ( ar , z , a , ai , aj , b , bi , bj ) {
                                
                                    var m, n, q, r, i, w, t;
                                
                                    m = aj - ai;
                                Severity: Minor
                                Found in src/1-new/convert/_convert_to_larger_fast.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