jish/pre-commit

View on GitHub

Showing 171 of 259 total issues

Avoid deeply nested control flow statements.
Open

                            if (xmode === 'html') {
                                if (option.safe) {
                                    warningAt("ADsafe string violation.",
                                            line, character + j);
                                }
Severity: Major
Found in lib/pre-commit/support/jslint/lint.js - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

                            if (left.value === 'Math') {
                                warning("Math is not a function.", left);
                            } else if (option.newcap) {
                                warning(
    "Missing 'new' prefix when invoking a constructor.", left);
    Severity: Major
    Found in lib/pre-commit/support/jslint/lint.js - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

                          } else if (a === 'style') {
                              xmode = 'scriptstring';
                              advance('=');
                              q = nexttoken.id;
                              if (q !== '"' && q !== "'") {
      Severity: Major
      Found in lib/pre-commit/support/jslint/lint.js - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

                                    if (!(prop == "padding" && value.parts.length === 2 && value.parts[1].value === 0)){
                                        reporter.report("Using width with " + prop + " can sometimes make elements larger than you expect.", properties[prop].line, properties[prop].col, rule);
                                    }
        Severity: Major
        Found in lib/pre-commit/support/csslint/csslint.js - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Open

                                      if (CSSLint.Util.indexOf(actual, item) === -1) {
                                          propertiesSpecified = (actual.length === 1) ? actual[0] : (actual.length == 2) ? actual.join(" and ") : actual.join(", ");
                                          reporter.report("The property " + item + " is compatible with " + propertiesSpecified + " and should be included as well.", value.actualNodes[0].line, value.actualNodes[0].col, rule);
                                      }
          Severity: Major
          Found in lib/pre-commit/support/csslint/csslint.js - About 45 mins to fix

            Avoid deeply nested control flow statements.
            Open

                                    if (nexttoken.id !== q) {
                                        error("Missing close quote on script attribute.");
                                    }
            Severity: Major
            Found in lib/pre-commit/support/jslint/lint.js - About 45 mins to fix

              Avoid deeply nested control flow statements.
              Open

                                              if (!nextLine()) {
                                                  errorAt("Unclosed comment.", line, character);
                                              } else {
                                                  if (option.safe && ax.test(s)) {
                                                      warningAt("ADsafe comment violation.", line, character);
              Severity: Major
              Found in lib/pre-commit/support/jslint/lint.js - About 45 mins to fix

                Avoid deeply nested control flow statements.
                Open

                                                for (;;) {
                                                    b = true;
                                                    c = s.charAt(l);
                                                    l += 1;
                                                    switch (c) {
                Severity: Major
                Found in lib/pre-commit/support/jslint/lint.js - About 45 mins to fix

                  Avoid deeply nested control flow statements.
                  Open

                                                  if (combinator !== null){
                                                      selector.push(combinator);
                                                  } else {
                                                      selector.push(ws);
                                                  }
                  Severity: Major
                  Found in lib/pre-commit/support/csslint/csslint.js - About 45 mins to fix

                    Avoid deeply nested control flow statements.
                    Open

                                        if (ValidationTypes.isAny(expression, xDir + " | " + yDir)) {
                                            result = true;
                                            ValidationTypes.isAny(expression, numeric);
                                        }
                    Severity: Major
                    Found in lib/pre-commit/support/csslint/csslint.js - About 45 mins to fix

                      Avoid deeply nested control flow statements.
                      Open

                                                  if (!propertyGroups[prop]) {
                                                      propertyGroups[prop] = {
                                                          full : variations.slice(0),
                                                          actual : [],
                                                          actualNodes: []
                      Severity: Major
                      Found in lib/pre-commit/support/csslint/csslint.js - About 45 mins to fix

                        Avoid deeply nested control flow statements.
                        Open

                                                if (!option.on) {
                                                    warning("Avoid HTML event handlers.");
                                                }
                        Severity: Major
                        Found in lib/pre-commit/support/jslint/lint.js - About 45 mins to fix

                          Avoid deeply nested control flow statements.
                          Open

                                                      if (CSSLint.Util.indexOf(propertyGroups[prop].actual, name.text) === -1) {
                                                          propertyGroups[prop].actual.push(name.text);
                                                          propertyGroups[prop].actualNodes.push(name);
                                                      }
                          Severity: Major
                          Found in lib/pre-commit/support/csslint/csslint.js - About 45 mins to fix

                            Avoid deeply nested control flow statements.
                            Open

                                                        if (modifier.type == "attribute"){
                                                            if (/([\~\|\^\$\*]=)/.test(modifier)){
                                                                reporter.report("Attribute selectors with " + RegExp.$1 + " are slow!", modifier.line, modifier.col, rule);
                                                            }
                                                        }
                            Severity: Major
                            Found in lib/pre-commit/support/csslint/csslint.js - About 45 mins to fix

                              Avoid deeply nested control flow statements.
                              Open

                                                              if (d.isDigit()) {
                                                                  if (token.id !== '.' && xmode !== 'styleproperty') {
                                                                      warningAt("Don't use extra leading zeros '{a}'.",
                                                                          line, character, t);
                                                                  }
                              Severity: Major
                              Found in lib/pre-commit/support/jslint/lint.js - About 45 mins to fix

                                Avoid deeply nested control flow statements.
                                Open

                                                        if (nexttoken.id !== '>') {
                                                            warning("Expected '{a}' and instead saw '{b}'.",
                                                                    nexttoken, '>', nexttoken.value);
                                                        }
                                Severity: Major
                                Found in lib/pre-commit/support/jslint/lint.js - About 45 mins to fix

                                  Avoid deeply nested control flow statements.
                                  Open

                                                                  if (combinator !== null){
                                                                      this._unexpectedToken(tokenStream.LT(1));
                                                                  }
                                  Severity: Major
                                  Found in lib/pre-commit/support/csslint/csslint.js - About 45 mins to fix

                                    Avoid deeply nested control flow statements.
                                    Open

                                                                if (modifier.type == "class"){
                                                                    classCount++;
                                                                }
                                    Severity: Major
                                    Found in lib/pre-commit/support/csslint/csslint.js - About 45 mins to fix

                                      Avoid deeply nested control flow statements.
                                      Open

                                                                      for (;;) {
                                                                          c = s.charAt(0);
                                                                          if ((c < '0' || c > '9') &&
                                                                                  (c < 'a' || c > 'f') &&
                                                                                  (c < 'A' || c > 'F')) {
                                      Severity: Major
                                      Found in lib/pre-commit/support/jslint/lint.js - About 45 mins to fix

                                        Avoid deeply nested control flow statements.
                                        Open

                                                                    if (part.elementName && modifier.type == "id"){
                                                                        reporter.report("Element (" + part + ") is overqualified, just use " + modifier + " without element name.", part.line, part.col, rule);
                                                                    } else if (modifier.type == "class"){
                                        
                                                                        if (!classes[modifier]){
                                        Severity: Major
                                        Found in lib/pre-commit/support/csslint/csslint.js - About 45 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language