functional-data-structure/finger-tree

View on GitHub

Showing 2 of 8 total issues

Function splitTree has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

Deep.prototype.splitTree = function (p, i) {
    assert(p(this.M.plus(i, this.measure())));

    const {left, middle, right, M} = this;

Severity: Minor
Found in src/3-tree/implementations/2-Deep.js - About 1 hr to fix

    Avoid too many return statements within this function.
    Open

        return new Deep(
            A.M,
            A.left,
            delay(() =>
                app3(A.middle, A.right._nodes_with_list(A.M, list, B.left), B.middle),
    Severity: Major
    Found in src/0-core/concatenate/app3.js - About 30 mins to fix
      Severity
      Category
      Status
      Source
      Language