sleepepi/sleepportal

View on GitHub

Showing 436 of 436 total issues

Avoid deeply nested control flow statements.
Open

                        if (wrapper.added) {
                            renderer.buildText(wrapper);
                        }
Severity: Major
Found in app/assets/javascripts/external/highcharts-3.0.7.src.js - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

                            if (!hasSetSymbolSize) {
                                wrapper.symbolAttr(hash);
                                hasSetSymbolSize = true;
                            }
    Severity: Major
    Found in app/assets/javascripts/external/highcharts-3.0.7.src.js - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

                          if (path[i + 6] === path[i + 8]) {
                              path[i + 8] -= clockwise;
                          }
      Severity: Major
      Found in app/assets/javascripts/external/highcharts-3.0.7.src.js - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

                            if (!skipAttr) {
                                if (docMode8) { // IE8 setAttribute bug
                                    element[key] = value;
                                } else {
                                    attr(element, key, value);
        Severity: Major
        Found in app/assets/javascripts/external/highcharts-3.0.7.src.js - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Open

                                  if (/(NaN| {2}|^$)/.test(value)) {
                                      value = 'M 0 0';
                                  }
          Severity: Major
          Found in app/assets/javascripts/external/highcharts-3.0.7.src.js - About 45 mins to fix

            Avoid deeply nested control flow statements.
            Open

                                            if (!tooLong || words.length === 1) { // new line needed
                                                words = rest;
                                                rest = [];
                                                if (words.length) {
                                                    softLineNo++;
            Severity: Major
            Found in app/assets/javascripts/external/highcharts-3.0.7.src.js - About 45 mins to fix

              Avoid deeply nested control flow statements.
              Open

                                          if (radialReference) {
                                              bBox = wrapper.getBBox();
                                              cx += (radialReference[0] - bBox.x) / bBox.width - 0.5;
                                              cy += (radialReference[1] - bBox.y) / bBox.height - 0.5;
                                              sizex *= radialReference[2] / bBox.width;
              Severity: Major
              Found in app/assets/javascripts/external/highcharts-3.0.7.src.js - About 45 mins to fix

                Avoid deeply nested control flow statements.
                Open

                                        if (crosshairsOptions[i].dashStyle) {
                                            attribs.dashstyle = crosshairsOptions[i].dashStyle;
                                        }
                Severity: Major
                Found in app/assets/javascripts/external/highcharts-3.0.7.src.js - About 45 mins to fix

                  Avoid deeply nested control flow statements.
                  Open

                              } else if (verticalAlign === 'bottom') {
                                  if (!defined(margin[2])) {
                                      chart.marginBottom = mathMax(
                                          chart.marginBottom,
                                          legend.legendHeight - legendY + legendMargin + spacing[2]
                  Severity: Major
                  Found in app/assets/javascripts/external/highcharts-3.0.7.src.js - About 45 mins to fix

                    Avoid deeply nested control flow statements.
                    Open

                                            for (name in attr) {
                                                if (attr[name] === UNDEFINED) {
                                                    delete attr[name];
                                                }
                                            }
                    Severity: Major
                    Found in app/assets/javascripts/external/highcharts-3.0.7.src.js - About 45 mins to fix

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

                              drawRect: function (x, y, width, height, lineColor, fillColor) {
                      Severity: Minor
                      Found in app/assets/javascripts/external/jquery.sparkline.js - About 45 mins to fix

                        Avoid deeply nested control flow statements.
                        Open

                                            } else if (!skipAttr) {
                                                attr(element, key, value);
                                            }
                        Severity: Major
                        Found in app/assets/javascripts/external/highcharts-3.0.7.src.js - About 45 mins to fix

                          Avoid deeply nested control flow statements.
                          Open

                                              if (path[i + 5] === path[i + 7]) {
                                                  path[i + 7] -= clockwise;
                                              }
                          Severity: Major
                          Found in app/assets/javascripts/external/highcharts-3.0.7.src.js - About 45 mins to fix

                            Avoid deeply nested control flow statements.
                            Open

                                                if (wrapper.added) {
                                                    applyRadialGradient();
                                                } else {
                                                    // We need to know the bounding box to get the size and position right
                                                    addEvent(wrapper, 'add', applyRadialGradient);
                            Severity: Major
                            Found in app/assets/javascripts/external/highcharts-3.0.7.src.js - About 45 mins to fix

                              Avoid deeply nested control flow statements.
                              Open

                                                          if (stackMin < 0 && stackMax > 0) {
                                                              if (val < 0) {
                                                                  stackRangesNeg[i] += Math.abs(val);
                                                              } else {
                                                                  stackRanges[i] += val;
                              Severity: Major
                              Found in app/assets/javascripts/external/jquery.sparkline.js - About 45 mins to fix

                                Avoid deeply nested control flow statements.
                                Open

                                                if (!defined(margin[0])) {
                                                    chart.plotTop = mathMax(
                                                        chart.plotTop,
                                                        legend.legendHeight + legendY + legendMargin + spacing[0]
                                                    );
                                Severity: Major
                                Found in app/assets/javascripts/external/highcharts-3.0.7.src.js - About 45 mins to fix

                                  Avoid deeply nested control flow statements.
                                  Open

                                                      for (i = 0; i < dataLength; i++) {
                                                          pt = data[i];
                                                          xData[i] = pt[0];
                                                          yData[i] = pt.slice(1, valueCount + 1);
                                                      }
                                  Severity: Major
                                  Found in app/assets/javascripts/external/highcharts-3.0.7.src.js - About 45 mins to fix

                                    Avoid deeply nested control flow statements.
                                    Open

                                                            if (y[j] !== null) {
                                                                activeYData[activeCounter++] = y[j];
                                                            }
                                    Severity: Major
                                    Found in app/assets/javascripts/external/highcharts-3.0.7.src.js - About 45 mins to fix

                                      Avoid deeply nested control flow statements.
                                      Open

                                                              while (slots[slotIndex] === null) { // make sure it is not taken
                                                                  slotIndex++;
                                                              }
                                      Severity: Major
                                      Found in app/assets/javascripts/external/highcharts-3.0.7.src.js - About 45 mins to fix

                                        Avoid deeply nested control flow statements.
                                        Open

                                                                        if (!hasSVG && renderer.forExport) {
                                                                            actualWidth = renderer.measureSpanWidth(tspan.firstChild.data, wrapper.styles);
                                                                        }
                                        Severity: Major
                                        Found in app/assets/javascripts/external/highcharts-3.0.7.src.js - About 45 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language