knsv/mermaid

View on GitHub

Showing 384 of 1,490 total issues

Function addVertices has 6 arguments (exceeds 4 allowed). Consider refactoring.
Open

export const addVertices = async function (vert, g, svgId, root, _doc, diagObj) {
Severity: Minor
Found in packages/mermaid/src/diagrams/flowchart/flowRenderer.js - About 45 mins to fix

    Function addVertices has 6 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    export const addVertices = async function (vert, g, svgId, root, doc, diagObj) {
    Severity: Minor
    Found in packages/mermaid/src/diagrams/flowchart/flowRenderer-v2.js - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

          if (fromDYX >= tanDYX) {
            returnPoint = new Point(x1, fromCenterY - (fromNode.width / 2) * tanDYX);
          } else {
            returnPoint = new Point(fromCenterX - ((fromNode.height / 2) * dx) / dy, y1);
          }
      Severity: Major
      Found in packages/mermaid/src/diagrams/c4/c4Renderer.js - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

                  if (newNode.description === itemId) {
                    // If the previous description was this, remove it
                    newNode.description = [parsedItem.description];
                  } else {
                    newNode.description = [newNode.description, parsedItem.description];
        Severity: Major
        Found in packages/mermaid/src/diagrams/state/stateRenderer-v2.js - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Open

                    if (child.size) {
                      child.size.width = childWidth;
                    }
          Severity: Major
          Found in packages/mermaid/src/diagrams/block/layout.ts - About 45 mins to fix

            Function drawPopup has 5 arguments (exceeds 4 allowed). Consider refactoring.
            Open

            export const drawPopup = function (elem, actor, minMenuWidth, textAttrs, forceMenus) {
            Severity: Minor
            Found in packages/mermaid/src/diagrams/sequence/svgDraw.js - About 35 mins to fix

              Function addSignal has 5 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                idFrom,
                idTo,
                message = { text: undefined, wrap: undefined },
                messageType,
                activate = false
              Severity: Minor
              Found in packages/mermaid/src/diagrams/sequence/sequenceDb.js - About 35 mins to fix

                Function drawActivation has 5 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                export const drawActivation = function (elem, bounds, verticalPos, conf, actorActivations) {
                Severity: Minor
                Found in packages/mermaid/src/diagrams/sequence/svgDraw.js - About 35 mins to fix

                  Function fixTaskDates has 5 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                  const fixTaskDates = function (startTime, endTime, dateFormat, excludes, includes) {
                  Severity: Minor
                  Found in packages/mermaid/src/diagrams/gantt/ganttDb.js - About 35 mins to fix

                    Function genPoints has 5 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                      function genPoints(x, y, width, height, cut) {
                    Severity: Minor
                    Found in packages/mermaid/src/diagrams/sequence/svgDraw.js - About 35 mins to fix

                      Function genPoints has 5 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                        function genPoints(x, y, width, height, cut) {
                      Severity: Minor
                      Found in packages/mermaid/src/diagrams/user-journey/svgDraw.js - About 35 mins to fix

                        Function drawRelationshipFromLayout has 5 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                        const drawRelationshipFromLayout = function (svg, rel, g, insert, diagObj) {
                        Severity: Minor
                        Found in packages/mermaid/src/diagrams/requirement/requirementRenderer.js - About 35 mins to fix

                          Function calcC4ShapeTextWH has 5 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                          function calcC4ShapeTextWH(textType, c4Shape, c4ShapeTextWrap, textConf, textLimitWidth) {
                          Severity: Minor
                          Found in packages/mermaid/src/diagrams/c4/c4Renderer.js - About 35 mins to fix

                            Function drawInsideBoundary has 5 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                              diagram,
                              parentBoundaryAlias,
                              parentBounds,
                              currentBoundaries,
                              diagObj
                            Severity: Minor
                            Found in packages/mermaid/src/diagrams/c4/c4Renderer.js - About 35 mins to fix

                              Function genPoints has 5 arguments (exceeds 4 allowed). Consider refactoring.
                              Open

                                function genPoints(x, y, width, height, cut) {
                              Severity: Minor
                              Found in packages/mermaid/src/diagrams/timeline/svgDraw.js - About 35 mins to fix

                                Function addMarkersToEdge has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                Open

                                const addMarkersToEdge = function (svgPath, edgeData, diagramType, arrowMarkerAbsolute, id) {
                                Severity: Minor
                                Found in packages/mermaid/src/diagrams/flowchart/elk/flowRenderer-elk.js - About 35 mins to fix

                                  Function addContainerBoundary has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

                                  export const addContainerBoundary = function (alias, label, type, tags, link) {
                                  Severity: Minor
                                  Found in packages/mermaid/src/diagrams/c4/c4Db.js - About 35 mins to fix

                                    Function svgDrawLineForCommits has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                    Open

                                    function svgDrawLineForCommits(svg, fromId, toId, direction, color) {
                                    Severity: Minor
                                    Found in packages/mermaid/src/diagrams/git/gitGraphRenderer-old.js - About 35 mins to fix

                                      Function addHtmlSpan has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                      Open

                                      function addHtmlSpan(element, node, width, classes, addBackground = false) {
                                      Severity: Minor
                                      Found in packages/mermaid/src/rendering-util/createText.ts - About 35 mins to fix

                                        Function addPersonOrSystemBoundary has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                        Open

                                        export const addPersonOrSystemBoundary = function (alias, label, type, tags, link) {
                                        Severity: Minor
                                        Found in packages/mermaid/src/diagrams/c4/c4Db.js - About 35 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language