Showing 5,781 of 10,536 total issues

Consider simplifying this complex logical expression.
Open

            if (
              (d.dataTransfer
                ? (d.dataTransfer.dropEffect = b.options.allowDrop
                    ? "move"
                    : "none")
Severity: Major
Found in myems-admin/js/jcui/angular.integralui.treeview.min.js - About 40 mins to fix

    Consider simplifying this complex logical expression.
    Open

                      if (
                        d &&
                        a.isItemEnabled(d) &&
                        (Ma || ((a.hoverItem = d), a.refresh(d)),
                        a.options.autoExpand)
    Severity: Major
    Found in myems-admin/js/jcui/angular.integralui.treeview.min.js - About 40 mins to fix

      Consider simplifying this complex logical expression.
      Open

                if (r) b.fullList.push(d);
                else {
                  r = a;
                  0 != b.options.showStatusIcons && (r += 15);
                  switch (d[b.options.dataFields.fixed]) {
      Severity: Major
      Found in myems-admin/js/jcui/angular.integralui.treeview.min.js - About 40 mins to fix

        Consider simplifying this complex logical expression.
        Open

                    if (
                      0 == a.options.autoSize &&
                      (b.preventDefault(), !T && a.options.enabled)
                    ) {
                      var c = 0;
        Severity: Major
        Found in myems-admin/js/jcui/angular.integralui.treeview.min.js - About 40 mins to fix

          Consider simplifying this complex logical expression.
          Open

                          if (
                            a.isThereChildItems ||
                            (b && b[a.options.dataFields.hasChildren])
                          ) {
                            var f = a.indentList[c] / a.options.indent;
          Severity: Major
          Found in myems-admin/js/jcui/angular.integralui.treeview.min.js - About 40 mins to fix

            Consider simplifying this complex logical expression.
            Open

                          if (!T && 1 === b.which) {
                            L[0].getBoundingClientRect();
                            b = a.getMousePos(b);
                            w.scrollMousePos || (w.scrollMousePos = b);
                            var c = L[0].offsetLeft + (b.x - w.scrollMousePos.x);
            Severity: Major
            Found in myems-admin/js/jcui/angular.integralui.treeview.min.js - About 40 mins to fix

              Consider simplifying this complex logical expression.
              Open

                          if (b.isItemEnabled(h)) {
                            var d = b.itemSelection(),
                              u = !0;
                            d &&
                              (u =
              Severity: Major
              Found in myems-admin/js/jcui/angular.integralui.treeview.min.js - About 40 mins to fix

                Consider simplifying this complex logical expression.
                Open

                        if (c) {
                          if (f.isString(d)) return d;
                          switch (c) {
                            case "disabled":
                              return d && d.disabled
                Severity: Major
                Found in myems-admin/js/jcui/angular.integralui.treeview.min.js - About 40 mins to fix

                  Consider simplifying this complex logical expression.
                  Open

                                  if (g) {
                                    var p = n.getData(),
                                      e = p.source;
                                    e || (e = a.getDnDSource(b));
                                    (d = a.isDropAllowed(e, g, p.dropPos)) &&
                  Severity: Major
                  Found in myems-admin/js/jcui/angular.integralui.treeview.min.js - About 40 mins to fix

                    Consider simplifying this complex logical expression.
                    Open

                      if ((version[0] < 2 && version[1] < 9) || (version[0] == 1 && version[1] == 9 && version[2] < 1) || (version[0] > 3)) {
                        throw new Error('Bootstrap\'s JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4')
                      }
                    Severity: Major
                    Found in myems-admin/js/bootstrap/bootstrap.js - About 40 mins to fix

                      Consider simplifying this complex logical expression.
                      Open

                              if (b.isItemExpanded(a)) {
                                var c = null,
                                  r = !1,
                                  f = a,
                                  k = -1,
                      Severity: Major
                      Found in myems-admin/js/jcui/angular.integralui.treeview.min.js - About 40 mins to fix

                        Consider simplifying this complex logical expression.
                        Open

                                      if (!(0 == b && 0 >= z)) {
                                        newIndex = 0 < z ? Math.floor(a.scrollPos.y / z) : 0;
                                        a.scrollPos.y == J.y && newIndex--;
                                        if (
                                          a.currentList.length >= x &&
                        Severity: Major
                        Found in myems-admin/js/jcui/angular.integralui.treeview.min.js - About 40 mins to fix

                          Consider simplifying this complex logical expression.
                          Open

                              if (meter_list is None or len(meter_list) == 0) and \
                                      (virtual_meter_list is None or len(virtual_meter_list) == 0) and \
                                      (offline_meter_list is None or len(offline_meter_list) == 0):
                                  print("This is an empty tenant ")
                                  return None
                          Severity: Major
                          Found in myems-aggregation/tenant_energy_input_category.py - About 40 mins to fix

                            Consider simplifying this complex logical expression.
                            Open

                                if (energy_meter_hourly is None or len(energy_meter_hourly) == 0) and \
                                        (energy_virtual_meter_hourly is None or len(energy_virtual_meter_hourly) == 0) and \
                                        (energy_offline_meter_hourly is None or len(energy_offline_meter_hourly) == 0):
                                    # There isn't any energy data
                                    print("There isn't any energy data")
                            Severity: Major
                            Found in myems-aggregation/equipment_energy_input_item.py - About 40 mins to fix

                              Consider simplifying this complex logical expression.
                              Open

                                  if (energy_meter_hourly is None or len(energy_meter_hourly) == 0) and \
                                          (energy_virtual_meter_hourly is None or len(energy_virtual_meter_hourly) == 0) and \
                                          (energy_offline_meter_hourly is None or len(energy_offline_meter_hourly) == 0):
                                      # There isn't any energy data
                                      print("There isn't any energy data")
                              Severity: Major
                              Found in myems-aggregation/tenant_energy_input_category.py - About 40 mins to fix

                                Consider simplifying this complex logical expression.
                                Open

                                    if (meter_list is None or len(meter_list) == 0) and \
                                            (virtual_meter_list is None or len(virtual_meter_list) == 0) and \
                                            (offline_meter_list is None or len(offline_meter_list) == 0):
                                        print("This is an empty equipment ")
                                        return None
                                Severity: Major
                                Found in myems-aggregation/equipment_energy_input_item.py - About 40 mins to fix

                                  Consider simplifying this complex logical expression.
                                  Open

                                      if (meter_list is None or len(meter_list) == 0) and \
                                              (virtual_meter_list is None or len(virtual_meter_list) == 0) and \
                                              (offline_meter_list is None or len(offline_meter_list) == 0):
                                          print("This is an empty equipment ")
                                          return None
                                  Severity: Major
                                  Found in myems-aggregation/equipment_energy_output_category.py - About 40 mins to fix

                                    Consider simplifying this complex logical expression.
                                    Open

                                        if (energy_meter_hourly is None or len(energy_meter_hourly) == 0) and \
                                                (energy_virtual_meter_hourly is None or len(energy_virtual_meter_hourly) == 0) and \
                                                (energy_offline_meter_hourly is None or len(energy_offline_meter_hourly) == 0):
                                            # There isn't any energy data
                                            print("There isn't any energy data")
                                    Severity: Major
                                    Found in myems-aggregation/equipment_energy_output_category.py - About 40 mins to fix

                                      Consider simplifying this complex logical expression.
                                      Open

                                          if (meter_list is None or len(meter_list) == 0) and \
                                                  (virtual_meter_list is None or len(virtual_meter_list) == 0) and \
                                                  (offline_meter_list is None or len(offline_meter_list) == 0):
                                              print("This is an empty tenant ")
                                              return None
                                      Severity: Major
                                      Found in myems-aggregation/tenant_energy_input_item.py - About 40 mins to fix

                                        Consider simplifying this complex logical expression.
                                        Open

                                            if (meter_list is None or len(meter_list) == 0) and \
                                                    (virtual_meter_list is None or len(virtual_meter_list) == 0) and \
                                                    (offline_meter_list is None or len(offline_meter_list) == 0):
                                                print("This is an empty store ")
                                                return None
                                        Severity: Major
                                        Found in myems-aggregation/store_energy_input_category.py - About 40 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language