jish/pre-commit

View on GitHub

Showing 171 of 259 total issues

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 (/([^\)]+)\(/.test(parts[i])){
                                    colorType = RegExp.$1.toUpperCase();
                                }
    Severity: Major
    Found in lib/pre-commit/support/csslint/csslint.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 (nexttoken.id === '(end)' || nexttoken.id === '(error)') {
                                      error("Missing '>'.", nexttoken);
                                  }
          Severity: Major
          Found in lib/pre-commit/support/jslint/lint.js - About 45 mins to fix

            Avoid deeply nested control flow statements.
            Open

                                    if (q !== '"' && q !== "'") {
                                        error("Missing quote.");
                                    }
            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 (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) {
                                          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

                    Avoid deeply nested control flow statements.
                    Open

                                            switch (s[v]) {
                                            case 'function':
                                            case 'var':
                                            case 'unused':
                                                s[v] = 'closure';
                    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("Use the array literal notation [].", token);
                                              } else {
                                                  i = parse(0);
                                                  c.dimension = 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 (!(prop == "padding" && value.parts.length === 2 && value.parts[0].value === 0)){
                                                        reporter.report("Using height 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 (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 (option.undef) {
                                                        warning("'{a}' is not defined.", token, v);
                                                    } else {
                                                        funct[v] = true;
                                                    }
                            Severity: Major
                            Found in lib/pre-commit/support/jslint/lint.js - About 45 mins to fix

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

                                  function warning(m, t, a, b, c, d) {
                              Severity: Minor
                              Found in lib/pre-commit/support/jslint/lint.js - About 45 mins to fix

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

                                    function error(m, t, a, b, c, d) {
                                Severity: Minor
                                Found in lib/pre-commit/support/jslint/lint.js - About 45 mins to fix

                                  Avoid deeply nested control flow statements.
                                  Open

                                                      if (typeof b !== 'number' || !isFinite(b) || b <= 0 ||
                                                              Math.floor(b) !== b) {
                                                          error("Expected a small integer and instead saw '{a}'.",
                                                                  v, v.value);
                                                      }
                                  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 (t.value === 'maxlen' && o === '/*jslint') {
                                                        b = +v.value;
                                                        if (typeof b !== 'number' || !isFinite(b) || b <= 0 ||
                                                                Math.floor(b) !== b) {
                                                            error("Expected a small integer and instead saw '{a}'.",
                                    Severity: Major
                                    Found in lib/pre-commit/support/jslint/lint.js - About 45 mins to fix

                                      Avoid deeply nested control flow statements.
                                      Open

                                                                  if (classCount > 1){
                                                                      reporter.report("Don't use adjoining classes.", part.line, part.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 (modifier.type == "id"){
                                                                        idCount++;
                                                                    }
                                        Severity: Major
                                        Found in lib/pre-commit/support/csslint/csslint.js - About 45 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language