erikroyall/hilo

View on GitHub

Showing 179 of 292 total issues

Consider simplifying this complex logical expression.
Open

          if (tokens.length > 2 && (token = tokens[0]).type === "ID" &&
              support.getById && context.nodeType === 9 && documentIsHTML &&
              Expr.relative[tokens[1].type]) {

            context = (Expr.find["ID"](token.matches[0].replace(runescape, 
Severity: Major
Found in build/hilo-legacy.js - About 1 hr to fix

    Consider simplifying this complex logical expression.
    Open

              if (tokens.length > 2 && (token = tokens[0]).type === "ID" &&
                  support.getById && context.nodeType === 9 && documentIsHTML &&
                  Expr.relative[tokens[1].type]) {
    
                context = (Expr.find["ID"](token.matches[0].replace(runescape, 
    Severity: Major
    Found in src/sizzle.js - About 1 hr to fix

      Avoid deeply nested control flow statements.
      Open

                        if ((data = cache[1]) === true || data === cachedruns) {
                          return data === true;
                        }
      Severity: Major
      Found in src/sizzle.js - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

                          if (cache[1] === true) {
                            return true;
                          }
        Severity: Major
        Found in src/sizzle.js - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Open

                            if (contains) {
                              el.classList.remove(parts[_i]);
                            } else {
                              el.classList.add(parts[_i]);
                            }
          Severity: Major
          Found in build/hilo.js - About 45 mins to fix

            Avoid deeply nested control flow statements.
            Open

                          if (v) {
                            partial.push(quote(k) + (gap ? ": " : ":") + v);
                          }
            Severity: Major
            Found in build/hilo-legacy.js - About 45 mins to fix

              Avoid deeply nested control flow statements.
              Open

                            if (elem && elem.parentNode) {
                              // Handle the case where IE, Opera, and Webkit return items
                              // by name instead of ID
                              if (elem.id === m) {
                                results.push(elem);
              Severity: Major
              Found in build/hilo-legacy.js - About 45 mins to fix

                Avoid deeply nested control flow statements.
                Open

                                if (contains(parts[_i])) {
                                  el.classList.remove(parts[_i]);
                                } else {
                                  el.classList.add(parts[_i]);
                                }
                Severity: Major
                Found in src/dom.js - About 45 mins to fix

                  Avoid deeply nested control flow statements.
                  Open

                                    if (contains(parts[_i])) {
                                      el.classList.remove(parts[_i]);
                                    }
                  Severity: Major
                  Found in build/hilo.js - About 45 mins to fix

                    Avoid deeply nested control flow statements.
                    Open

                                      if (contains) {
                                        el.classList.remove(parts[_i]);
                                      } else {
                                        el.classList.add(parts[_i]);
                                      }
                    Severity: Major
                    Found in src/dom.js - About 45 mins to fix

                      Avoid deeply nested control flow statements.
                      Open

                                      if (contains(parts[_i])) {
                                        el.classList.remove(parts[_i]);
                                      }
                      Severity: Major
                      Found in src/dom.js - About 45 mins to fix

                        Avoid deeply nested control flow statements.
                        Open

                                          if (!contains(parts[_i])) {
                                            el.className += " " +  parts[_i];
                                          }
                        Severity: Major
                        Found in src/dom.js - About 45 mins to fix

                          Avoid deeply nested control flow statements.
                          Open

                                                if (ofType ? node.nodeName.toLowerCase() === name : node.nodeType === 1) {
                                                  return false;
                                                }
                          Severity: Major
                          Found in src/sizzle.js - About 45 mins to fix

                            Avoid deeply nested control flow statements.
                            Open

                                            if (contains(parts[_i])) {
                                              el.className.replace(parts[_i], "");
                                            } else {
                                              el.className += " " +  parts[_i];
                                            }
                            Severity: Major
                            Found in src/dom.js - About 45 mins to fix

                              Avoid deeply nested control flow statements.
                              Open

                                              if (!contains(parts[_i])) {
                                                el.classList.add(parts[_i]);
                                              }
                              Severity: Major
                              Found in src/dom.js - About 45 mins to fix

                                Avoid deeply nested control flow statements.
                                Open

                                                  if (contains) {
                                                    el.className.replace(className, "");
                                                  } else {
                                                    el.className += " " +  className;
                                                  }
                                Severity: Major
                                Found in src/dom.js - About 45 mins to fix

                                  Avoid deeply nested control flow statements.
                                  Open

                                                  if (contains(parts[_i])) {
                                                    el.className.replace(parts[_i], "");
                                                  } else {
                                                    el.className += " " +  parts[_i];
                                                  }
                                  Severity: Major
                                  Found in build/hilo.js - About 45 mins to fix

                                    Avoid deeply nested control flow statements.
                                    Open

                                                      if (!contains(parts[_i])) {
                                                        el.classList.add(parts[_i]);
                                                      }
                                    Severity: Major
                                    Found in build/hilo.js - About 45 mins to fix

                                      Avoid deeply nested control flow statements.
                                      Open

                                                        if (contains) {
                                                          el.className.replace(className, "");
                                                        } else {
                                                          el.className += " " +  className;
                                                        }
                                      Severity: Major
                                      Found in build/hilo.js - About 45 mins to fix

                                        Avoid deeply nested control flow statements.
                                        Open

                                                              if (ofType ? node.nodeName.toLowerCase() === name : node.nodeType === 1) {
                                                                return false;
                                                              }
                                        Severity: Major
                                        Found in build/hilo-legacy.js - About 45 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language