aureooms/js-integer-little-endian

View on GitHub

Showing 44 of 44 total issues

Function stringify_t has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
Open

export function stringify_t (f, t, iter, zfill_t){

    if(t <= f){

        if(t > 36) throw new Error('t > 36 not implemented');
Severity: Minor
Found in src/0-legacy/stringify/stringify.js - About 1 hr 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 parse_t has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
Open

export function parse_t ( t , f , iter ) {

    if(t >= f){

        if(f > 36) throw new Error('f > 36 not implemented');
Severity: Minor
Found in src/0-legacy/parse/parse.js - About 1 hr 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 26 lines of code (exceeds 25 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 1 hr to fix

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

        var div = function(r, ri, rj, b, bi, bj, q, qi){
    Severity: Major
    Found in src/0-legacy/arithmetic/div/div.js - About 1 hr to fix

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

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

        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_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_slow has 8 arguments (exceeds 4 allowed). Consider refactoring.
            Open

            export function _convert_slow ( f , t , a , ai , aj , b , bi , bj ) {
            Severity: Major
            Found in src/1-new/convert/_convert_slow.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_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 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 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 __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 _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 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 _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_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
                                    Severity
                                    Category
                                    Status
                                    Source
                                    Language