jish/pre-commit

View on GitHub

Showing 171 of 259 total issues

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

                                    for (;;) {
                                        c = s.charAt(0);
                                        character += 1;
                                        s = s.substr(1);
                                        if (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 (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 (i >= 0) {
                                            errorAt("Nested HTML comment.",
                                                line, character + i);
                                        }
        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 === '%') {
                                      advance('%');
                                      if (number > 100) {
                                          warning("Expected a percentage and instead saw '{a}'",
                                              token, number);
          Severity: Major
          Found in lib/pre-commit/support/jslint/lint.js - About 45 mins to fix

            Avoid deeply nested control flow statements.
            Open

                                            if (i >= 0) {
                                                break;
                                            }
            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 (t.length !== 4 && t.length !== 7) {
                                                    warningAt("Bad hex color '{a}'.", line,
                                                        from + l, 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 (option.adsafe) {
                                  if (adsafe_id) {
                                      if (v.slice(0, adsafe_id.length) !== adsafe_id) {
                                          warning("ADsafe violation: An id must have a '{a}' prefix",
                                                  nexttoken, adsafe_id);
                  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

                                              if (ValidationTypes.isAny(expression, xDir)) {
                                                      result = true;
                                                      ValidationTypes.isAny(expression, numeric);
                                              } else if (ValidationTypes.isAny(expression, "center")) {
                                                  result = true;
                      Severity: Major
                      Found in lib/pre-commit/support/csslint/csslint.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 (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 (option.newcap && (i < 'A' || i > 'Z')) {
                                                        warning(
                                                "A constructor name should start with an uppercase letter.",
                                                            token);
                                                    }
                            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 !== 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 (tokenStream.LA(3) == Tokens.EQUALS && this.options.ieFilters){
                                                                value = this._ie_function();
                                                            } else {
                                                                value = this._function();
                                                            }
                                Severity: Major
                                Found in lib/pre-commit/support/csslint/csslint.js - About 45 mins to fix

                                  Avoid deeply nested control flow statements.
                                  Open

                                                          if (temp.length == 1){
                                                              reader.reset();
                                                          } else {
                                                              value += temp;
                                                          }
                                  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

                                                                  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 (i <= 0) {
                                                                error("A '<{a}>' must be within '<{b}>'.",
                                                                        token, n, 'body');
                                                            }
                                        Severity: Major
                                        Found in lib/pre-commit/support/jslint/lint.js - About 45 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language