jish/pre-commit

View on GitHub

Showing 171 of 259 total issues

Function _term has 51 lines of code (exceeds 25 allowed). Consider refactoring.
Open

            _term: function(){

                /*
                 * term
                 *   : unary_operator?
Severity: Major
Found in lib/pre-commit/support/csslint/csslint.js - About 2 hrs to fix

    Function advance has 50 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        function advance(id, t) {
            switch (token.id) {
            case '(number)':
                if (nexttoken.id === '.') {
                    warning(
    Severity: Minor
    Found in lib/pre-commit/support/jslint/lint.js - About 2 hrs to fix

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

          init: function(parser, reporter){
              var rule = this;
      
              var headings =  {
                      h1: 0,
      Severity: Minor
      Found in lib/pre-commit/support/csslint/csslint.js - About 1 hr to fix

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

            init: function(parser, reporter){
                var rule = this,
                    lastRule;
        
                function startRule(event){
        Severity: Minor
        Found in lib/pre-commit/support/csslint/csslint.js - About 1 hr to fix

          Function get has 46 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              get: function(channel){
          
                  var tokenInfo   = this._tokenData,
                      reader      = this._reader,
                      value,
          Severity: Minor
          Found in lib/pre-commit/support/csslint/csslint.js - About 1 hr to fix

            Function statement has 46 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                function statement(noindent) {
                    var i = indent, r, s = scope, t = nexttoken;
            
            // We don't like the empty statement.
            
            
            Severity: Minor
            Found in lib/pre-commit/support/jslint/lint.js - About 1 hr to fix

              Function cssCounter has 45 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  function cssCounter() {
                      if (nexttoken.identifier && nexttoken.value === 'counter') {
                          advance();
                          advance('(');
                          if (!nexttoken.identifier) {
              Severity: Minor
              Found in lib/pre-commit/support/jslint/lint.js - About 1 hr to fix

                Function _selector has 43 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                            _selector: function(){
                                /*
                                 * selector
                                 *   : simple_selector_sequence [ combinator simple_selector_sequence ]*
                                 *   ;
                Severity: Minor
                Found in lib/pre-commit/support/csslint/csslint.js - About 1 hr to fix

                  Function verify has 43 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      api.verify = function(text, ruleset){
                  
                          var i       = 0,
                              len     = rules.length,
                              reporter,
                  Severity: Minor
                  Found in lib/pre-commit/support/csslint/csslint.js - About 1 hr to fix

                    Function parse has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        function parse(rbp, initial) {
                            var left;
                            if (nexttoken.id === '(end)') {
                                error("Unexpected early end of program.", token);
                            }
                    Severity: Minor
                    Found in lib/pre-commit/support/jslint/lint.js - About 1 hr to fix

                      Function calculate has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      Specificity.calculate = function(selector){
                      
                          var i, len,
                              part,
                              b=0, c=0, d=0;
                      Severity: Minor
                      Found in lib/pre-commit/support/csslint/csslint.js - About 1 hr to fix

                        Function _ruleset has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                    _ruleset: function(){
                                        /*
                                         * ruleset
                                         *   : selectors_group
                                         *     '{' S* declaration? [ ';' S* declaration? ]* '}' S*
                        Severity: Minor
                        Found in lib/pre-commit/support/csslint/csslint.js - About 1 hr to fix

                          Function _readDeclarations has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                      _readDeclarations: function(checkStart, readMargins){
                                          /*
                                           * Reads the pattern
                                           * S* '{' S* declaration [ ';' S* declaration ]* '}' S*
                                           * or
                          Severity: Minor
                          Found in lib/pre-commit/support/csslint/csslint.js - About 1 hr to fix

                            Function _declaration has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                        _declaration: function(){
                            
                                            /*
                                             * declaration
                                             *   : property ':' S* expr prio?
                            Severity: Minor
                            Found in lib/pre-commit/support/csslint/csslint.js - About 1 hr to fix

                              Function varstatement has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  function varstatement(prefix) {
                              
                              // JavaScript does not have block scope. It only has function scope. So,
                              // declaring a variable in a block can have unexpected consequences.
                              
                              
                              Severity: Minor
                              Found in lib/pre-commit/support/jslint/lint.js - About 1 hr to fix

                                Function _media_query has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                            _media_query: function(){
                                                /*
                                                 * media_query
                                                 *   : [ONLY | NOT]? S* media_type S* [ AND S* expression ]*
                                                 *   | expression [ AND S* expression ]*
                                Severity: Minor
                                Found in lib/pre-commit/support/csslint/csslint.js - About 1 hr to fix

                                  Function assignop has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      function assignop(s, f) {
                                          symbol(s, 20).exps = true;
                                          return infix(s, function (left, that) {
                                              var l;
                                              that.left = left;
                                  Severity: Minor
                                  Found in lib/pre-commit/support/jslint/lint.js - About 1 hr to fix

                                    Function it has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                            function it(type, value) {
                                                var i, t;
                                                if (type === '(color)') {
                                                    t = {type: type};
                                                } else if (type === '(punctuator)' ||
                                    Severity: Minor
                                    Found in lib/pre-commit/support/jslint/lint.js - About 1 hr to fix

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

                                          init: function(parser, reporter){
                                              var rule = this,
                                                  classes = {};
                                      
                                              parser.addListener("startrule", function(event){
                                      Severity: Minor
                                      Found in lib/pre-commit/support/csslint/csslint.js - About 1 hr to fix

                                        Function styleAttribute has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            function styleAttribute() {
                                                var v;
                                                while (nexttoken.id === '*' || nexttoken.id === '#' ||
                                                        nexttoken.value === '_') {
                                                    if (!option.css) {
                                        Severity: Minor
                                        Found in lib/pre-commit/support/jslint/lint.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language