Showing 5,781 of 10,536 total issues

Consider simplifying this complex logical expression.
Open

  "pluralCat": function(n, opt_precision) {  var i = n | 0;  var vf = getVF(n, opt_precision);  if (vf.v == 0 && i % 10 == 1 && i % 100 != 11 || vf.f % 10 == 1 && vf.f % 100 != 11) {    return PLURAL_CATEGORY.ONE;  }  if (vf.v == 0 && i % 10 >= 2 && i % 10 <= 4 && (i % 100 < 12 || i % 100 > 14) || vf.f % 10 >= 2 && vf.f % 10 <= 4 && (vf.f % 100 < 12 || vf.f % 100 > 14)) {    return PLURAL_CATEGORY.FEW;  }  return PLURAL_CATEGORY.OTHER;}
Severity: Critical
Found in myems-admin/js/angular/i18n/angular-locale_sr-latn-rs.js - About 1 hr to fix

    Consider simplifying this complex logical expression.
    Open

      "pluralCat": function(n, opt_precision) {  var i = n | 0;  var vf = getVF(n, opt_precision);  if (vf.v == 0 && i % 10 == 1 && i % 100 != 11 || vf.f % 10 == 1 && vf.f % 100 != 11) {    return PLURAL_CATEGORY.ONE;  }  if (vf.v == 0 && i % 10 >= 2 && i % 10 <= 4 && (i % 100 < 12 || i % 100 > 14) || vf.f % 10 >= 2 && vf.f % 10 <= 4 && (vf.f % 100 < 12 || vf.f % 100 > 14)) {    return PLURAL_CATEGORY.FEW;  }  return PLURAL_CATEGORY.OTHER;}
    Severity: Critical
    Found in myems-admin/js/angular/i18n/angular-locale_sh.js - About 1 hr to fix

      Consider simplifying this complex logical expression.
      Open

        "pluralCat": function(n, opt_precision) {  var i = n | 0;  var vf = getVF(n, opt_precision);  if (vf.v == 0 && i % 10 == 1 && i % 100 != 11 || vf.f % 10 == 1 && vf.f % 100 != 11) {    return PLURAL_CATEGORY.ONE;  }  if (vf.v == 0 && i % 10 >= 2 && i % 10 <= 4 && (i % 100 < 12 || i % 100 > 14) || vf.f % 10 >= 2 && vf.f % 10 <= 4 && (vf.f % 100 < 12 || vf.f % 100 > 14)) {    return PLURAL_CATEGORY.FEW;  }  return PLURAL_CATEGORY.OTHER;}
      Severity: Critical
      Found in myems-admin/js/angular/i18n/angular-locale_sr-cyrl.js - About 1 hr to fix

        Consider simplifying this complex logical expression.
        Open

          "pluralCat": function(n, opt_precision) {  var i = n | 0;  var vf = getVF(n, opt_precision);  if (vf.v == 0 && i % 10 == 1 && i % 100 != 11 || vf.f % 10 == 1 && vf.f % 100 != 11) {    return PLURAL_CATEGORY.ONE;  }  if (vf.v == 0 && i % 10 >= 2 && i % 10 <= 4 && (i % 100 < 12 || i % 100 > 14) || vf.f % 10 >= 2 && vf.f % 10 <= 4 && (vf.f % 100 < 12 || vf.f % 100 > 14)) {    return PLURAL_CATEGORY.FEW;  }  return PLURAL_CATEGORY.OTHER;}
        Severity: Critical
        Found in myems-admin/js/angular/i18n/angular-locale_sr-latn-xk.js - About 1 hr to fix

          Consider simplifying this complex logical expression.
          Open

            "pluralCat": function(n, opt_precision) {  var i = n | 0;  var vf = getVF(n, opt_precision);  if (vf.v == 0 && i % 10 == 1 && i % 100 != 11 || vf.f % 10 == 1 && vf.f % 100 != 11) {    return PLURAL_CATEGORY.ONE;  }  if (vf.v == 0 && i % 10 >= 2 && i % 10 <= 4 && (i % 100 < 12 || i % 100 > 14) || vf.f % 10 >= 2 && vf.f % 10 <= 4 && (vf.f % 100 < 12 || vf.f % 100 > 14)) {    return PLURAL_CATEGORY.FEW;  }  return PLURAL_CATEGORY.OTHER;}
          Severity: Critical
          Found in myems-admin/js/angular/i18n/angular-locale_sr-latn-me.js - About 1 hr to fix

            Consider simplifying this complex logical expression.
            Open

              "pluralCat": function(n, opt_precision) {  if (n % 10 == 1 && n % 100 != 11 && n % 100 != 71 && n % 100 != 91) {    return PLURAL_CATEGORY.ONE;  }  if (n % 10 == 2 && n % 100 != 12 && n % 100 != 72 && n % 100 != 92) {    return PLURAL_CATEGORY.TWO;  }  if ((n % 10 >= 3 && n % 10 <= 4 || n % 10 == 9) && (n % 100 < 10 || n % 100 > 19) && (n % 100 < 70 || n % 100 > 79) && (n % 100 < 90 || n % 100 > 99)) {    return PLURAL_CATEGORY.FEW;  }  if (n != 0 && n % 1000000 == 0) {    return PLURAL_CATEGORY.MANY;  }  return PLURAL_CATEGORY.OTHER;}
            Severity: Critical
            Found in myems-admin/js/angular/i18n/angular-locale_br.js - About 1 hr to fix

              Consider simplifying this complex logical expression.
              Open

                "pluralCat": function(n, opt_precision) {  var i = n | 0;  var vf = getVF(n, opt_precision);  if (vf.v == 0 && i % 10 == 1 && i % 100 != 11 || vf.f % 10 == 1 && vf.f % 100 != 11) {    return PLURAL_CATEGORY.ONE;  }  if (vf.v == 0 && i % 10 >= 2 && i % 10 <= 4 && (i % 100 < 12 || i % 100 > 14) || vf.f % 10 >= 2 && vf.f % 10 <= 4 && (vf.f % 100 < 12 || vf.f % 100 > 14)) {    return PLURAL_CATEGORY.FEW;  }  return PLURAL_CATEGORY.OTHER;}
              Severity: Critical
              Found in myems-admin/js/angular/i18n/angular-locale_sr-latn.js - About 1 hr to fix

                Consider simplifying this complex logical expression.
                Open

                                    if (isNaN(v) || v < axis.min || v > axis.max
                                        // skip those lying on the axes if we got a border
                                        || (t == "full"
                                            && ((typeof bw == "object" && bw[axis.position] > 0) || bw > 0)
                                            && (v == axis.min || v == axis.max)))
                Severity: Critical
                Found in myems-admin/js/plugins/flot/jquery.flot.js - About 1 hr to fix

                  Consider simplifying this complex logical expression.
                  Open

                                  if (opts.mode == "time") {
                                      axis.tickGenerator = function(axis) {
                  
                                          var ticks = [];
                                          var d = dateGenerator(axis.min, opts);
                  Severity: Critical
                  Found in myems-admin/js/plugins/flot/jquery.flot.time.js - About 1 hr to fix

                    Consider simplifying this complex logical expression.
                    Open

                                if (e.footable = a, a.options.filter.enabled === !0) {
                                    if (t(a.table).data("filter") === !1) return;
                                    a.timers.register("filter"), t(a.table).unbind(".filtering").bind({
                                        "footable_initialized.filtering": function() {
                                            var i = t(a.table),
                    Severity: Critical
                    Found in myems-admin/js/plugins/footable/footable.all.min.js - About 1 hr to fix

                      Consider simplifying this complex logical expression.
                      Open

                                  if (!T && b) {
                                    var d = !0;
                                    0 > b.x && ((b.x = 0), (d = !1));
                                    b.x > J.x && ((b.x = J.x), (d = !1));
                                    0 > b.y && ((b.y = 0), (d = !1));
                      Severity: Critical
                      Found in myems-admin/js/jcui/angular.integralui.treeview.min.js - About 1 hr to fix

                        Consider simplifying this complex logical expression.
                        Open

                                  if (b.isItemFixed(a))
                                    switch (c) {
                                      case "disabled":
                                        return d.fixed && d.fixed.disabled
                                          ? d.fixed.disabled
                        Severity: Critical
                        Found in myems-admin/js/jcui/angular.integralui.treeview.min.js - About 1 hr to fix

                          Consider simplifying this complex logical expression.
                          Open

                                        if (!T && 1 === b.which) {
                                          M[0].getBoundingClientRect();
                                          b = a.getMousePos(b);
                                          w.scrollMousePos || (w.scrollMousePos = b);
                                          var c = M[0].offsetTop + (b.y - w.scrollMousePos.y);
                          Severity: Critical
                          Found in myems-admin/js/jcui/angular.integralui.treeview.min.js - About 1 hr to fix

                            Consider simplifying this complex logical expression.
                            Open

                                      if (
                                        (a[b.options.dataFields.hasChildren] ||
                                          (a[b.options.dataFields.items] &&
                                            0 !== a[b.options.dataFields.items].length)) &&
                                        !(
                            Severity: Critical
                            Found in myems-admin/js/jcui/angular.integralui.treeview.min.js - About 1 hr to fix

                              Consider simplifying this complex logical expression.
                              Open

                                      if ((c = A(d, a, c, r, e)) && !b.isItemFixed(d)) {
                                        e = 0;
                                        var h;
                                        if (
                                          r ||
                              Severity: Critical
                              Found in myems-admin/js/jcui/angular.integralui.treeview.min.js - About 1 hr to fix

                                Function _createHalfASCII has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    var _createHalfASCII = function(margin) {
                                      var cellSize = 1;
                                      margin = (typeof margin == 'undefined')? cellSize * 2 : margin;
                                
                                      var size = _this.getModuleCount() * cellSize + margin * 2;
                                Severity: Minor
                                Found in myems-admin/js/angular/qrcode.js - About 1 hr to fix

                                  Function qrKanji has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                    var qrKanji = function(data) {
                                  
                                      var _mode = QRMode.MODE_KANJI;
                                      var _data = data;
                                  
                                  
                                  Severity: Minor
                                  Found in myems-admin/js/angular/qrcode.js - About 1 hr to fix

                                    Function $StateRefDynamicDirective has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                            function $StateRefDynamicDirective($uiRouter, $timeout) {
                                                var $state = $uiRouter.stateService;
                                                return {
                                                    restrict: 'A',
                                                    require: ['?^uiSrefActive', '?^uiSrefActiveEq'],
                                    Severity: Minor
                                    Found in myems-admin/js/ui-router/angular-ui-router.js - About 1 hr to fix

                                      Function keyup has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                        , keyup: function (e) {
                                            var blocked = false;
                                            switch(e.keyCode) {
                                              case 40: // down arrow
                                              case 38: // up arrow
                                      Severity: Minor
                                      Found in myems-admin/js/plugins/bootstrap-markdown/bootstrap-markdown.js - About 1 hr to fix

                                        Function fallback has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                                fallback: function fallback() {
                                                  // This code should pass in IE7... :(
                                                  var messageElement;
                                                  this.element.className = "".concat(this.element.className, " dz-browser-not-supported");
                                                  var _iteratorNormalCompletion2 = true;
                                        Severity: Minor
                                        Found in myems-admin/js/plugins/dropzone/dropzone.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language