autolab/Autolab

View on GitHub

Showing 419 of 572 total issues

Avoid deeply nested control flow statements.
Open

        if (i >= fullChunks) {
          thisChunkHeight = partialChunkHeight;
          elemsInThisChunk = width * thisChunkHeight;
        }
Severity: Major
Found in app/assets/javascripts/pdf.js - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

                  if (node) {
                    $(node).removeClass(removedRowHash[columnId]);
                  }
    Severity: Major
    Found in app/assets/javascripts/SlickGrid/2.02/slick.grid.js - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

                            if (c.maxWidth) {
                              stretchLeewayOnRight += c.maxWidth - c.previousWidth;
                            } else {
                              stretchLeewayOnRight = null;
                            }
      Severity: Major
      Found in app/assets/javascripts/SlickGrid/2.02/slick.grid.js - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

                    if (options.editable) {
                      if (currentEditor) {
                        // adding new row
                        if (activeRow === getDataLength()) {
                          navigateDown();
        Severity: Major
        Found in app/assets/javascripts/SlickGrid/2.02/slick.grid.js - About 45 mins to fix

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

              clipBbox: function clipBbox(graphics, bbox, x0, y0, x1, y1) {
          Severity: Minor
          Found in app/assets/javascripts/pdf.js - About 45 mins to fix

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

              function genericComposeSMask(maskCtx, layerCtx, width, height,
                                           subtype, backdrop) {
            Severity: Minor
            Found in app/assets/javascripts/pdf.js - About 45 mins to fix

              Avoid deeply nested control flow statements.
              Open

                                    if (x && c.previousWidth + x < actualMinWidth) {
                                      x += c.previousWidth - actualMinWidth;
                                      c.width = actualMinWidth;
                                    } else {
                                      c.width = c.previousWidth + x;
              Severity: Major
              Found in app/assets/javascripts/SlickGrid/2.02/slick.grid.js - About 45 mins to fix

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

                  function createMeshCanvas(bounds, combinesScale, coords, colors, figures,
                                            backgroundColor) {
                Severity: Minor
                Found in app/assets/javascripts/pdf.js - About 45 mins to fix

                  Avoid deeply nested control flow statements.
                  Open

                               if (mask === 0) {
                                 srcByte = src[srcPos++];
                                 mask = 128;
                               }
                  Severity: Major
                  Found in app/assets/javascripts/pdf.js - About 45 mins to fix

                    Avoid deeply nested control flow statements.
                    Open

                                  if (options.editCommandHandler) {
                                    makeActiveCellNormal();
                                    options.editCommandHandler(item, column, editCommand);
                                  } else {
                                    editCommand.execute();
                    Severity: Major
                    Found in app/assets/javascripts/SlickGrid/2.02/slick.grid.js - About 45 mins to fix

                      Avoid deeply nested control flow statements.
                      Open

                                    if (node) {
                                      $(node).addClass(addedRowHash[columnId]);
                                    }
                      Severity: Major
                      Found in app/assets/javascripts/SlickGrid/2.02/slick.grid.js - About 45 mins to fix

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

                            ctx.setTransform = function ctxSetTransform(a, b, c, d, e, f) {
                        Severity: Minor
                        Found in app/assets/javascripts/pdf.js - About 45 mins to fix

                          Avoid deeply nested control flow statements.
                          Open

                                  for (j = elemsInThisChunk; j--;) {
                                    dest[destPos++] = src[srcPos++];
                                    dest[destPos++] = src[srcPos++];
                                    dest[destPos++] = src[srcPos++];
                                    dest[destPos++] = 255;
                          Severity: Major
                          Found in app/assets/javascripts/pdf.js - About 45 mins to fix

                            Avoid deeply nested control flow statements.
                            Open

                                                  if (x && c.maxWidth && (c.maxWidth - c.previousWidth < x)) {
                                                    x -= c.maxWidth - c.previousWidth;
                                                    c.width = c.maxWidth;
                                                  } else {
                                                    c.width = c.previousWidth + x;
                            Severity: Major
                            Found in app/assets/javascripts/SlickGrid/2.02/slick.grid.js - About 45 mins to fix

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

                                function PageViewport(viewBox, scale, rotation, offsetX, offsetY, dontFlip) {
                              Severity: Minor
                              Found in app/assets/javascripts/pdf.js - About 45 mins to fix

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

                                    setTextMatrix: function CanvasGraphics_setTextMatrix(a, b, c, d, e, f) {
                                Severity: Minor
                                Found in app/assets/javascripts/pdf.js - About 45 mins to fix

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

                                    function InternalRenderTask(callback, params, objs, commonObjs, operatorList,
                                                                pageNumber) {
                                  Severity: Minor
                                  Found in app/assets/javascripts/pdf.js - About 45 mins to fix

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

                                      function TilingPattern(IR, color, ctx, objs, commonObjs, baseTransform) {
                                    Severity: Minor
                                    Found in app/assets/javascripts/pdf.js - About 45 mins to fix

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

                                          transform: function CanvasGraphics_transform(a, b, c, d, e, f) {
                                      Severity: Minor
                                      Found in app/assets/javascripts/pdf.js - About 45 mins to fix

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

                                            setCharWidthAndBounds: function CanvasGraphics_setCharWidthAndBounds(xWidth,
                                                                                                                yWidth,
                                                                                                                llx,
                                                                                                                lly,
                                                                                                                urx,
                                        Severity: Minor
                                        Found in app/assets/javascripts/pdf.js - About 45 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language