heap-data-structure/specification

View on GitHub
src/parts/update.js

Summary

Maintainability
A
2 hrs
Test Coverage

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 _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

      There are no issues that match your filters.

      Category
      Status