knsv/mermaid

View on GitHub

Showing 384 of 1,490 total issues

Function addComponent has 8 arguments (exceeds 4 allowed). Consider refactoring.
Open

export const addComponent = function (typeC4Shape, alias, label, techn, descr, sprite, tags, link) {
Severity: Major
Found in packages/mermaid/src/diagrams/c4/c4Db.js - About 1 hr to fix

    Function addContainer has 8 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    export const addContainer = function (typeC4Shape, alias, label, techn, descr, sprite, tags, link) {
    Severity: Major
    Found in packages/mermaid/src/diagrams/c4/c4Db.js - About 1 hr to fix

      Function addState has 8 arguments (exceeds 4 allowed). Consider refactoring.
      Open

        id,
        type = DEFAULT_STATE_TYPE,
        doc = null,
        descr = null,
        note = null,
      Severity: Major
      Found in packages/mermaid/src/diagrams/state/stateDb.js - About 1 hr to fix

        Function addDeploymentNode has 8 arguments (exceeds 4 allowed). Consider refactoring.
        Open

          nodeType,
          alias,
          label,
          type,
          descr,
        Severity: Major
        Found in packages/mermaid/src/diagrams/c4/c4Db.js - About 1 hr to fix

          Function byText has 7 arguments (exceeds 4 allowed). Consider refactoring.
          Open

            function byText(content, g, x, y, width, height, textAttrs) {
          Severity: Major
          Found in packages/mermaid/src/diagrams/sequence/svgDraw.js - About 50 mins to fix

            Function byText has 7 arguments (exceeds 4 allowed). Consider refactoring.
            Open

              function byText(content, g, x, y, width, height, textAttrs) {
            Severity: Major
            Found in packages/mermaid/src/diagrams/c4/svgDraw.js - About 50 mins to fix

              Function drawRects has 7 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                function drawRects(theArray, theGap, theTopPad, theSidePad, theBarHeight, theColorScale, w) {
              Severity: Major
              Found in packages/mermaid/src/diagrams/gantt/ganttRenderer.js - About 50 mins to fix

                Function insertEdge has 7 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                export const insertEdge = function (elem, e, edge, clusterDb, diagramType, graph, id) {
                Severity: Major
                Found in packages/mermaid/src/dagre-wrapper/edges.js - About 50 mins to fix

                  Function byText has 7 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                    function byText(content, g, x, y, width, height, textAttrs) {
                  Severity: Major
                  Found in packages/mermaid/src/diagrams/sequence/svgDraw.js - About 50 mins to fix

                    Function addPersonOrSystem has 7 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                    export const addPersonOrSystem = function (typeC4Shape, alias, label, descr, sprite, tags, link) {
                    Severity: Major
                    Found in packages/mermaid/src/diagrams/c4/c4Db.js - About 50 mins to fix

                      Function updateRelStyle has 7 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                        typeC4Shape,
                        from,
                        to,
                        textColor,
                        lineColor,
                      Severity: Major
                      Found in packages/mermaid/src/diagrams/c4/c4Db.js - About 50 mins to fix

                        Function addVertex has 7 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                        export const addVertex = function (_id, textObj, type, style, classes, dir, props = {}) {
                        Severity: Major
                        Found in packages/mermaid/src/diagrams/flowchart/flowDb.js - About 50 mins to fix

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

                          export const addVertices = async function (vert, svgId, root, doc, diagObj, parentLookupDb, graph) {
                          Severity: Major
                          Found in packages/mermaid/src/diagrams/flowchart/elk/flowRenderer-elk.js - About 50 mins to fix

                            Function addActorRenderingData has 7 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                              diagram,
                              actors,
                              createdActors,
                              actorKeys,
                              verticalPos,
                            Severity: Major
                            Found in packages/mermaid/src/diagrams/sequence/sequenceRenderer.ts - About 50 mins to fix

                              Function a11yTagInserted has 7 arguments (exceeds 4 allowed). Consider refactoring.
                              Open

                                      _svgD3Node: D3Element,
                                      title: string | undefined,
                                      desc: string | undefined,
                                      givenId: string,
                                      callNumber: number,
                              Severity: Major
                              Found in packages/mermaid/src/accessibility.spec.ts - About 50 mins to fix

                                Function adjustCreatedDestroyedData has 7 arguments (exceeds 4 allowed). Consider refactoring.
                                Open

                                  msg,
                                  msgModel,
                                  lineStartY,
                                  index,
                                  actors,
                                Severity: Major
                                Found in packages/mermaid/src/diagrams/sequence/sequenceRenderer.ts - About 50 mins to fix

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

                                  export const drawImage = function (elem, width, height, x, y, link) {
                                  Severity: Minor
                                  Found in packages/mermaid/src/diagrams/c4/svgDraw.js - About 45 mins to fix

                                    Avoid deeply nested control flow statements.
                                    Open

                                              if (
                                                param.to !== state.records.lastDestroyed &&
                                                param.from !== state.records.lastDestroyed
                                              ) {
                                                throw new Error(
                                    Severity: Major
                                    Found in packages/mermaid/src/diagrams/sequence/sequenceDb.js - About 45 mins to fix

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

                                      const insertEdge = function (edgesEl, edge, edgeData, diagObj, parentLookupDb, id) {
                                      Severity: Minor
                                      Found in packages/mermaid/src/diagrams/flowchart/elk/flowRenderer-elk.js - About 45 mins to fix

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

                                          diagram: Selection<SVGElement, unknown, null, undefined>,
                                          events: string[],
                                          sectionColor: number,
                                          masterX: number,
                                          masterY: number,
                                        Severity: Minor
                                        Found in packages/mermaid/src/diagrams/timeline/timelineRenderer.ts - About 45 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language