Jupiterrr/Vorlesungsverzeichnis

View on GitHub
public/api/lib/handlebars-1.0.rc.1.js

Summary

Maintainability
F
2 wks
Test Coverage

Function handlebars has a Cognitive Complexity of 199 (exceeds 5 allowed). Consider refactoring.
Open

var handlebars = (function(){
var parser = {trace: function trace() { },
yy: {},
symbols_: {"error":2,"root":3,"program":4,"EOF":5,"statements":6,"simpleInverse":7,"statement":8,"openInverse":9,"closeBlock":10,"openBlock":11,"mustache":12,"partial":13,"CONTENT":14,"COMMENT":15,"OPEN_BLOCK":16,"inMustache":17,"CLOSE":18,"OPEN_INVERSE":19,"OPEN_ENDBLOCK":20,"path":21,"OPEN":22,"OPEN_UNESCAPED":23,"OPEN_PARTIAL":24,"params":25,"hash":26,"DATA":27,"param":28,"STRING":29,"INTEGER":30,"BOOLEAN":31,"hashSegments":32,"hashSegment":33,"ID":34,"EQUALS":35,"pathSegments":36,"SEP":37,"$accept":0,"$end":1},
terminals_: {2:"error",5:"EOF",14:"CONTENT",15:"COMMENT",16:"OPEN_BLOCK",18:"CLOSE",19:"OPEN_INVERSE",20:"OPEN_ENDBLOCK",22:"OPEN",23:"OPEN_UNESCAPED",24:"OPEN_PARTIAL",27:"DATA",29:"STRING",30:"INTEGER",31:"BOOLEAN",34:"ID",35:"EQUALS",37:"SEP"},
Severity: Minor
Found in public/api/lib/handlebars-1.0.rc.1.js - About 4 days to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

File handlebars-1.0.rc.1.js has 1432 lines of code (exceeds 250 allowed). Consider refactoring.
Open

// lib/handlebars/base.js

/*jshint eqnull:true*/
this.Handlebars = {};

Severity: Major
Found in public/api/lib/handlebars-1.0.rc.1.js - About 3 days to fix

    Function handlebars has 438 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    var handlebars = (function(){
    var parser = {trace: function trace() { },
    yy: {},
    symbols_: {"error":2,"root":3,"program":4,"EOF":5,"statements":6,"simpleInverse":7,"statement":8,"openInverse":9,"closeBlock":10,"openBlock":11,"mustache":12,"partial":13,"CONTENT":14,"COMMENT":15,"OPEN_BLOCK":16,"inMustache":17,"CLOSE":18,"OPEN_INVERSE":19,"OPEN_ENDBLOCK":20,"path":21,"OPEN":22,"OPEN_UNESCAPED":23,"OPEN_PARTIAL":24,"params":25,"hash":26,"DATA":27,"param":28,"STRING":29,"INTEGER":30,"BOOLEAN":31,"hashSegments":32,"hashSegment":33,"ID":34,"EQUALS":35,"pathSegments":36,"SEP":37,"$accept":0,"$end":1},
    terminals_: {2:"error",5:"EOF",14:"CONTENT",15:"COMMENT",16:"OPEN_BLOCK",18:"CLOSE",19:"OPEN_INVERSE",20:"OPEN_ENDBLOCK",22:"OPEN",23:"OPEN_UNESCAPED",24:"OPEN_PARTIAL",27:"DATA",29:"STRING",30:"INTEGER",31:"BOOLEAN",34:"ID",35:"EQUALS",37:"SEP"},
    Severity: Major
    Found in public/api/lib/handlebars-1.0.rc.1.js - About 2 days to fix

      Function lexer has 229 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      var lexer = (function(){
      var lexer = ({EOF:1,
      parseError:function parseError(str, hash) {
              if (this.yy.parser) {
                  this.yy.parser.parseError(str, hash);
      Severity: Major
      Found in public/api/lib/handlebars-1.0.rc.1.js - About 1 day to fix

        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 public/api/lib/handlebars-1.0.rc.1.js - About 4 hrs to fix

          Function anonymous has 89 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 $$[$0-1]; 
          Severity: Major
          Found in public/api/lib/handlebars-1.0.rc.1.js - About 3 hrs to fix

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

            lexer.performAction = function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {
            
            var YYSTATE=YY_START
            switch($avoiding_name_collisions) {
            case 0:
            Severity: Major
            Found in public/api/lib/handlebars-1.0.rc.1.js - About 2 hrs to fix

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

              next:function () {
                      if (this.done) {
                          return this.EOF;
                      }
                      if (!this._input) this.done = true;
              Severity: Minor
              Found in public/api/lib/handlebars-1.0.rc.1.js - About 2 hrs to fix

                Function setupParams has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    setupParams: function(paramSize, params) {
                      var options = [], contexts = [], param, inverse, program;
                
                      options.push("hash:" + this.popStack());
                
                
                Severity: Minor
                Found in public/api/lib/handlebars-1.0.rc.1.js - About 1 hr to fix

                  Function createFunctionContext has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      createFunctionContext: function(asObject) {
                        var locals = this.stackVars.concat(this.registers.list);
                  
                        if(locals.length > 0) {
                          this.source[1] = this.source[1] + ", " + locals.join(", ");
                  Severity: Minor
                  Found in public/api/lib/handlebars-1.0.rc.1.js - About 1 hr to fix

                    Function block has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        block: function(block) {
                          var mustache = block.mustache,
                              program = block.program,
                              inverse = block.inverse;
                    
                    
                    Severity: Minor
                    Found in public/api/lib/handlebars-1.0.rc.1.js - About 1 hr to fix

                      Function compile has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          compile: function(environment, options, context, asObject) {
                            this.environment = environment;
                            this.options = options || {};
                      
                            Handlebars.log(Handlebars.logger.DEBUG, this.environment.disassemble() + "\n\n");
                      Severity: Minor
                      Found in public/api/lib/handlebars-1.0.rc.1.js - About 1 hr to fix

                        Function performAction has 7 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                        performAction: function anonymous(yytext,yyleng,yylineno,yy,yystate,$$,_$) {
                        Severity: Major
                        Found in public/api/lib/handlebars-1.0.rc.1.js - About 50 mins to fix

                          Avoid deeply nested control flow statements.
                          Open

                                              if (this.terminals_[p] && p > 2) {
                                                  expected.push("'" + this.terminals_[p] + "'");
                                              }
                          Severity: Major
                          Found in public/api/lib/handlebars-1.0.rc.1.js - About 45 mins to fix

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

                              invokePartial: function(partial, name, context, helpers, partials, data) {
                            Severity: Minor
                            Found in public/api/lib/handlebars-1.0.rc.1.js - About 45 mins to fix

                              Avoid too many return statements within this function.
                              Open

                              case 19: yy_.yytext = yy_.yytext.substr(1,yy_.yyleng-2).replace(/\\"/g,'"'); return 29; 
                              Severity: Major
                              Found in public/api/lib/handlebars-1.0.rc.1.js - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                case 26: yy_.yytext = yy_.yytext.substr(1, yy_.yyleng-2); return 34; 
                                Severity: Major
                                Found in public/api/lib/handlebars-1.0.rc.1.js - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                      return fn(context);
                                  Severity: Major
                                  Found in public/api/lib/handlebars-1.0.rc.1.js - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                            return false;
                                    Severity: Major
                                    Found in public/api/lib/handlebars-1.0.rc.1.js - About 30 mins to fix

                                      Avoid too many return statements within this function.
                                      Open

                                      case 18: this.popState(); return 18; 
                                      Severity: Major
                                      Found in public/api/lib/handlebars-1.0.rc.1.js - About 30 mins to fix

                                        Avoid too many return statements within this function.
                                        Open

                                        case 21: yy_.yytext = yy_.yytext.substr(1); return 27; 
                                        Severity: Major
                                        Found in public/api/lib/handlebars-1.0.rc.1.js - About 30 mins to fix

                                          Avoid too many return statements within this function.
                                          Open

                                          case 20: yy_.yytext = yy_.yytext.substr(1,yy_.yyleng-2).replace(/\\"/g,'"'); return 29; 
                                          Severity: Major
                                          Found in public/api/lib/handlebars-1.0.rc.1.js - About 30 mins to fix

                                            Avoid too many return statements within this function.
                                            Open

                                                        return this.parseError('Lexical error on line '+(this.yylineno+1)+'. Unrecognized text.\n'+this.showPosition(),
                                                                {text: "", token: null, line: this.yylineno});
                                            Severity: Major
                                            Found in public/api/lib/handlebars-1.0.rc.1.js - About 30 mins to fix

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

                                              table: [{3:1,4:2,5:[2,4],6:3,8:4,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,11],22:[1,13],23:[1,14],24:[1,15]},{1:[3]},{5:[1,16]},{5:[2,3],7:17,8:18,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,19],20:[2,3],22:[1,13],23:[1,14],24:[1,15]},{5:[2,5],14:[2,5],15:[2,5],16:[2,5],19:[2,5],20:[2,5],22:[2,5],23:[2,5],24:[2,5]},{4:20,6:3,8:4,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,11],20:[2,4],22:[1,13],23:[1,14],24:[1,15]},{4:21,6:3,8:4,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,11],20:[2,4],22:[1,13],23:[1,14],24:[1,15]},{5:[2,9],14:[2,9],15:[2,9],16:[2,9],19:[2,9],20:[2,9],22:[2,9],23:[2,9],24:[2,9]},{5:[2,10],14:[2,10],15:[2,10],16:[2,10],19:[2,10],20:[2,10],22:[2,10],23:[2,10],24:[2,10]},{5:[2,11],14:[2,11],15:[2,11],16:[2,11],19:[2,11],20:[2,11],22:[2,11],23:[2,11],24:[2,11]},{5:[2,12],14:[2,12],15:[2,12],16:[2,12],19:[2,12],20:[2,12],22:[2,12],23:[2,12],24:[2,12]},{17:22,21:23,27:[1,24],34:[1,26],36:25},{17:27,21:23,27:[1,24],34:[1,26],36:25},{17:28,21:23,27:[1,24],34:[1,26],36:25},{17:29,21:23,27:[1,24],34:[1,26],36:25},{21:30,34:[1,26],36:25},{1:[2,1]},{6:31,8:4,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,11],22:[1,13],23:[1,14],24:[1,15]},{5:[2,6],14:[2,6],15:[2,6],16:[2,6],19:[2,6],20:[2,6],22:[2,6],23:[2,6],24:[2,6]},{17:22,18:[1,32],21:23,27:[1,24],34:[1,26],36:25},{10:33,20:[1,34]},{10:35,20:[1,34]},{18:[1,36]},{18:[2,24],21:41,25:37,26:38,27:[1,45],28:39,29:[1,42],30:[1,43],31:[1,44],32:40,33:46,34:[1,47],36:25},{18:[2,25]},{18:[2,41],27:[2,41],29:[2,41],30:[2,41],31:[2,41],34:[2,41],37:[1,48]},{18:[2,43],27:[2,43],29:[2,43],30:[2,43],31:[2,43],34:[2,43],37:[2,43]},{18:[1,49]},{18:[1,50]},{18:[1,51]},{18:[1,52],21:53,34:[1,26],36:25},{5:[2,2],8:18,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,11],20:[2,2],22:[1,13],23:[1,14],24:[1,15]},{14:[2,20],15:[2,20],16:[2,20],19:[2,20],22:[2,20],23:[2,20],24:[2,20]},{5:[2,7],14:[2,7],15:[2,7],16:[2,7],19:[2,7],20:[2,7],22:[2,7],23:[2,7],24:[2,7]},{21:54,34:[1,26],36:25},{5:[2,8],14:[2,8],15:[2,8],16:[2,8],19:[2,8],20:[2,8],22:[2,8],23:[2,8],24:[2,8]},{14:[2,14],15:[2,14],16:[2,14],19:[2,14],20:[2,14],22:[2,14],23:[2,14],24:[2,14]},{18:[2,22],21:41,26:55,27:[1,45],28:56,29:[1,42],30:[1,43],31:[1,44],32:40,33:46,34:[1,47],36:25},{18:[2,23]},{18:[2,27],27:[2,27],29:[2,27],30:[2,27],31:[2,27],34:[2,27]},{18:[2,33],33:57,34:[1,58]},{18:[2,28],27:[2,28],29:[2,28],30:[2,28],31:[2,28],34:[2,28]},{18:[2,29],27:[2,29],29:[2,29],30:[2,29],31:[2,29],34:[2,29]},{18:[2,30],27:[2,30],29:[2,30],30:[2,30],31:[2,30],34:[2,30]},{18:[2,31],27:[2,31],29:[2,31],30:[2,31],31:[2,31],34:[2,31]},{18:[2,32],27:[2,32],29:[2,32],30:[2,32],31:[2,32],34:[2,32]},{18:[2,35],34:[2,35]},{18:[2,43],27:[2,43],29:[2,43],30:[2,43],31:[2,43],34:[2,43],35:[1,59],37:[2,43]},{34:[1,60]},{14:[2,13],15:[2,13],16:[2,13],19:[2,13],20:[2,13],22:[2,13],23:[2,13],24:[2,13]},{5:[2,16],14:[2,16],15:[2,16],16:[2,16],19:[2,16],20:[2,16],22:[2,16],23:[2,16],24:[2,16]},{5:[2,17],14:[2,17],15:[2,17],16:[2,17],19:[2,17],20:[2,17],22:[2,17],23:[2,17],24:[2,17]},{5:[2,18],14:[2,18],15:[2,18],16:[2,18],19:[2,18],20:[2,18],22:[2,18],23:[2,18],24:[2,18]},{18:[1,61]},{18:[1,62]},{18:[2,21]},{18:[2,26],27:[2,26],29:[2,26],30:[2,26],31:[2,26],34:[2,26]},{18:[2,34],34:[2,34]},{35:[1,59]},{21:63,27:[1,67],29:[1,64],30:[1,65],31:[1,66],34:[1,26],36:25},{18:[2,42],27:[2,42],29:[2,42],30:[2,42],31:[2,42],34:[2,42],37:[2,42]},{5:[2,19],14:[2,19],15:[2,19],16:[2,19],19:[2,19],20:[2,19],22:[2,19],23:[2,19],24:[2,19]},{5:[2,15],14:[2,15],15:[2,15],16:[2,15],19:[2,15],20:[2,15],22:[2,15],23:[2,15],24:[2,15]},{18:[2,36],34:[2,36]},{18:[2,37],34:[2,37]},{18:[2,38],34:[2,38]},{18:[2,39],34:[2,39]},{18:[2,40],34:[2,40]}],
                                              Severity: Major
                                              Found in public/api/lib/handlebars-1.0.rc.1.js and 12 other locations - About 1 hr to fix
                                              public/api/lib/handlebars-1.0.rc.1.js on lines 213..213
                                              public/api/lib/handlebars-1.0.rc.1.js on lines 213..213
                                              public/api/lib/handlebars-1.0.rc.1.js on lines 213..213
                                              public/api/lib/handlebars-1.0.rc.1.js on lines 213..213
                                              public/api/lib/handlebars-1.0.rc.1.js on lines 213..213
                                              public/api/lib/handlebars-1.0.rc.1.js on lines 213..213
                                              public/api/lib/handlebars-1.0.rc.1.js on lines 213..213
                                              public/api/lib/handlebars-1.0.rc.1.js on lines 213..213
                                              public/api/lib/handlebars-1.0.rc.1.js on lines 213..213
                                              public/api/lib/handlebars-1.0.rc.1.js on lines 213..213
                                              public/api/lib/handlebars-1.0.rc.1.js on lines 213..213
                                              public/api/lib/handlebars-1.0.rc.1.js on lines 213..213

                                              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 74.

                                              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.depths[depth]) {
                                                      this.depths[depth] = true;
                                                      this.depths.list.push(depth);
                                                    }
                                              Severity: Minor
                                              Found in public/api/lib/handlebars-1.0.rc.1.js and 1 other location - About 50 mins to fix
                                              public/api/lib/handlebars-1.0.rc.1.js on lines 1669..1672

                                              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 51.

                                              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.registers[name]) {
                                                      this.registers[name] = true;
                                                      this.registers.list.push(name);
                                                    }
                                              Severity: Minor
                                              Found in public/api/lib/handlebars-1.0.rc.1.js and 1 other location - About 50 mins to fix
                                              public/api/lib/handlebars-1.0.rc.1.js on lines 1080..1083

                                              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 51.

                                              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 3 locations. Consider refactoring.
                                              Open

                                              case 13: this.$ = new yy.MustacheNode($$[$0-1][0], $$[$0-1][1]); 
                                              break;
                                              Severity: Major
                                              Found in public/api/lib/handlebars-1.0.rc.1.js and 2 other locations - About 40 mins to fix
                                              public/api/lib/handlebars-1.0.rc.1.js on lines 151..152
                                              public/api/lib/handlebars-1.0.rc.1.js on lines 155..156

                                              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 49.

                                              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

                                              case 19: yy_.yytext = yy_.yytext.substr(1,yy_.yyleng-2).replace(/\\"/g,'"'); return 29; 
                                              break;
                                              Severity: Minor
                                              Found in public/api/lib/handlebars-1.0.rc.1.js and 1 other location - About 40 mins to fix
                                              public/api/lib/handlebars-1.0.rc.1.js on lines 543..544

                                              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 49.

                                              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 3 locations. Consider refactoring.
                                              Open

                                              case 14: this.$ = new yy.MustacheNode($$[$0-1][0], $$[$0-1][1]); 
                                              break;
                                              Severity: Major
                                              Found in public/api/lib/handlebars-1.0.rc.1.js and 2 other locations - About 40 mins to fix
                                              public/api/lib/handlebars-1.0.rc.1.js on lines 149..150
                                              public/api/lib/handlebars-1.0.rc.1.js on lines 155..156

                                              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 49.

                                              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

                                              case 20: yy_.yytext = yy_.yytext.substr(1,yy_.yyleng-2).replace(/\\"/g,'"'); return 29; 
                                              break;
                                              Severity: Minor
                                              Found in public/api/lib/handlebars-1.0.rc.1.js and 1 other location - About 40 mins to fix
                                              public/api/lib/handlebars-1.0.rc.1.js on lines 541..542

                                              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 49.

                                              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 3 locations. Consider refactoring.
                                              Open

                                              case 16: this.$ = new yy.MustacheNode($$[$0-1][0], $$[$0-1][1]); 
                                              break;
                                              Severity: Major
                                              Found in public/api/lib/handlebars-1.0.rc.1.js and 2 other locations - About 40 mins to fix
                                              public/api/lib/handlebars-1.0.rc.1.js on lines 149..150
                                              public/api/lib/handlebars-1.0.rc.1.js on lines 151..152

                                              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 49.

                                              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 4 locations. Consider refactoring.
                                              Open

                                              case 34: $$[$0-1].push($$[$0]); this.$ = $$[$0-1]; 
                                              break;
                                              Severity: Major
                                              Found in public/api/lib/handlebars-1.0.rc.1.js and 3 other locations - About 35 mins to fix
                                              public/api/lib/handlebars-1.0.rc.1.js on lines 135..136
                                              public/api/lib/handlebars-1.0.rc.1.js on lines 175..176
                                              public/api/lib/handlebars-1.0.rc.1.js on lines 207..208

                                              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 47.

                                              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 4 locations. Consider refactoring.
                                              Open

                                              case 42: $$[$0-2].push($$[$0]); this.$ = $$[$0-2]; 
                                              break;
                                              Severity: Major
                                              Found in public/api/lib/handlebars-1.0.rc.1.js and 3 other locations - About 35 mins to fix
                                              public/api/lib/handlebars-1.0.rc.1.js on lines 135..136
                                              public/api/lib/handlebars-1.0.rc.1.js on lines 175..176
                                              public/api/lib/handlebars-1.0.rc.1.js on lines 191..192

                                              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 47.

                                              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 4 locations. Consider refactoring.
                                              Open

                                              case 26: $$[$0-1].push($$[$0]); this.$ = $$[$0-1]; 
                                              break;
                                              Severity: Major
                                              Found in public/api/lib/handlebars-1.0.rc.1.js and 3 other locations - About 35 mins to fix
                                              public/api/lib/handlebars-1.0.rc.1.js on lines 135..136
                                              public/api/lib/handlebars-1.0.rc.1.js on lines 191..192
                                              public/api/lib/handlebars-1.0.rc.1.js on lines 207..208

                                              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 47.

                                              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 4 locations. Consider refactoring.
                                              Open

                                              case 6: $$[$0-1].push($$[$0]); this.$ = $$[$0-1]; 
                                              break;
                                              Severity: Major
                                              Found in public/api/lib/handlebars-1.0.rc.1.js and 3 other locations - About 35 mins to fix
                                              public/api/lib/handlebars-1.0.rc.1.js on lines 175..176
                                              public/api/lib/handlebars-1.0.rc.1.js on lines 191..192
                                              public/api/lib/handlebars-1.0.rc.1.js on lines 207..208

                                              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 47.

                                              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

                                              There are no issues that match your filters.

                                              Category
                                              Status