erikroyall/hilo

View on GitHub

Showing 179 of 292 total issues

Avoid deeply nested control flow statements.
Open

                  if (contains(parts[_i])) {
                    el.className.replace(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) && ++diff) {
                          // Cache the index of each encountered element
                          if (useCache) {
                            (node[expando] || (node[expando] = {}))[type] = [dirruns, diff];
                          }
    Severity: Major
    Found in src/sizzle.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 (v !== undefined) {
                          value[k] = v;
                        } else {
                          delete value[k];
                        }
        Severity: Major
        Found in build/hilo-legacy.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.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(parts[_i])) {
                                  el.className += " " +  parts[_i];
                                }
              Severity: Major
              Found in build/hilo.js - About 45 mins to fix

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

                    function setMatcher(preFilter, selector, matcher, postFilter, postFinder, postSelector) {
                Severity: Minor
                Found in build/hilo-legacy.js - About 45 mins to fix

                  Avoid deeply nested control flow statements.
                  Open

                                  if ((elem = matcherOut[i])) {
                                    // Restore matcherIn since elem is not yet a final match
                                    temp.push((matcherIn[i] = elem));
                                  }
                  Severity: Major
                  Found in src/sizzle.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.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 build/hilo.js - About 45 mins to fix

                        Avoid deeply nested control flow statements.
                        Open

                                      if (context.ownerDocument && (elem = context.ownerDocument.getElementById(m)) &&
                                        contains(context, elem) && elem.id === m) {
                                        results.push(elem);
                                        return results;
                                      }
                        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.className += " " +  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 src/polyfill.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 src/polyfill.js - About 45 mins to fix

                                Avoid deeply nested control flow statements.
                                Open

                                              if (Expr.relative[tokens[j].type]) {
                                                break;
                                              }
                                Severity: Major
                                Found in src/sizzle.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 ((ofType ? node.nodeName.toLowerCase() === name : node.nodeType === 1) && ++diff) {
                                                          // Cache the index of each encountered element
                                                          if (useCache) {
                                                            (node[expando] || (node[expando] = {}))[type] = [dirruns, diff];
                                                          }
                                    Severity: Major
                                    Found in build/hilo-legacy.js - About 45 mins to fix

                                      Avoid deeply nested control flow statements.
                                      Open

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

                                        Avoid deeply nested control flow statements.
                                        Open

                                                          if (!(unmatched[i] || setMatched[i])) {
                                                            setMatched[i] = pop.call(results);
                                                          }
                                        Severity: Major
                                        Found in build/hilo-legacy.js - About 45 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language