JamieMason/self-help

View on GitHub
src/machine/tree/index.ts

Summary

Maintainability
A
3 hrs
Test Coverage

Function createTreeMachine has 89 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const createTreeMachine = (rootNode: Node, id: string = 'tree-machine'): TreeMachine => {
  const RENDER_BRANCH = `#${id}.renderBranch`;
  const RENDER_LEAF = `#${id}.renderLeaf`;
  const RENDER_VALUE = `#${id}.renderValue`;
  const RESOLVE_BRANCH = `#${id}.resolveBranch`;
Severity: Major
Found in src/machine/tree/index.ts - About 3 hrs to fix

    There are no issues that match your filters.

    Category
    Status