jish/pre-commit

View on GitHub

Showing 171 of 259 total issues

Function doOption has 91 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function doOption() {
        var b, obj, filter, o = nexttoken.value, t, v;
        switch (o) {
        case '*/':
            error("Unbegun comment.");
Severity: Major
Found in lib/pre-commit/support/jslint/lint.js - About 3 hrs to fix

    Function _getToken has 91 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        _getToken: function(channel){
    
            var c,
                reader = this._reader,
                token   = null,
    Severity: Major
    Found in lib/pre-commit/support/csslint/csslint.js - About 3 hrs to fix

      Function labelled has 87 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          blockstmt('switch', function () {
              var t = nexttoken,
                  g = false;
              funct['(breakage)'] += 1;
              advance('(');
      Severity: Major
      Found in lib/pre-commit/support/jslint/lint.js - About 3 hrs to fix

        Function jsonValue has 85 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            function jsonValue() {
        
                function jsonObject() {
                    var o = {}, t = nexttoken;
                    advance('{');
        Severity: Major
        Found in lib/pre-commit/support/jslint/lint.js - About 3 hrs to fix

          Function labelled has 81 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              blockstmt('for', function () {
                  var f = option.forin, s, t = nexttoken;
                  funct['(breakage)'] += 1;
                  funct['(loopage)'] += 1;
                  advance('(');
          Severity: Major
          Found in lib/pre-commit/support/jslint/lint.js - About 3 hrs to fix

            Function init has 75 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                init: function(parser, reporter){
                    var rule = this;
            
                    var propertiesToCheck = {
                            display: 1,
            Severity: Major
            Found in lib/pre-commit/support/csslint/csslint.js - About 3 hrs to fix

              Function init has 72 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  init: function(parser, reporter){
                      var rule = this,
                          widthProperties = {
                              border: 1,
                              "border-left": 1,
              Severity: Major
              Found in lib/pre-commit/support/csslint/csslint.js - About 2 hrs to fix

                Function nud has 72 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        nud: function () {
                            var v = this.value,
                                s = scope[v],
                                f;
                            if (typeof s === 'function') {
                Severity: Major
                Found in lib/pre-commit/support/jslint/lint.js - About 2 hrs to fix

                  Function statements has 70 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      function statements(begin) {
                          var a = [], f, p;
                          if (begin && !use_strict() && option.strict) {
                              warning('Missing "use strict" statement.', nexttoken);
                          }
                  Severity: Major
                  Found in lib/pre-commit/support/jslint/lint.js - About 2 hrs to fix

                    Function data has 69 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        itself.data = function () {
                    
                            var data = {functions: []}, fu, globals, implieds = [], f, i, j,
                                members = [], n, unused = [], v;
                            if (itself.errors.length) {
                    Severity: Major
                    Found in lib/pre-commit/support/jslint/lint.js - About 2 hrs to fix

                      Consider simplifying this complex logical expression.
                      Open

                                                  if ((i.id === '(number)' && /[.+\-Ee]/.test(i.value)) ||
                                                          (i.id === '-' && !i.right) ||
                                                          i.id === '(string)' || i.id === '[' ||
                                                          i.id === '{' || i.id === 'true' ||
                                                          i.id === 'false' ||
                      Severity: Critical
                      Found in lib/pre-commit/support/jslint/lint.js - About 2 hrs to fix

                        Function exps has 64 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            infix('(', function (left, that) {
                                adjacent(prevtoken, token);
                                nospace();
                                var n = 0,
                                    p = [];
                        Severity: Major
                        Found in lib/pre-commit/support/jslint/lint.js - About 2 hrs to fix

                          Function styleValue has 63 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              function styleValue(v) {
                                  var i = 0,
                                      n,
                                      once,
                                      match,
                          Severity: Major
                          Found in lib/pre-commit/support/jslint/lint.js - About 2 hrs to fix

                            Function doAttribute has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                function doAttribute(n, a, v) {
                                    var u, x;
                                    if (a === 'id') {
                                        u = typeof v === 'string' ? v.toUpperCase() : '';
                                        if (ids[u] === true) {
                            Severity: Major
                            Found in lib/pre-commit/support/jslint/lint.js - About 2 hrs to fix

                              Function cssColor has 55 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  function cssColor() {
                                      var i, number, value;
                                      if (nexttoken.identifier) {
                                          value = nexttoken.value;
                                          if (value === 'rgb' || value === 'rgba') {
                              Severity: Major
                              Found in lib/pre-commit/support/jslint/lint.js - About 2 hrs to fix

                                Function nud has 54 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                        x.nud = function () {
                                            var b, i, s, seen = {};
                                            b = token.line !== nexttoken.line;
                                            if (b) {
                                                indent += option.indent;
                                Severity: Major
                                Found in lib/pre-commit/support/jslint/lint.js - About 2 hrs to fix

                                  Function init has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      init: function(parser, reporter){
                                          var rule = this,
                                              lastProperty,
                                              propertiesToCheck = {
                                                  color: 1,
                                  Severity: Major
                                  Found in lib/pre-commit/support/csslint/csslint.js - About 2 hrs to fix

                                    Function _simple_selector_sequence has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                                _simple_selector_sequence: function(){
                                                    /*
                                                     * simple_selector_sequence
                                                     *   : [ type_selector | universal ]
                                                     *     [ HASH | class | attrib | pseudo | negation ]*
                                    Severity: Major
                                    Found in lib/pre-commit/support/csslint/csslint.js - About 2 hrs to fix

                                      Function init has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          init: function(parser, reporter){
                                              var rule = this,
                                                  prop, i, len,
                                                  propertiesToCheck = {},
                                                  properties,
                                      Severity: Major
                                      Found in lib/pre-commit/support/csslint/csslint.js - About 2 hrs to fix

                                        Function <bg-position></bg-position> has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                                "<bg-position>": function(expression){
                                                    var types   = this,
                                                        result  = false,
                                                        numeric = "<percentage> | <length>",
                                                        xDir    = "left | right",
                                        Severity: Major
                                        Found in lib/pre-commit/support/csslint/csslint.js - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language