Showing 5,781 of 10,536 total issues

Avoid deeply nested control flow statements.
Open

                        if (date) {
                            if (i2 == i+1) {
                                res += "'";
                            }else{
                                res += format.substring(i+1, i2);
Severity: Major
Found in myems-admin/js/plugins/fullcalendar/fullcalendar.min.js - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

                    for (i2=i+1; i2<len; i2++) {
                        if (format.charAt(i2) == ']') {
                            var subformat = format.substring(i+1, i2);
                            var subres = formatDate(date, subformat, options);
                            if (subres != formatDate(otherDate, subformat, options)) {
    Severity: Major
    Found in myems-admin/js/plugins/fullcalendar/fullcalendar.min.js - About 45 mins to fix

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

              function eventResize(e, event, dayDelta, minuteDelta, ev, ui) {
      Severity: Minor
      Found in myems-admin/js/plugins/fullcalendar/fullcalendar.min.js - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

                                                if (
                                                    button.hasClass(tm + '-state-active') ||
                                                    button.hasClass(tm + '-state-disabled')
                                                ) {
                                                    button.removeClass(tm + '-state-hover');
        Severity: Major
        Found in myems-admin/js/plugins/fullcalendar/fullcalendar.js - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Open

                            if (option.selected) {
                              formData.append(inputName, option.value);
                            }
          Severity: Major
          Found in myems-admin/js/plugins/dropzone/dropzone.js - About 45 mins to fix

            Avoid deeply nested control flow statements.
            Open

                                        if (helperRes) {
                                            rect.position = 'absolute';
                                            selectionHelper = $(helperRes)
                                                .css(rect)
                                                .appendTo(slotContainer);
            Severity: Major
            Found in myems-admin/js/plugins/fullcalendar/fullcalendar.min.js - About 45 mins to fix

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

                          function plotBars(datapoints, barLeft, barRight, fillStyleCallback, axisx, axisy) {
              Severity: Minor
              Found in myems-admin/js/plugins/flot/jquery.flot.js - About 45 mins to fix

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

                    Canvas.prototype.removeText = function(layer, x, y, text, font, angle) {
                Severity: Minor
                Found in myems-admin/js/plugins/flot/jquery.flot.js - About 45 mins to fix

                  Avoid deeply nested control flow statements.
                  Open

                                      if (format.charAt(i2) == ')') {
                                          var subres = formatDate(date, format.substring(i+1, i2), options);
                                          if (parseInt(subres.replace(/\D/, ''), 10)) {
                                              res += subres;
                                          }
                  Severity: Major
                  Found in myems-admin/js/plugins/fullcalendar/fullcalendar.min.js - About 45 mins to fix

                    Avoid deeply nested control flow statements.
                    Open

                                                if (val != null) {
                                                    f = format[m];
                                                    // extract min/max info
                                                    if (f.autoscale !== false) {
                                                        if (f.x) {
                    Severity: Major
                    Found in myems-admin/js/plugins/flot/jquery.flot.js - About 45 mins to fix

                      Avoid deeply nested control flow statements.
                      Open

                                                  if (val < ymin)
                                                      ymin = val;
                      Severity: Major
                      Found in myems-admin/js/plugins/flot/jquery.flot.js - About 45 mins to fix

                        Avoid deeply nested control flow statements.
                        Open

                                                    for (var j = 0, jlen = args[2][0].length; j < jlen; j++) {
                                                        if (angular.isFunction(args[2][0][j])) {
                                                            callInvoke(args[2][0][j]);
                                                        }
                                                    }
                        Severity: Major
                        Found in myems-admin/js/plugins/oclazyload/ocLazyLoad.js - About 45 mins to fix

                          Avoid deeply nested control flow statements.
                          Open

                                                      for (m = 0; m < ps; ++m)
                                                          points[k + ps + m] = points[k + m];
                          Severity: Major
                          Found in myems-admin/js/plugins/flot/jquery.flot.js - About 45 mins to fix

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

                                    buildCalendar: function (month, year, hour, minute, second, side) {
                            Severity: Minor
                            Found in myems-admin/js/plugins/daterangepicker/daterangepicker.js - About 45 mins to fix

                              Avoid deeply nested control flow statements.
                              Open

                                                          if (span < timeUnitSize.year) {
                                                              fmt = "Q%q";
                                                          } else {
                                                              fmt = "Q%q %Y";
                                                          }
                              Severity: Major
                              Found in myems-admin/js/plugins/flot/jquery.flot.time.js - About 45 mins to fix

                                Avoid deeply nested control flow statements.
                                Open

                                                                if (invoked === -1) {
                                                                    regConfigs.push(moduleName + '-' + fct);
                                                                }
                                Severity: Major
                                Found in myems-admin/js/plugins/oclazyload/ocLazyLoad.js - About 45 mins to fix

                                  Avoid deeply nested control flow statements.
                                  Open

                                                          for (var key in styleCache) {
                                                              if (hasOwnProperty.call(styleCache, key)) {
                                                                  var positions = styleCache[key].positions;
                                                                  for (var i = 0, position; position = positions[i]; i++) {
                                                                      position.active = false;
                                  Severity: Major
                                  Found in myems-admin/js/plugins/flot/jquery.flot.js - About 45 mins to fix

                                    Avoid deeply nested control flow statements.
                                    Open

                                                                if (val < xmin)
                                                                    xmin = val;
                                    Severity: Major
                                    Found in myems-admin/js/plugins/flot/jquery.flot.js - About 45 mins to fix

                                      Avoid deeply nested control flow statements.
                                      Open

                                                                  if (val > xmax)
                                                                      xmax = val;
                                      Severity: Major
                                      Found in myems-admin/js/plugins/flot/jquery.flot.js - About 45 mins to fix

                                        Avoid deeply nested control flow statements.
                                        Open

                                                                    if (val > ymax)
                                                                        ymax = val;
                                        Severity: Major
                                        Found in myems-admin/js/plugins/flot/jquery.flot.js - About 45 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language