knsv/mermaid

View on GitHub

Showing 384 of 1,490 total issues

Avoid too many return statements within this function.
Open

    return [
      // Bottom center
      { x: midpoint, y: -padding },
      // Left top over vertical section
      { x: midpoint, y: -height + padding },
Severity: Major
Found in packages/mermaid/src/dagre-wrapper/blockArrowHelper.ts - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

      return dst;
    Severity: Major
    Found in packages/mermaid/src/assignWithDepth.ts - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

          return [
            // Bottom center
            { x: width / 2, y: 0 },
            // Left pont of bottom arrow
            { x: 0, y: -padding },
      Severity: Major
      Found in packages/mermaid/src/dagre-wrapper/blockArrowHelper.ts - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

          return [{ x: 0, y: 0 }];
        Severity: Major
        Found in packages/mermaid/src/dagre-wrapper/blockArrowHelper.ts - About 30 mins to fix
          Severity
          Category
          Status
          Source
          Language