heap-data-structure/specification

View on GitHub

Showing 16 of 30 total issues

Function _merge has 37 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function _merge(
    _test,
    length,
    heapname,
    makeHeap,
Severity: Minor
Found in src/parts/merge.js - About 1 hr to fix

    Function _update has 35 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    export function _update(_test, length, heapname, makeHeap, diffname, diff, n) {
        const title = `Heap update (${heapname}, ${diffname}, ${n})`;
    
        _test(title, (t) => {
            const q = makeHeap(diff);
    Severity: Minor
    Found in src/parts/update.js - About 1 hr to fix

      Function _decreasekey has 34 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      export function _decreasekey(
          _test,
          length,
          heapname,
          makeHeap,
      Severity: Minor
      Found in src/parts/decreasekey.js - About 1 hr to fix

        Function _increasekey has 34 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        export function _increasekey(
            _test,
            length,
            heapname,
            makeHeap,
        Severity: Minor
        Found in src/parts/increasekey.js - About 1 hr to fix

          Function _pushreference has 34 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          export function _pushreference(
              _test,
              length,
              heapname,
              makeHeap,
          Severity: Minor
          Found in src/parts/pushreference.js - About 1 hr to fix

            Function _del has 34 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            export function _del(_test, length, heapname, makeHeap, diffname, diff, n) {
                const title = `Heap delete (${heapname}, ${diffname}, ${n})`;
            
                _test(title, (t) => {
                    const q = makeHeap(diff);
            Severity: Minor
            Found in src/parts/delete.js - About 1 hr to fix

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

                  _test,
                  length,
                  heapname,
                  makeHeap,
                  diffname,
              Severity: Major
              Found in src/parts/merge.js - About 1 hr to fix

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

                export function _del(_test, length, heapname, makeHeap, diffname, diff, n) {
                Severity: Major
                Found in src/parts/delete.js - About 50 mins to fix

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

                  export function _head(_test, length, heapname, makeHeap, diffname, diff, n) {
                  Severity: Major
                  Found in src/parts/head.js - About 50 mins to fix

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

                        _test,
                        length,
                        heapname,
                        makeHeap,
                        diffname,
                    Severity: Major
                    Found in src/parts/headreference.js - About 50 mins to fix

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

                          _test,
                          length,
                          heapname,
                          makeHeap,
                          diffname,
                      Severity: Major
                      Found in src/parts/pushreference.js - About 50 mins to fix

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

                        export function _update(_test, length, heapname, makeHeap, diffname, diff, n) {
                        Severity: Major
                        Found in src/parts/update.js - About 50 mins to fix

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

                              _test,
                              length,
                              heapname,
                              makeHeap,
                              diffname,
                          Severity: Major
                          Found in src/parts/popreference.js - About 50 mins to fix

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

                                _test,
                                length,
                                heapname,
                                makeHeap,
                                diffname,
                            Severity: Major
                            Found in src/parts/increasekey.js - About 50 mins to fix

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

                              export function _pushpop(_test, length, heapname, makeHeap, diffname, diff, n) {
                              Severity: Major
                              Found in src/parts/pushpop.js - About 50 mins to fix

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

                                    _test,
                                    length,
                                    heapname,
                                    makeHeap,
                                    diffname,
                                Severity: Major
                                Found in src/parts/decreasekey.js - About 50 mins to fix
                                  Severity
                                  Category
                                  Status
                                  Source
                                  Language