anyone-oslo/pages

View on GitHub
app/javascript/lib/Tree.ts

Summary

Maintainability
A
B
+1 hr
Test Coverage

Function walk has 26 lines of code (exceeds 25 allowed). Consider refactoring.
New

    const walk = (objs: Tree.Node[], parent: Tree.Index<N>) => {
      const children: Tree.Id[] = [];
      objs.forEach((obj: N) => {
        const index: Tree.Index<N> = {
          id: this.cnt,
Severity: Minor
Found in app/javascript/lib/Tree.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status