Showing 122 of 122 total issues

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

  parse: function parse(input) {
      var self = this, stack = [0], vstack = [null], lstack = [], table = this.table, yytext = "", yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;
      this.lexer.setInput(input);
      this.lexer.yy = this.yy;
      this.yy.lexer = this.lexer;
Severity: Major
Found in vendor/assets/javascripts/handlebars.js - About 4 hrs to fix

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

      performAction: function anonymous(yytext,yyleng,yylineno,yy,yystate,$$,_$) {
    
      var $0 = $$.length - 1;
      switch (yystate) {
      case 1: return new yy.ProgramNode($$[$0-1], this._$); 
    Severity: Major
    Found in vendor/assets/javascripts/handlebars.js - About 3 hrs to fix

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

          var EventEmitter = function() {
              "use strict";
              var splitter = /\s+/, nextTick = getNextTick();
              return {
                  onSync: onSync,
      Severity: Major
      Found in vendor/assets/javascripts/typeahead.bundle.js - About 3 hrs to fix

        Function anonymous has 84 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          lexer.performAction = function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {
        
        
          function strip(start, end) {
            return yy_.yytext = yy_.yytext.substr(start, yy_.yyleng-end);
        Severity: Major
        Found in vendor/assets/javascripts/handlebars.js - About 3 hrs to fix

          Function Transport has 84 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              var Transport = function() {
                  "use strict";
                  var pendingRequestsCount = 0, pendingRequests = {}, maxPendingRequests = 6, sharedCache = new LruCache(10);
                  function Transport(o) {
                      o = o || {};
          Severity: Major
          Found in vendor/assets/javascripts/typeahead.bundle.js - About 3 hrs to fix

            Similar blocks of code found in 2 locations. Consider refactoring.
            Open

                    if (this.options.stringParams) {
                      if(val.depth) {
                        this.addDepth(val.depth);
                      }
                      this.opcode('getContext', val.depth || 0);
            Severity: Major
            Found in vendor/assets/javascripts/handlebars.js and 1 other location - About 3 hrs to fix
            vendor/assets/javascripts/handlebars.js on lines 1670..1685

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 100.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Similar blocks of code found in 2 locations. Consider refactoring.
            Open

                        _onUpKeyed: function onUpKeyed() {
                            var query = this.input.getQuery();
                            this.dropdown.isEmpty && query.length >= this.minLength ? this.dropdown.update(query) : this.dropdown.moveCursorUp();
                            this.dropdown.open();
                        },
            Severity: Major
            Found in vendor/assets/javascripts/typeahead.bundle.js and 1 other location - About 3 hrs to fix
            vendor/assets/javascripts/typeahead.bundle.js on lines 1557..1561

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 100.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Similar blocks of code found in 2 locations. Consider refactoring.
            Open

                    if(this.options.stringParams) {
                      if(param.depth) {
                        this.addDepth(param.depth);
                      }
            
            
            Severity: Major
            Found in vendor/assets/javascripts/handlebars.js and 1 other location - About 3 hrs to fix
            vendor/assets/javascripts/handlebars.js on lines 1478..1492

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 100.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Similar blocks of code found in 2 locations. Consider refactoring.
            Open

                        _onDownKeyed: function onDownKeyed() {
                            var query = this.input.getQuery();
                            this.dropdown.isEmpty && query.length >= this.minLength ? this.dropdown.update(query) : this.dropdown.moveCursorDown();
                            this.dropdown.open();
                        },
            Severity: Major
            Found in vendor/assets/javascripts/typeahead.bundle.js and 1 other location - About 3 hrs to fix
            vendor/assets/javascripts/typeahead.bundle.js on lines 1552..1556

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 100.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Function registerDefaultHelpers has 79 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

              function registerDefaultHelpers(instance) {
                instance.registerHelper('helperMissing', function(arg) {
                  if(arguments.length === 2) {
                    return undefined;
                  } else {
            Severity: Major
            Found in vendor/assets/javascripts/handlebars.js - About 3 hrs to fix

              Function PersistentStorage has 77 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  var PersistentStorage = function() {
                      "use strict";
                      var ls, methods;
                      try {
                          ls = window.localStorage;
              Severity: Major
              Found in vendor/assets/javascripts/typeahead.bundle.js - About 3 hrs to fix

                Function createToken has 76 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                  , createToken: function (attrs, triggerChange) {
                      var _self = this
                
                      if (typeof attrs === 'string') {
                        attrs = { value: attrs, label: attrs }
                Severity: Major
                Found in vendor/assets/tokenfield/bootstrap-tokenfield.js - About 3 hrs to fix

                  Similar blocks of code found in 2 locations. Consider refactoring.
                  Open

                        this.$input
                          .on('focus',    $.proxy(this.focus, this))
                          .on('blur',     $.proxy(this.blur, this))
                          .on('paste',    $.proxy(this.paste, this))
                          .on('keydown',  $.proxy(this.keydown, this))
                  Severity: Major
                  Found in vendor/assets/tokenfield/bootstrap-tokenfield.js and 1 other location - About 2 hrs to fix
                  vendor/assets/tokenfield/bootstrap-tokenfield.js on lines 399..403

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 93.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 2 locations. Consider refactoring.
                  Open

                        this.$copyHelper
                          .on('focus',    $.proxy(this.focus, this))
                          .on('blur',     $.proxy(this.blur, this))
                          .on('keydown',  $.proxy(this.keydown, this))
                          .on('keyup',    $.proxy(this.keyup, this))
                  Severity: Major
                  Found in vendor/assets/tokenfield/bootstrap-tokenfield.js and 1 other location - About 2 hrs to fix
                  vendor/assets/tokenfield/bootstrap-tokenfield.js on lines 391..395

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 93.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

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

                    , keydown: function (e) {
                  
                        if (!this.focused) return
                  
                        var _self = this
                  Severity: Major
                  Found in vendor/assets/tokenfield/bootstrap-tokenfield.js - About 2 hrs to fix

                    Function oParser has 66 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        var oParser = function() {
                            "use strict";
                            return {
                                local: getLocal,
                                prefetch: getPrefetch,
                    Severity: Major
                    Found in vendor/assets/javascripts/typeahead.bundle.js - About 2 hrs to fix

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

                          var LruCache = function() {
                              "use strict";
                              function LruCache(maxSize) {
                                  this.maxSize = _.isNumber(maxSize) ? maxSize : 100;
                                  this.reset();
                      Severity: Major
                      Found in vendor/assets/javascripts/typeahead.bundle.js - About 2 hrs to fix

                        Function template has 60 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                          function template(templateSpec, env) {
                            if (!env) {
                              throw new Exception("No environment passed to template");
                            }
                        
                        
                        Severity: Major
                        Found in vendor/assets/javascripts/handlebars.js - About 2 hrs to fix

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

                          var __module3__ = (function(__dependency1__) {
                            "use strict";
                            var __exports__ = {};
                            /*jshint -W004 */
                            var SafeString = __dependency1__;
                          Severity: Major
                          Found in vendor/assets/javascripts/handlebars.js - About 2 hrs to fix

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

                                var css = function() {
                                    "use strict";
                                    var css = {
                                        wrapper: {
                                            position: "relative",
                            Severity: Major
                            Found in vendor/assets/javascripts/typeahead.bundle.js - About 2 hrs to fix
                              Severity
                              Category
                              Status
                              Source
                              Language