dockyard/es6_module_transpiler-rails

View on GitHub
lib/es6_module_transpiler/support/es6-module-transpiler.js

Summary

Maintainability
F
3 mos
Test Coverage

Function 1 has 4426 lines of code (exceeds 25 allowed). Consider refactoring.
Open

!function(e){"object"==typeof exports?module.exports=e():"function"==typeof define&&define.amd?define(e):"undefined"!=typeof window?window.ModuleTranspiler=e():"undefined"!=typeof global?global.ModuleTranspiler=e():"undefined"!=typeof self&&(self.ModuleTranspiler=e())}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
/*
  Copyright (C) 2013 Ariya Hidayat <ariya.hidayat@gmail.com>
  Copyright (C) 2013 Thaddee Tyl <thaddee.tyl@gmail.com>
  Copyright (C) 2012 Ariya Hidayat <ariya.hidayat@gmail.com>
Severity: Major
Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 3 wks to fix

    File es6-module-transpiler.js has 5917 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    // Copyright 2012 Traceur Authors.
    //
    // Licensed under the Apache License, Version 2.0 (the "License");
    // you may not use this file except in compliance with the License.
    // You may obtain a copy of the License at
    Severity: Major
    Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 2 wks to fix

      Function scanPunctuator has 171 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          function scanPunctuator() {
              var start = index,
                  code = source.charCodeAt(index),
                  code2,
                  ch1 = source[index],
      Severity: Major
      Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 6 hrs to fix

        Function 7 has 147 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        },{"./amd_compiler":3,"./cjs_compiler":4,"./globals_compiler":7,"./parser":9,"./utils":11,"./yui_compiler":12}],7:[function(require,module,exports){
        "use strict";
        var $__superDescriptor = function(proto, name) {
          if (!proto) throw new TypeError('super is null');
          return Object.getPropertyDescriptor(proto, name);
        Severity: Major
        Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 5 hrs to fix

          Function 4 has 137 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          },{"./abstract_compiler":2,"./source_modifier":10}],4:[function(require,module,exports){
          "use strict";
          var $__superDescriptor = function(proto, name) {
            if (!proto) throw new TypeError('super is null');
            return Object.getPropertyDescriptor(proto, name);
          Severity: Major
          Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 5 hrs to fix

            Function 3 has 131 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            },{"./compile_error":5,"./utils":11}],3:[function(require,module,exports){
            "use strict";
            var $__superDescriptor = function(proto, name) {
              if (!proto) throw new TypeError('super is null');
              return Object.getPropertyDescriptor(proto, name);
            Severity: Major
            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 5 hrs to fix

              Function 2 has 127 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              },{}],2:[function(require,module,exports){
              "use strict";
              var $__getDescriptors = function(object) {
                var descriptors = {}, name, names = Object.getOwnPropertyNames(object);
                for (var i = 0; i < names.length; i++) {
              Severity: Major
              Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 5 hrs to fix

                Function scanComment has 116 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    function scanComment() {
                        var comment, ch, loc, start, blockComment, lineComment;
                
                        comment = '';
                        blockComment = false;
                Severity: Major
                Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 4 hrs to fix

                  Function 11 has 115 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  },{}],11:[function(require,module,exports){
                  "use strict";
                  var $__getDescriptors = function(object) {
                    var descriptors = {}, name, names = Object.getOwnPropertyNames(object);
                    for (var i = 0; i < names.length; i++) {
                  Severity: Major
                  Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 4 hrs to fix

                    Function 12 has 114 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    },{}],12:[function(require,module,exports){
                    "use strict";
                    var $__superDescriptor = function(proto, name) {
                      if (!proto) throw new TypeError('super is null');
                      return Object.getPropertyDescriptor(proto, name);
                    Severity: Major
                    Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 4 hrs to fix

                      Function scanTemplate has 108 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          function scanTemplate() {
                              var cooked = '', ch, start, terminated, tail, restore, unescaped, code, octal;
                      
                              terminated = false;
                              tail = false;
                      Severity: Major
                      Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 4 hrs to fix

                        Function 9 has 107 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        },{"./abstract_compiler":2,"./amd_compiler":3,"./cjs_compiler":4,"./compiler":6,"./globals_compiler":7,"./source_modifier":10,"./yui_compiler":12}],9:[function(require,module,exports){
                        "use strict";
                        var $__getDescriptors = function(object) {
                          var descriptors = {}, name, names = Object.getOwnPropertyNames(object);
                          for (var i = 0; i < names.length; i++) {
                        Severity: Major
                        Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 4 hrs to fix

                          Function GlobalsCompiler has 107 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          var GlobalsCompiler = function($__super) {
                            'use strict';
                            var $__proto = $__getProtoParent($__super);
                            var $GlobalsCompiler = ($__createClass)({
                              constructor: function() {
                          Severity: Major
                          Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 4 hrs to fix

                            Function AbstractCompiler has 104 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            var AbstractCompiler = function() {
                              'use strict';
                              var $AbstractCompiler = ($__createClassNoExtends)({
                                constructor: function(compiler, options) {
                                  this.compiler = compiler;
                            Severity: Major
                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 4 hrs to fix

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

                                  function patch() {
                              
                                      var wrapTracking;
                              
                                      if (extra.comments) {
                              Severity: Major
                              Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 4 hrs to fix

                                Function scanStringLiteral has 93 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    function scanStringLiteral() {
                                        var str = '', quote, start, ch, code, unescaped, restore, octal = false;
                                
                                        quote = source[index];
                                        assert((quote === '\'' || quote === '"'),
                                Severity: Major
                                Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 3 hrs to fix

                                  Function CJSCompiler has 92 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  var CJSCompiler = function($__super) {
                                    'use strict';
                                    var $__proto = $__getProtoParent($__super);
                                    var $CJSCompiler = ($__createClass)({
                                      constructor: function() {
                                  Severity: Major
                                  Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 3 hrs to fix

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

                                    var AMDCompiler = function($__super) {
                                      'use strict';
                                      var $__proto = $__getProtoParent($__super);
                                      var $AMDCompiler = ($__createClass)({
                                        constructor: function() {
                                    Severity: Major
                                    Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 3 hrs to fix

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

                                      var Parser = function() {
                                        'use strict';
                                        var $Parser = ($__createClassNoExtends)({
                                          constructor: function(script) {
                                            this.parse(script);
                                      Severity: Major
                                      Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 3 hrs to fix

                                        Function scanRegExp has 86 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            function scanRegExp() {
                                                var str, ch, start, pattern, flags, value, classMarker = false, restore, terminated = false;
                                        
                                                lookahead = null;
                                                skipComment();
                                        Severity: Major
                                        Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 3 hrs to fix

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

                                              function scanNumericLiteral() {
                                                  var number, start, ch, octal;
                                          
                                                  ch = source[index];
                                                  assert(isDecimalDigit(ch.charCodeAt(0)) || (ch === '.'),
                                          Severity: Major
                                          Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 3 hrs to fix

                                            Function tokenize has 80 lines of code (exceeds 25 allowed). Consider refactoring.
                                            Open

                                                function tokenize(code, options) {
                                                    var toString,
                                                        token,
                                                        tokens;
                                            
                                            
                                            Severity: Major
                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 3 hrs to fix

                                              Function parseMethodDefinition has 78 lines of code (exceeds 25 allowed). Consider refactoring.
                                              Open

                                                  function parseMethodDefinition(existingPropNames) {
                                                      var token, key, param, propType, isValidDuplicateProp = false;
                                              
                                                      if (lookahead.value === 'static') {
                                                          propType = ClassPropertyType.static;
                                              Severity: Major
                                              Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 3 hrs to fix

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

                                                    function parse(code, options) {
                                                        var program, toString;
                                                
                                                        toString = String;
                                                        if (typeof code !== 'string' && !(code instanceof String)) {
                                                Severity: Major
                                                Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 3 hrs to fix

                                                  Function YUICompiler has 74 lines of code (exceeds 25 allowed). Consider refactoring.
                                                  Open

                                                  var YUICompiler = function($__super) {
                                                    'use strict';
                                                    var $__proto = $__getProtoParent($__super);
                                                    var $YUICompiler = ($__createClass)({
                                                      constructor: function() {
                                                  Severity: Major
                                                  Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 2 hrs to fix

                                                    Function parseForStatement has 71 lines of code (exceeds 25 allowed). Consider refactoring.
                                                    Open

                                                        function parseForStatement(opts) {
                                                            var init, test, update, left, right, body, operator, oldInIteration;
                                                            init = test = update = null;
                                                            expectKeyword('for');
                                                    
                                                    
                                                    Severity: Major
                                                    Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 2 hrs to fix

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

                                                          function parseStatement() {
                                                              var type = lookahead.type,
                                                                  expr,
                                                                  labeledBody,
                                                                  key;
                                                      Severity: Major
                                                      Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 2 hrs to fix

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

                                                            function skipComment() {
                                                                var ch, blockComment, lineComment;
                                                        
                                                                blockComment = false;
                                                                lineComment = false;
                                                        Severity: Major
                                                        Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 2 hrs to fix

                                                          Function parseExportDeclaration has 62 lines of code (exceeds 25 allowed). Consider refactoring.
                                                          Open

                                                              function parseExportDeclaration() {
                                                                  var previousAllowDefault, decl, def, src, specifiers;
                                                          
                                                                  expectKeyword('export');
                                                          
                                                          
                                                          Severity: Major
                                                          Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 2 hrs to fix

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

                                                                function wrapTrackingFunction(range, loc) {
                                                            
                                                                    return function (parseFunction) {
                                                            
                                                                        function isBinary(node) {
                                                            Severity: Major
                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 2 hrs to fix

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

                                                              },{}],6:[function(require,module,exports){
                                                              "use strict";
                                                              var $__getDescriptors = function(object) {
                                                                var descriptors = {}, name, names = Object.getOwnPropertyNames(object);
                                                                for (var i = 0; i < names.length; i++) {
                                                              Severity: Major
                                                              Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 2 hrs to fix

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

                                                                    function parseArrayInitialiser() {
                                                                        var elements = [], blocks = [], filter = null, tmp, possiblecomprehension = true, body;
                                                                
                                                                        expect('[');
                                                                        while (!match(']')) {
                                                                Severity: Major
                                                                Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 2 hrs to fix

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

                                                                      function parsePrimaryExpression() {
                                                                          var type, token;
                                                                  
                                                                          token = lookahead;
                                                                          type = lookahead.type;
                                                                  Severity: Major
                                                                  Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 2 hrs to fix

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

                                                                        function binaryPrecedence(token, allowIn) {
                                                                            var prec = 0;
                                                                    
                                                                            if (token.type !== Token.Punctuator && token.type !== Token.Keyword) {
                                                                                return 0;
                                                                    Severity: Major
                                                                    Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 2 hrs to fix

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

                                                                      },{"esprima":1}],10:[function(require,module,exports){
                                                                      "use strict";
                                                                      var $__getDescriptors = function(object) {
                                                                        var descriptors = {}, name, names = Object.getOwnPropertyNames(object);
                                                                        for (var i = 0; i < names.length; i++) {
                                                                      Severity: Major
                                                                      Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 2 hrs to fix

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

                                                                            buildExports: function() {
                                                                              var source = this.source, exports_ = this.exports;
                                                                              {
                                                                                var $__2 = traceur.runtime.getIterator(exports_);
                                                                                try {
                                                                        Severity: Major
                                                                        Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 2 hrs to fix

                                                                          Function parseFunctionSourceElements has 52 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                          Open

                                                                              function parseFunctionSourceElements() {
                                                                                  var sourceElement, sourceElements = [], token, directive, firstRestricted,
                                                                                      oldLabelSet, oldInIteration, oldInSwitch, oldInFunctionBody, oldParenthesizedCount;
                                                                          
                                                                                  expect('{');
                                                                          Severity: Major
                                                                          Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 2 hrs to fix

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

                                                                                function unpatch() {
                                                                                    if (typeof extra.skipComment === 'function') {
                                                                                        skipComment = extra.skipComment;
                                                                                    }
                                                                            
                                                                            
                                                                            Severity: Major
                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 2 hrs to fix

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

                                                                                  function reinterpretAsCoverFormalsList(expressions) {
                                                                                      var i, len, param, params, defaults, defaultCount, options, rest;
                                                                              
                                                                                      params = [];
                                                                                      defaults = [];
                                                                              Severity: Minor
                                                                              Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 1 hr to fix

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

                                                                                    function parseFunctionDeclaration() {
                                                                                        var id, body, token, tmp, firstRestricted, message, previousStrict, previousYieldAllowed, generator, expression;
                                                                                
                                                                                        expectKeyword('function');
                                                                                
                                                                                
                                                                                Severity: Minor
                                                                                Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 1 hr to fix

                                                                                  Function parseObjectProperty has 47 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                  Open

                                                                                      function parseObjectProperty() {
                                                                                          var token, key, id, value, param;
                                                                                  
                                                                                          token = lookahead;
                                                                                  
                                                                                  
                                                                                  Severity: Minor
                                                                                  Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 1 hr to fix

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

                                                                                        function advanceSlash() {
                                                                                            var prevToken,
                                                                                                checkToken;
                                                                                            // Using the following algorithm:
                                                                                            // https://github.com/mozilla/sweet.js/wiki/design
                                                                                    Severity: Minor
                                                                                    Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 1 hr to fix

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

                                                                                          function parseFunctionExpression() {
                                                                                              var token, id = null, firstRestricted, message, tmp, body, previousStrict, previousYieldAllowed, generator, expression;
                                                                                      
                                                                                              expectKeyword('function');
                                                                                      
                                                                                      
                                                                                      Severity: Minor
                                                                                      Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 1 hr to fix

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

                                                                                        },{"./abstract_compiler":2,"./source_modifier":10,"./utils":11}],5:[function(require,module,exports){
                                                                                        "use strict";
                                                                                        var $__superDescriptor = function(proto, name) {
                                                                                          if (!proto) throw new TypeError('super is null');
                                                                                          return Object.getPropertyDescriptor(proto, name);
                                                                                        Severity: Minor
                                                                                        Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 1 hr to fix

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

                                                                                              function parseAssignmentExpression() {
                                                                                                  var expr, token, params, oldParenthesizedCount;
                                                                                          
                                                                                                  if (matchKeyword('yield')) {
                                                                                                      return parseYieldExpression();
                                                                                          Severity: Minor
                                                                                          Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 1 hr to fix

                                                                                            Function parseParam has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                            Open

                                                                                                function parseParam(options) {
                                                                                                    var token, rest, param, def;
                                                                                            
                                                                                                    token = lookahead;
                                                                                                    if (token.value === '...') {
                                                                                            Severity: Minor
                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 1 hr to fix

                                                                                              Function parseExpression has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                              Open

                                                                                                  function parseExpression() {
                                                                                                      var expr, expressions, sequence, coverFormalsList, spreadFound, oldParenthesizedCount;
                                                                                              
                                                                                                      oldParenthesizedCount = state.parenthesizedCount;
                                                                                              
                                                                                              
                                                                                              Severity: Minor
                                                                                              Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 1 hr to fix

                                                                                                Function parseObjectInitialiser has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                Open

                                                                                                    function parseObjectInitialiser() {
                                                                                                        var properties = [], property, name, key, kind, map = {}, toString = String;
                                                                                                
                                                                                                        expect('{');
                                                                                                
                                                                                                
                                                                                                Severity: Minor
                                                                                                Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 1 hr to fix

                                                                                                  Function SourceModifier has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                  Open

                                                                                                  var SourceModifier = function() {
                                                                                                    'use strict';
                                                                                                    var $SourceModifier = ($__createClassNoExtends)({
                                                                                                      constructor: function(source) {
                                                                                                        this.source = source;
                                                                                                  Severity: Minor
                                                                                                  Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 1 hr to fix

                                                                                                    Function Compiler has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                    Open

                                                                                                    var Compiler = function() {
                                                                                                      'use strict';
                                                                                                      var $Compiler = ($__createClassNoExtends)({
                                                                                                        constructor: function(string, moduleName, options) {
                                                                                                          if (moduleName == null) {
                                                                                                    Severity: Minor
                                                                                                    Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 1 hr to fix

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

                                                                                                          function advance() {
                                                                                                              var ch;
                                                                                                      
                                                                                                              skipComment();
                                                                                                      
                                                                                                      
                                                                                                      Severity: Minor
                                                                                                      Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 1 hr to fix

                                                                                                        Function polyfillString has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                        Open

                                                                                                          function polyfillString(String) {
                                                                                                            // Harmony String Extras
                                                                                                            // http://wiki.ecmascript.org/doku.php?id=harmony:string_extras
                                                                                                            Object.defineProperties(String.prototype, {
                                                                                                              startsWith: method(function(s) {
                                                                                                        Severity: Minor
                                                                                                        Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 1 hr to fix

                                                                                                          Function getEscapedIdentifier has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                          Open

                                                                                                              function getEscapedIdentifier() {
                                                                                                                  var ch, id;
                                                                                                          
                                                                                                                  ch = source.charCodeAt(index++);
                                                                                                                  id = String.fromCharCode(ch);
                                                                                                          Severity: Minor
                                                                                                          Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 1 hr to fix

                                                                                                            Function visit has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                            Open

                                                                                                                        function visit(node) {
                                                                                                                            var start, end;
                                                                                                            
                                                                                                                            if (isBinary(node.left)) {
                                                                                                                                visit(node.left);
                                                                                                            Severity: Minor
                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 1 hr to fix

                                                                                                              Function parseBinaryExpression has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                              Open

                                                                                                                  function parseBinaryExpression() {
                                                                                                                      var expr, token, prec, previousAllowIn, stack, right, operator, left, i;
                                                                                                              
                                                                                                                      previousAllowIn = state.allowIn;
                                                                                                                      state.allowIn = true;
                                                                                                              Severity: Minor
                                                                                                              Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 1 hr to fix

                                                                                                                Function walk has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                Open

                                                                                                                    walk: function(node) {
                                                                                                                      if (node.type) {
                                                                                                                        var processor = this['process' + node.type];
                                                                                                                        if (processor) {
                                                                                                                          var result = processor.call(this, node);
                                                                                                                Severity: Minor
                                                                                                                Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 1 hr to fix

                                                                                                                  Function reinterpretAsAssignmentBindingPattern has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                  Open

                                                                                                                      function reinterpretAsAssignmentBindingPattern(expr) {
                                                                                                                          var i, len, property, element;
                                                                                                                  
                                                                                                                          if (expr.type === Syntax.ObjectExpression) {
                                                                                                                              expr.type = Syntax.ObjectPattern;
                                                                                                                  Severity: Minor
                                                                                                                  Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 1 hr to fix

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

                                                                                                                        function parseProgramElements() {
                                                                                                                            var sourceElement, sourceElements = [], token, directive, firstRestricted;
                                                                                                                    
                                                                                                                            while (index < length) {
                                                                                                                                token = lookahead;
                                                                                                                    Severity: Minor
                                                                                                                    Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 1 hr to fix

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

                                                                                                                          function collectRegex() {
                                                                                                                              var pos, loc, regex, token;
                                                                                                                      
                                                                                                                              skipComment();
                                                                                                                      
                                                                                                                      
                                                                                                                      Severity: Minor
                                                                                                                      Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 1 hr to fix

                                                                                                                        Function parseSwitchStatement has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                        Open

                                                                                                                            function parseSwitchStatement() {
                                                                                                                                var discriminant, cases, clause, oldInSwitch, defaultFound;
                                                                                                                        
                                                                                                                                expectKeyword('switch');
                                                                                                                        
                                                                                                                        
                                                                                                                        Severity: Minor
                                                                                                                        Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 1 hr to fix

                                                                                                                          Function parseUnaryExpression has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                          Open

                                                                                                                              function parseUnaryExpression() {
                                                                                                                                  var token, expr;
                                                                                                                          
                                                                                                                                  if (lookahead.type !== Token.Punctuator && lookahead.type !== Token.Keyword) {
                                                                                                                                      return parsePostfixExpression();
                                                                                                                          Severity: Minor
                                                                                                                          Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 1 hr to fix

                                                                                                                            Function parseVariableDeclaration has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                            Open

                                                                                                                                function parseVariableDeclaration(kind) {
                                                                                                                                    var id,
                                                                                                                                        init = null;
                                                                                                                                    if (match('{')) {
                                                                                                                                        id = parseObjectInitialiser();
                                                                                                                            Severity: Minor
                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 1 hr to fix

                                                                                                                              Function scanOctalLiteral has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                              Open

                                                                                                                                  function scanOctalLiteral(prefix, start) {
                                                                                                                                      var number, octal;
                                                                                                                              
                                                                                                                                      if (isOctalDigit(prefix)) {
                                                                                                                                          octal = true;
                                                                                                                              Severity: Minor
                                                                                                                              Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 1 hr to fix

                                                                                                                                Function parseImportDeclaration has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                Open

                                                                                                                                    function parseImportDeclaration() {
                                                                                                                                        var specifiers, kind, src;
                                                                                                                                
                                                                                                                                        expectKeyword('import');
                                                                                                                                        specifiers = [];
                                                                                                                                Severity: Minor
                                                                                                                                Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 1 hr to fix

                                                                                                                                  Function isKeyword has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                  Open

                                                                                                                                      function isKeyword(id) {
                                                                                                                                          if (strict && isStrictModeReservedWord(id)) {
                                                                                                                                              return true;
                                                                                                                                          }
                                                                                                                                  
                                                                                                                                  
                                                                                                                                  Severity: Minor
                                                                                                                                  Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 1 hr to fix

                                                                                                                                    Function parseBreakStatement has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                    Open

                                                                                                                                        function parseBreakStatement() {
                                                                                                                                            var label = null, key;
                                                                                                                                    
                                                                                                                                            expectKeyword('break');
                                                                                                                                    
                                                                                                                                    
                                                                                                                                    Severity: Minor
                                                                                                                                    Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 1 hr to fix

                                                                                                                                      Function unindent has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                      Open

                                                                                                                                      function unindent(string) {
                                                                                                                                        var minIndent = null;
                                                                                                                                        var lines = string.split('\n');
                                                                                                                                        {
                                                                                                                                          var $__1 = traceur.runtime.getIterator(lines);
                                                                                                                                      Severity: Minor
                                                                                                                                      Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 1 hr to fix

                                                                                                                                        Function parseContinueStatement has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                        Open

                                                                                                                                            function parseContinueStatement() {
                                                                                                                                                var label = null, key;
                                                                                                                                        
                                                                                                                                                expectKeyword('continue');
                                                                                                                                        
                                                                                                                                        
                                                                                                                                        Severity: Minor
                                                                                                                                        Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 1 hr to fix

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

                                                                                                                                              function parseModuleDeclaration() {
                                                                                                                                                  var id, src, body;
                                                                                                                                          
                                                                                                                                                  lex();   // 'module'
                                                                                                                                          
                                                                                                                                          
                                                                                                                                          Severity: Minor
                                                                                                                                          Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 1 hr to fix

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

                                                                                                                                                    createFunctionDeclaration: function (id, params, defaults, body, rest, generator, expression) {
                                                                                                                                            Severity: Major
                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 50 mins to fix

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

                                                                                                                                                      createFunctionExpression: function (id, params, defaults, body, rest, generator, expression) {
                                                                                                                                              Severity: Major
                                                                                                                                              Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 50 mins to fix

                                                                                                                                                Avoid deeply nested control flow statements.
                                                                                                                                                Open

                                                                                                                                                                        if (isIdentifierStart(ch) || isDecimalDigit(ch)) {
                                                                                                                                                                            throwError({}, Messages.UnexpectedToken, 'ILLEGAL');
                                                                                                                                                                        }
                                                                                                                                                Severity: Major
                                                                                                                                                Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 45 mins to fix

                                                                                                                                                  Avoid deeply nested control flow statements.
                                                                                                                                                  Open

                                                                                                                                                                  if (ch === '/') {
                                                                                                                                                                      loc = {
                                                                                                                                                                          start: {
                                                                                                                                                                              line: lineNumber,
                                                                                                                                                                              column: index - lineStart
                                                                                                                                                  Severity: Major
                                                                                                                                                  Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 45 mins to fix

                                                                                                                                                    Avoid deeply nested control flow statements.
                                                                                                                                                    Open

                                                                                                                                                                } else if (isWhiteSpace(ch)) {
                                                                                                                                                                    ++index;
                                                                                                                                                                } else if (isLineTerminator(ch)) {
                                                                                                                                                                    ++index;
                                                                                                                                                                    if (ch === 13 && source.charCodeAt(index) === 10) {
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 45 mins to fix

                                                                                                                                                      Avoid deeply nested control flow statements.
                                                                                                                                                      Open

                                                                                                                                                                      if (ch === 47) {
                                                                                                                                                                          index += 2;
                                                                                                                                                                          lineComment = true;
                                                                                                                                                                      } else if (ch === 42) {
                                                                                                                                                                          // Block comment starts with '/*' (char #47, char #42).
                                                                                                                                                      Severity: Major
                                                                                                                                                      Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 45 mins to fix

                                                                                                                                                        Avoid deeply nested control flow statements.
                                                                                                                                                        Open

                                                                                                                                                                                if (isOctalDigit(ch)) {
                                                                                                                                                                                    code = '01234567'.indexOf(ch);
                                                                                                                                                        
                                                                                                                                                                                    // \0 is not octal escape sequence
                                                                                                                                                                                    if (code !== 0) {
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 45 mins to fix

                                                                                                                                                          Avoid deeply nested control flow statements.
                                                                                                                                                          Open

                                                                                                                                                                          if (tmp && tmp.type === Syntax.SpreadElement) {
                                                                                                                                                                              if (!match(']')) {
                                                                                                                                                                                  throwError({}, Messages.ElementAfterSpreadElement);
                                                                                                                                                                              }
                                                                                                                                                                          } else if (!(match(']') || matchKeyword('for') || matchKeyword('if'))) {
                                                                                                                                                          Severity: Major
                                                                                                                                                          Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 45 mins to fix

                                                                                                                                                            Avoid deeply nested control flow statements.
                                                                                                                                                            Open

                                                                                                                                                                                if (index >= length) {
                                                                                                                                                                                    throwError({}, Messages.UnexpectedToken, 'ILLEGAL');
                                                                                                                                                                                }
                                                                                                                                                            Severity: Major
                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 45 mins to fix

                                                                                                                                                              Avoid deeply nested control flow statements.
                                                                                                                                                              Open

                                                                                                                                                                                  if (index >= length) {
                                                                                                                                                                                      throwError({}, Messages.UnexpectedToken, 'ILLEGAL');
                                                                                                                                                                                  }
                                                                                                                                                              Severity: Major
                                                                                                                                                              Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 45 mins to fix

                                                                                                                                                                Avoid deeply nested control flow statements.
                                                                                                                                                                Open

                                                                                                                                                                                    if (ch === '*') {
                                                                                                                                                                                        ch = source[index];
                                                                                                                                                                                        if (ch === '/') {
                                                                                                                                                                                            comment = comment.substr(0, comment.length - 1);
                                                                                                                                                                                            blockComment = false;
                                                                                                                                                                Severity: Major
                                                                                                                                                                Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 45 mins to fix

                                                                                                                                                                  Avoid deeply nested control flow statements.
                                                                                                                                                                  Open

                                                                                                                                                                                      if (ch === 42) {
                                                                                                                                                                                          ch = source.charCodeAt(index);
                                                                                                                                                                                          if (ch === 47) {
                                                                                                                                                                                              ++index;
                                                                                                                                                                                              blockComment = false;
                                                                                                                                                                  Severity: Major
                                                                                                                                                                  Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 45 mins to fix

                                                                                                                                                                    Avoid deeply nested control flow statements.
                                                                                                                                                                    Open

                                                                                                                                                                                } else if (isWhiteSpace(ch.charCodeAt(0))) {
                                                                                                                                                                                    ++index;
                                                                                                                                                                                } else if (isLineTerminator(ch.charCodeAt(0))) {
                                                                                                                                                                                    ++index;
                                                                                                                                                                                    if (ch ===  '\r' && source[index] === '\n') {
                                                                                                                                                                    Severity: Major
                                                                                                                                                                    Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 45 mins to fix

                                                                                                                                                                      Avoid deeply nested control flow statements.
                                                                                                                                                                      Open

                                                                                                                                                                                              for (str += '\\u'; restore < index; ++restore) {
                                                                                                                                                                                                  str += source[restore];
                                                                                                                                                                                              }
                                                                                                                                                                      Severity: Major
                                                                                                                                                                      Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 45 mins to fix

                                                                                                                                                                        Avoid deeply nested control flow statements.
                                                                                                                                                                        Open

                                                                                                                                                                                            if (!checkToken) {
                                                                                                                                                                                                return scanRegExp();
                                                                                                                                                                                            }
                                                                                                                                                                        Severity: Major
                                                                                                                                                                        Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 45 mins to fix

                                                                                                                                                                          Avoid deeply nested control flow statements.
                                                                                                                                                                          Open

                                                                                                                                                                                      if (expr.argument.type === Syntax.ObjectPattern) {
                                                                                                                                                                                          throwError({}, Messages.ObjectPatternAsSpread);
                                                                                                                                                                                      }
                                                                                                                                                                          Severity: Major
                                                                                                                                                                          Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 45 mins to fix

                                                                                                                                                                            Avoid deeply nested control flow statements.
                                                                                                                                                                            Open

                                                                                                                                                                                                if (ch === '\r' && source[index + 1] === '\n') {
                                                                                                                                                                                                    ++index;
                                                                                                                                                                                                    comment += '\r\n';
                                                                                                                                                                                                } else {
                                                                                                                                                                                                    comment += ch;
                                                                                                                                                                            Severity: Major
                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 45 mins to fix

                                                                                                                                                                              Avoid deeply nested control flow statements.
                                                                                                                                                                              Open

                                                                                                                                                                                                  if (index >= length) {
                                                                                                                                                                                                      throwError({}, Messages.UnexpectedToken, 'ILLEGAL');
                                                                                                                                                                                                  }
                                                                                                                                                                              Severity: Major
                                                                                                                                                                              Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 45 mins to fix

                                                                                                                                                                                Avoid deeply nested control flow statements.
                                                                                                                                                                                Open

                                                                                                                                                                                                        if (source[index] === '{') {
                                                                                                                                                                                                            ++index;
                                                                                                                                                                                                            str += scanUnicodeCodePointEscape();
                                                                                                                                                                                                        } else {
                                                                                                                                                                                                            restore = index;
                                                                                                                                                                                Severity: Major
                                                                                                                                                                                Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 45 mins to fix

                                                                                                                                                                                  Avoid deeply nested control flow statements.
                                                                                                                                                                                  Open

                                                                                                                                                                                                          if (ch !== '0' && ch !== '1') {
                                                                                                                                                                                                              break;
                                                                                                                                                                                                          }
                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                  Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 45 mins to fix

                                                                                                                                                                                    Avoid deeply nested control flow statements.
                                                                                                                                                                                    Open

                                                                                                                                                                                                            if (!((operator.value === 'in' || init.kind !== 'var') && init.declarations[0].init)) {
                                                                                                                                                                                                                lex();
                                                                                                                                                                                                                left = init;
                                                                                                                                                                                                                right = parseExpression();
                                                                                                                                                                                                                init = null;
                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                    Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 45 mins to fix

                                                                                                                                                                                      Avoid deeply nested control flow statements.
                                                                                                                                                                                      Open

                                                                                                                                                                                                          if (ch ===  '\r' && source[index] === '\n') {
                                                                                                                                                                                                              ++index;
                                                                                                                                                                                                          }
                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                      Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 45 mins to fix

                                                                                                                                                                                        Avoid deeply nested control flow statements.
                                                                                                                                                                                        Open

                                                                                                                                                                                                    if (expr.type !== Syntax.MemberExpression && expr.type !== Syntax.CallExpression && expr.type !== Syntax.NewExpression) {
                                                                                                                                                                                                        throwError({}, Messages.InvalidLHSInAssignment);
                                                                                                                                                                                                    }
                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                        Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 45 mins to fix

                                                                                                                                                                                          Avoid deeply nested control flow statements.
                                                                                                                                                                                          Open

                                                                                                                                                                                                              switch (ch) {
                                                                                                                                                                                                              case 'n':
                                                                                                                                                                                                                  cooked += '\n';
                                                                                                                                                                                                                  break;
                                                                                                                                                                                                              case 'r':
                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                          Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 45 mins to fix

                                                                                                                                                                                            Avoid deeply nested control flow statements.
                                                                                                                                                                                            Open

                                                                                                                                                                                                                if (index >= length) {
                                                                                                                                                                                                                    throwError({}, Messages.UnexpectedToken, 'ILLEGAL');
                                                                                                                                                                                                                }
                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 45 mins to fix

                                                                                                                                                                                              Avoid deeply nested control flow statements.
                                                                                                                                                                                              Open

                                                                                                                                                                                                                  if (ch === 13 && source.charCodeAt(index + 1) === 10) {
                                                                                                                                                                                                                      ++index;
                                                                                                                                                                                                                  }
                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                              Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 45 mins to fix

                                                                                                                                                                                                Avoid deeply nested control flow statements.
                                                                                                                                                                                                Open

                                                                                                                                                                                                                if (ch ===  '\r' && source[index] === '\n') {
                                                                                                                                                                                                                    ++index;
                                                                                                                                                                                                                }
                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 45 mins to fix

                                                                                                                                                                                                  Consider simplifying this complex logical expression.
                                                                                                                                                                                                  Open

                                                                                                                                                                                                                  if (checkToken &&
                                                                                                                                                                                                                          checkToken.type === "Keyword" &&
                                                                                                                                                                                                                          (checkToken.value === "if" ||
                                                                                                                                                                                                                           checkToken.value === "while" ||
                                                                                                                                                                                                                           checkToken.value === "for" ||
                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                  Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 40 mins to fix

                                                                                                                                                                                                    Function $__createClass has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                                                                    Open

                                                                                                                                                                                                    }, $__createClass = function(object, staticObject, protoParent, superClass, hasConstructor) {
                                                                                                                                                                                                    Severity: Minor
                                                                                                                                                                                                    Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 35 mins to fix

                                                                                                                                                                                                      Function addComment has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                                                                      Open

                                                                                                                                                                                                          function addComment(type, value, start, end, loc) {
                                                                                                                                                                                                      Severity: Minor
                                                                                                                                                                                                      Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 35 mins to fix

                                                                                                                                                                                                        Function $__createClass has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                                                                        Open

                                                                                                                                                                                                        }, $__createClass = function(object, staticObject, protoParent, superClass, hasConstructor) {
                                                                                                                                                                                                        Severity: Minor
                                                                                                                                                                                                        Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 35 mins to fix

                                                                                                                                                                                                          Function $__createClass has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                                                                          Open

                                                                                                                                                                                                          }, $__createClass = function(object, staticObject, protoParent, superClass, hasConstructor) {
                                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                                          Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 35 mins to fix

                                                                                                                                                                                                            Function $__createClass has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                                                                            Open

                                                                                                                                                                                                            }, $__createClass = function(object, staticObject, protoParent, superClass, hasConstructor) {
                                                                                                                                                                                                            Severity: Minor
                                                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 35 mins to fix

                                                                                                                                                                                                              Function $__createClass has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                                                                              Open

                                                                                                                                                                                                              }, $__createClass = function(object, staticObject, protoParent, superClass, hasConstructor) {
                                                                                                                                                                                                              Severity: Minor
                                                                                                                                                                                                              Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 35 mins to fix

                                                                                                                                                                                                                Function createArrowFunctionExpression has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                                                                                Open

                                                                                                                                                                                                                        createArrowFunctionExpression: function (params, defaults, body, rest, expression) {
                                                                                                                                                                                                                Severity: Minor
                                                                                                                                                                                                                Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 35 mins to fix

                                                                                                                                                                                                                  Function createProperty has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                                                                                  Open

                                                                                                                                                                                                                          createProperty: function (kind, key, value, method, shorthand) {
                                                                                                                                                                                                                  Severity: Minor
                                                                                                                                                                                                                  Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 35 mins to fix

                                                                                                                                                                                                                    Avoid too many return statements within this function.
                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                return {
                                                                                                                                                                                                                                    type: Token.Punctuator,
                                                                                                                                                                                                                                    value: ch1,
                                                                                                                                                                                                                                    lineNumber: lineNumber,
                                                                                                                                                                                                                                    lineStart: lineStart,
                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                    Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 30 mins to fix

                                                                                                                                                                                                                      Avoid too many return statements within this function.
                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                                  return scanRegExp();
                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                      Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 30 mins to fix

                                                                                                                                                                                                                        Avoid too many return statements within this function.
                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                    return {
                                                                                                                                                                                                                                        type: Token.Punctuator,
                                                                                                                                                                                                                                        value: '...',
                                                                                                                                                                                                                                        lineNumber: lineNumber,
                                                                                                                                                                                                                                        lineStart: lineStart,
                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                        Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 30 mins to fix

                                                                                                                                                                                                                          Avoid too many return statements within this function.
                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                              return scanPunctuator();
                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                          Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 30 mins to fix

                                                                                                                                                                                                                            Avoid too many return statements within this function.
                                                                                                                                                                                                                            Open

                                                                                                                                                                                                                                        return scanPunctuator();
                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 30 mins to fix

                                                                                                                                                                                                                              Avoid too many return statements within this function.
                                                                                                                                                                                                                              Open

                                                                                                                                                                                                                                              return parseClassExpression();
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 30 mins to fix

                                                                                                                                                                                                                                Avoid too many return statements within this function.
                                                                                                                                                                                                                                Open

                                                                                                                                                                                                                                                return scanRegExp();
                                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                                Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 30 mins to fix

                                                                                                                                                                                                                                  Avoid too many return statements within this function.
                                                                                                                                                                                                                                  Open

                                                                                                                                                                                                                                          return scanPunctuator();
                                                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                                                  Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 30 mins to fix

                                                                                                                                                                                                                                    Avoid too many return statements within this function.
                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                    return delegate.createIdentifier('super');
                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                    Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 30 mins to fix

                                                                                                                                                                                                                                      Avoid too many return statements within this function.
                                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                                                  return parseObjectInitialiser();
                                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                                      Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 30 mins to fix

                                                                                                                                                                                                                                        Avoid too many return statements within this function.
                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                    return advanceSlash();
                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                        Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 30 mins to fix

                                                                                                                                                                                                                                          Avoid too many return statements within this function.
                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                  return parsePostfixExpression();
                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                          Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 30 mins to fix

                                                                                                                                                                                                                                            Avoid too many return statements within this function.
                                                                                                                                                                                                                                            Open

                                                                                                                                                                                                                                                            return scanNumericLiteral();
                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 30 mins to fix

                                                                                                                                                                                                                                              Avoid too many return statements within this function.
                                                                                                                                                                                                                                              Open

                                                                                                                                                                                                                                                          return parseArrayInitialiser();
                                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                                              Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 30 mins to fix

                                                                                                                                                                                                                                                Avoid too many return statements within this function.
                                                                                                                                                                                                                                                Open

                                                                                                                                                                                                                                                            return scanNumericLiteral();
                                                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                                                Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 30 mins to fix

                                                                                                                                                                                                                                                  Avoid too many return statements within this function.
                                                                                                                                                                                                                                                  Open

                                                                                                                                                                                                                                                              return delegate.createProperty('init', id, id, false, true);
                                                                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                                                                  Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 30 mins to fix

                                                                                                                                                                                                                                                    Avoid too many return statements within this function.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                return {
                                                                                                                                                                                                                                                                    type: Token.Punctuator,
                                                                                                                                                                                                                                                                    value: ch1 + ch2,
                                                                                                                                                                                                                                                                    lineNumber: lineNumber,
                                                                                                                                                                                                                                                                    lineStart: lineStart,
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 30 mins to fix

                                                                                                                                                                                                                                                      Avoid too many return statements within this function.
                                                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                                                                              return scanRegExp();
                                                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                                                      Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 30 mins to fix

                                                                                                                                                                                                                                                        Avoid too many return statements within this function.
                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                            return scanPunctuator();
                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                        Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 30 mins to fix

                                                                                                                                                                                                                                                          Avoid too many return statements within this function.
                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                      return scanIdentifier();
                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                          Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 30 mins to fix

                                                                                                                                                                                                                                                            Avoid too many return statements within this function.
                                                                                                                                                                                                                                                            Open

                                                                                                                                                                                                                                                                        return delegate.createProperty('init', key, parseAssignmentExpression(), false, false);
                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 30 mins to fix

                                                                                                                                                                                                                                                              Avoid too many return statements within this function.
                                                                                                                                                                                                                                                              Open

                                                                                                                                                                                                                                                                          return {
                                                                                                                                                                                                                                                                              type: Token.Punctuator,
                                                                                                                                                                                                                                                                              value: '>>=',
                                                                                                                                                                                                                                                                              lineNumber: lineNumber,
                                                                                                                                                                                                                                                                              lineStart: lineStart,
                                                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                                                              Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 30 mins to fix

                                                                                                                                                                                                                                                                Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                Open

                                                                                                                                                                                                                                                                            return {
                                                                                                                                                                                                                                                                                type: Token.Punctuator,
                                                                                                                                                                                                                                                                                value: '>>>',
                                                                                                                                                                                                                                                                                lineNumber: lineNumber,
                                                                                                                                                                                                                                                                                lineStart: lineStart,
                                                                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                                                                Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 30 mins to fix

                                                                                                                                                                                                                                                                  Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                  Open

                                                                                                                                                                                                                                                                              return {
                                                                                                                                                                                                                                                                                  type: Token.Punctuator,
                                                                                                                                                                                                                                                                                  value: ch1,
                                                                                                                                                                                                                                                                                  lineNumber: lineNumber,
                                                                                                                                                                                                                                                                                  lineStart: lineStart,
                                                                                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                                                                                  Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 30 mins to fix

                                                                                                                                                                                                                                                                    Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                                return scanRegExp();
                                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                                    Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 30 mins to fix

                                                                                                                                                                                                                                                                      Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                                                                              return throwUnexpected(lex());
                                                                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                                                                      Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 30 mins to fix

                                                                                                                                                                                                                                                                        Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                                    return {
                                                                                                                                                                                                                                                                                        type: Token.Punctuator,
                                                                                                                                                                                                                                                                                        value: '<<=',
                                                                                                                                                                                                                                                                                        lineNumber: lineNumber,
                                                                                                                                                                                                                                                                                        lineStart: lineStart,
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 30 mins to fix

                                                                                                                                                                                                                                                                          Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                                      return delegate.createLiteral(token);
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 30 mins to fix

                                                                                                                                                                                                                                                                            Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                            Open

                                                                                                                                                                                                                                                                                        return delegate.createLiteral(scanRegExp());
                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 30 mins to fix

                                                                                                                                                                                                                                                                              Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                              Open

                                                                                                                                                                                                                                                                                          return {
                                                                                                                                                                                                                                                                                              type: Token.Punctuator,
                                                                                                                                                                                                                                                                                              value: '=>',
                                                                                                                                                                                                                                                                                              lineNumber: lineNumber,
                                                                                                                                                                                                                                                                                              lineStart: lineStart,
                                                                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                                                                              Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 30 mins to fix

                                                                                                                                                                                                                                                                                Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                                Open

                                                                                                                                                                                                                                                                                            return delegate.createProperty('init', key, parsePropertyMethodFunction({ generator: false }), true, false);
                                                                                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                                                                                Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 30 mins to fix

                                                                                                                                                                                                                                                                                  Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                                  Open

                                                                                                                                                                                                                                                                                              return delegate.createLiteral(token);
                                                                                                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                                                                                                  Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 30 mins to fix

                                                                                                                                                                                                                                                                                    Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                                            return scanPunctuator();
                                                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                                                    Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 30 mins to fix

                                                                                                                                                                                                                                                                                      Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                                                                                                  return parseGroupExpression();
                                                                                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                                                                                      Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 30 mins to fix

                                                                                                                                                                                                                                                                                        Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                                                    return parseTemplateLiteral();
                                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                                        Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 30 mins to fix

                                                                                                                                                                                                                                                                                          Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                                                      return delegate.createProperty('init', id, parsePropertyMethodFunction({ generator: true }), true, false);
                                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                                          Found in lib/es6_module_transpiler/support/es6-module-transpiler.js - About 30 mins to fix

                                                                                                                                                                                                                                                                                            Identical blocks of code found in 5 locations. Consider refactoring.
                                                                                                                                                                                                                                                                                            Open

                                                                                                                                                                                                                                                                                            var $__superDescriptor = function(proto, name) {
                                                                                                                                                                                                                                                                                              if (!proto) throw new TypeError('super is null');
                                                                                                                                                                                                                                                                                              return Object.getPropertyDescriptor(proto, name);
                                                                                                                                                                                                                                                                                            }, $__superCall = function(self, proto, name, args) {
                                                                                                                                                                                                                                                                                              var descriptor = $__superDescriptor(proto, name);
                                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js and 4 other locations - About 2 days to fix
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 6362..6395
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 6503..6536
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 6614..6647
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 7072..7105

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

                                                                                                                                                                                                                                                                                            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

                                                                                                                                                                                                                                                                                            Identical blocks of code found in 5 locations. Consider refactoring.
                                                                                                                                                                                                                                                                                            Open

                                                                                                                                                                                                                                                                                            var $__superDescriptor = function(proto, name) {
                                                                                                                                                                                                                                                                                              if (!proto) throw new TypeError('super is null');
                                                                                                                                                                                                                                                                                              return Object.getPropertyDescriptor(proto, name);
                                                                                                                                                                                                                                                                                            }, $__superCall = function(self, proto, name, args) {
                                                                                                                                                                                                                                                                                              var descriptor = $__superDescriptor(proto, name);
                                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js and 4 other locations - About 2 days to fix
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 6227..6260
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 6362..6395
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 6503..6536
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 7072..7105

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

                                                                                                                                                                                                                                                                                            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

                                                                                                                                                                                                                                                                                            Identical blocks of code found in 5 locations. Consider refactoring.
                                                                                                                                                                                                                                                                                            Open

                                                                                                                                                                                                                                                                                            var $__superDescriptor = function(proto, name) {
                                                                                                                                                                                                                                                                                              if (!proto) throw new TypeError('super is null');
                                                                                                                                                                                                                                                                                              return Object.getPropertyDescriptor(proto, name);
                                                                                                                                                                                                                                                                                            }, $__superCall = function(self, proto, name, args) {
                                                                                                                                                                                                                                                                                              var descriptor = $__superDescriptor(proto, name);
                                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js and 4 other locations - About 2 days to fix
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 6227..6260
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 6362..6395
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 6503..6536
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 6614..6647

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

                                                                                                                                                                                                                                                                                            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

                                                                                                                                                                                                                                                                                            Identical blocks of code found in 5 locations. Consider refactoring.
                                                                                                                                                                                                                                                                                            Open

                                                                                                                                                                                                                                                                                            var $__superDescriptor = function(proto, name) {
                                                                                                                                                                                                                                                                                              if (!proto) throw new TypeError('super is null');
                                                                                                                                                                                                                                                                                              return Object.getPropertyDescriptor(proto, name);
                                                                                                                                                                                                                                                                                            }, $__superCall = function(self, proto, name, args) {
                                                                                                                                                                                                                                                                                              var descriptor = $__superDescriptor(proto, name);
                                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js and 4 other locations - About 2 days to fix
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 6227..6260
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 6362..6395
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 6614..6647
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 7072..7105

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

                                                                                                                                                                                                                                                                                            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

                                                                                                                                                                                                                                                                                            Identical blocks of code found in 5 locations. Consider refactoring.
                                                                                                                                                                                                                                                                                            Open

                                                                                                                                                                                                                                                                                            var $__superDescriptor = function(proto, name) {
                                                                                                                                                                                                                                                                                              if (!proto) throw new TypeError('super is null');
                                                                                                                                                                                                                                                                                              return Object.getPropertyDescriptor(proto, name);
                                                                                                                                                                                                                                                                                            }, $__superCall = function(self, proto, name, args) {
                                                                                                                                                                                                                                                                                              var descriptor = $__superDescriptor(proto, name);
                                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js and 4 other locations - About 2 days to fix
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 6227..6260
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 6503..6536
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 6614..6647
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 7072..7105

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

                                                                                                                                                                                                                                                                                            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 (!ch || !isLineTerminator(ch.charCodeAt(0))) {
                                                                                                                                                                                                                                                                                                                switch (ch) {
                                                                                                                                                                                                                                                                                                                case 'n':
                                                                                                                                                                                                                                                                                                                    str += '\n';
                                                                                                                                                                                                                                                                                                                    break;
                                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js and 1 other location - About 2 days to fix
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 1664..1733

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

                                                                                                                                                                                                                                                                                            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 (!isLineTerminator(ch.charCodeAt(0))) {
                                                                                                                                                                                                                                                                                                                switch (ch) {
                                                                                                                                                                                                                                                                                                                case 'n':
                                                                                                                                                                                                                                                                                                                    cooked += '\n';
                                                                                                                                                                                                                                                                                                                    break;
                                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js and 1 other location - About 2 days to fix
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 1549..1618

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

                                                                                                                                                                                                                                                                                            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

                                                                                                                                                                                                                                                                                                doImportSpecifiers: function(import_, idx) {
                                                                                                                                                                                                                                                                                                  var dependencyName = import_.source.value;
                                                                                                                                                                                                                                                                                                  var replacement = "";
                                                                                                                                                                                                                                                                                                  {
                                                                                                                                                                                                                                                                                                    var $__1 = traceur.runtime.getIterator(import_.specifiers);
                                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js and 3 other locations - About 7 hrs to fix
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 6335..6353
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 6476..6494
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 7163..7181

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

                                                                                                                                                                                                                                                                                            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

                                                                                                                                                                                                                                                                                                doImportSpecifiers: function(import_, idx) {
                                                                                                                                                                                                                                                                                                  var dependencyName = import_.source.value;
                                                                                                                                                                                                                                                                                                  var replacement = "";
                                                                                                                                                                                                                                                                                                  {
                                                                                                                                                                                                                                                                                                    var $__1 = traceur.runtime.getIterator(import_.specifiers);
                                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js and 3 other locations - About 7 hrs to fix
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 6476..6494
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 6738..6756
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 7163..7181

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

                                                                                                                                                                                                                                                                                            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

                                                                                                                                                                                                                                                                                                doImportSpecifiers: function(import_, idx) {
                                                                                                                                                                                                                                                                                                  var dependencyName = import_.source.value;
                                                                                                                                                                                                                                                                                                  var replacement = "";
                                                                                                                                                                                                                                                                                                  {
                                                                                                                                                                                                                                                                                                    var $__1 = traceur.runtime.getIterator(import_.specifiers);
                                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js and 3 other locations - About 7 hrs to fix
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 6335..6353
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 6476..6494
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 6738..6756

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

                                                                                                                                                                                                                                                                                            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

                                                                                                                                                                                                                                                                                                doImportSpecifiers: function(import_, idx) {
                                                                                                                                                                                                                                                                                                  var dependencyName = import_.source.value;
                                                                                                                                                                                                                                                                                                  var replacement = "";
                                                                                                                                                                                                                                                                                                  {
                                                                                                                                                                                                                                                                                                    var $__2 = traceur.runtime.getIterator(import_.specifiers);
                                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js and 3 other locations - About 7 hrs to fix
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 6335..6353
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 6738..6756
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 7163..7181

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

                                                                                                                                                                                                                                                                                            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

                                                                                                                                                                                                                                                                                            Identical blocks of code found in 5 locations. Consider refactoring.
                                                                                                                                                                                                                                                                                            Open

                                                                                                                                                                                                                                                                                            var $__getDescriptors = function(object) {
                                                                                                                                                                                                                                                                                              var descriptors = {}, name, names = Object.getOwnPropertyNames(object);
                                                                                                                                                                                                                                                                                              for (var i = 0; i < names.length; i++) {
                                                                                                                                                                                                                                                                                                var name = names[i];
                                                                                                                                                                                                                                                                                                descriptors[name] = Object.getOwnPropertyDescriptor(object, name);
                                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js and 4 other locations - About 6 hrs to fix
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 6096..6109
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 6550..6563
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 6783..6796
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 6952..6965

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

                                                                                                                                                                                                                                                                                            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

                                                                                                                                                                                                                                                                                            Identical blocks of code found in 5 locations. Consider refactoring.
                                                                                                                                                                                                                                                                                            Open

                                                                                                                                                                                                                                                                                            var $__getDescriptors = function(object) {
                                                                                                                                                                                                                                                                                              var descriptors = {}, name, names = Object.getOwnPropertyNames(object);
                                                                                                                                                                                                                                                                                              for (var i = 0; i < names.length; i++) {
                                                                                                                                                                                                                                                                                                var name = names[i];
                                                                                                                                                                                                                                                                                                descriptors[name] = Object.getOwnPropertyDescriptor(object, name);
                                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js and 4 other locations - About 6 hrs to fix
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 6550..6563
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 6783..6796
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 6894..6907
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 6952..6965

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

                                                                                                                                                                                                                                                                                            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

                                                                                                                                                                                                                                                                                            Identical blocks of code found in 5 locations. Consider refactoring.
                                                                                                                                                                                                                                                                                            Open

                                                                                                                                                                                                                                                                                            var $__getDescriptors = function(object) {
                                                                                                                                                                                                                                                                                              var descriptors = {}, name, names = Object.getOwnPropertyNames(object);
                                                                                                                                                                                                                                                                                              for (var i = 0; i < names.length; i++) {
                                                                                                                                                                                                                                                                                                var name = names[i];
                                                                                                                                                                                                                                                                                                descriptors[name] = Object.getOwnPropertyDescriptor(object, name);
                                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js and 4 other locations - About 6 hrs to fix
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 6096..6109
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 6550..6563
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 6894..6907
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 6952..6965

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

                                                                                                                                                                                                                                                                                            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

                                                                                                                                                                                                                                                                                            Identical blocks of code found in 5 locations. Consider refactoring.
                                                                                                                                                                                                                                                                                            Open

                                                                                                                                                                                                                                                                                            var $__getDescriptors = function(object) {
                                                                                                                                                                                                                                                                                              var descriptors = {}, name, names = Object.getOwnPropertyNames(object);
                                                                                                                                                                                                                                                                                              for (var i = 0; i < names.length; i++) {
                                                                                                                                                                                                                                                                                                var name = names[i];
                                                                                                                                                                                                                                                                                                descriptors[name] = Object.getOwnPropertyDescriptor(object, name);
                                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js and 4 other locations - About 6 hrs to fix
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 6096..6109
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 6783..6796
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 6894..6907
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 6952..6965

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

                                                                                                                                                                                                                                                                                            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

                                                                                                                                                                                                                                                                                            Identical blocks of code found in 5 locations. Consider refactoring.
                                                                                                                                                                                                                                                                                            Open

                                                                                                                                                                                                                                                                                            var $__getDescriptors = function(object) {
                                                                                                                                                                                                                                                                                              var descriptors = {}, name, names = Object.getOwnPropertyNames(object);
                                                                                                                                                                                                                                                                                              for (var i = 0; i < names.length; i++) {
                                                                                                                                                                                                                                                                                                var name = names[i];
                                                                                                                                                                                                                                                                                                descriptors[name] = Object.getOwnPropertyDescriptor(object, name);
                                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js and 4 other locations - About 6 hrs to fix
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 6096..6109
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 6550..6563
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 6783..6796
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 6894..6907

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

                                                                                                                                                                                                                                                                                            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

                                                                                                                                                                                                                                                                                                function filterTokenLocation() {
                                                                                                                                                                                                                                                                                                    var i, entry, token, tokens = [];
                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                    for (i = 0; i < extra.tokens.length; ++i) {
                                                                                                                                                                                                                                                                                                        entry = extra.tokens[i];
                                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js and 1 other location - About 6 hrs to fix
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 5327..5346

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

                                                                                                                                                                                                                                                                                            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

                                                                                                                                                                                                                                                                                                function filterCommentLocation() {
                                                                                                                                                                                                                                                                                                    var i, entry, comment, comments = [];
                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                    for (i = 0; i < extra.comments.length; ++i) {
                                                                                                                                                                                                                                                                                                        entry = extra.comments[i];
                                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js and 1 other location - About 6 hrs to fix
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 5421..5440

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

                                                                                                                                                                                                                                                                                            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 (existingPropNames[propType].hasOwnProperty(key.name)) {
                                                                                                                                                                                                                                                                                                            isValidDuplicateProp =
                                                                                                                                                                                                                                                                                                                // There isn't already a getter for this prop
                                                                                                                                                                                                                                                                                                                existingPropNames[propType][key.name].get === undefined
                                                                                                                                                                                                                                                                                                                // There isn't already a data prop by this name
                                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js and 1 other location - About 6 hrs to fix
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 4928..4941

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

                                                                                                                                                                                                                                                                                            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 (existingPropNames[propType].hasOwnProperty(key.name)) {
                                                                                                                                                                                                                                                                                                            isValidDuplicateProp =
                                                                                                                                                                                                                                                                                                                // There isn't already a setter for this prop
                                                                                                                                                                                                                                                                                                                existingPropNames[propType][key.name].set === undefined
                                                                                                                                                                                                                                                                                                                // There isn't already a data prop by this name
                                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js and 1 other location - About 6 hrs to fix
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 4898..4911

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

                                                                                                                                                                                                                                                                                            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

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

                                                                                                                                                                                                                                                                                                        if (match('[')) {
                                                                                                                                                                                                                                                                                                            expr = delegate.createMemberExpression('[', expr, parseComputedMember());
                                                                                                                                                                                                                                                                                                            marker.end();
                                                                                                                                                                                                                                                                                                            marker.apply(expr);
                                                                                                                                                                                                                                                                                                        } else if (match('.')) {
                                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js and 1 other location - About 5 hrs to fix
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 5571..5583

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

                                                                                                                                                                                                                                                                                            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

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

                                                                                                                                                                                                                                                                                                        } else if (match('[')) {
                                                                                                                                                                                                                                                                                                            expr = delegate.createMemberExpression('[', expr, parseComputedMember());
                                                                                                                                                                                                                                                                                                            marker.end();
                                                                                                                                                                                                                                                                                                            marker.apply(expr);
                                                                                                                                                                                                                                                                                                        } else if (match('.')) {
                                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js and 1 other location - About 5 hrs to fix
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 5539..5551

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

                                                                                                                                                                                                                                                                                            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 (extra.loc) {
                                                                                                                                                                                                                                                                                                            node.loc = {
                                                                                                                                                                                                                                                                                                                start: {
                                                                                                                                                                                                                                                                                                                    line: this.loc.start.line,
                                                                                                                                                                                                                                                                                                                    column: this.loc.start.column
                                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js and 1 other location - About 4 hrs to fix
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 5469..5481

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

                                                                                                                                                                                                                                                                                            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 (extra.loc) {
                                                                                                                                                                                                                                                                                                            node.groupLoc = {
                                                                                                                                                                                                                                                                                                                start: {
                                                                                                                                                                                                                                                                                                                    line: this.loc.start.line,
                                                                                                                                                                                                                                                                                                                    column: this.loc.start.column
                                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js and 1 other location - About 4 hrs to fix
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 5493..5505

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

                                                                                                                                                                                                                                                                                            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

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

                                                                                                                                                                                                                                                                                                        if (strict) {
                                                                                                                                                                                                                                                                                                            if (isRestrictedWord(token.value)) {
                                                                                                                                                                                                                                                                                                                throwErrorTolerant(token, Messages.StrictFunctionName);
                                                                                                                                                                                                                                                                                                            }
                                                                                                                                                                                                                                                                                                        } else {
                                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js and 1 other location - About 3 hrs to fix
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 4741..4753

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

                                                                                                                                                                                                                                                                                            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

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

                                                                                                                                                                                                                                                                                                    if (strict) {
                                                                                                                                                                                                                                                                                                        if (isRestrictedWord(token.value)) {
                                                                                                                                                                                                                                                                                                            throwErrorTolerant(token, Messages.StrictFunctionName);
                                                                                                                                                                                                                                                                                                        }
                                                                                                                                                                                                                                                                                                    } else {
                                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js and 1 other location - About 3 hrs to fix
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 4799..4811

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

                                                                                                                                                                                                                                                                                            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

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

                                                                                                                                                                                                                                                                                                    if (lookahead.type === Token.Identifier) {
                                                                                                                                                                                                                                                                                                        label = parseVariableIdentifier();
                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                        key = '$' + label.name;
                                                                                                                                                                                                                                                                                                        if (!Object.prototype.hasOwnProperty.call(state.labelSet, key)) {
                                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 4239..4246

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

                                                                                                                                                                                                                                                                                            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

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

                                                                                                                                                                                                                                                                                                    if (lookahead.type === Token.Identifier) {
                                                                                                                                                                                                                                                                                                        label = parseVariableIdentifier();
                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                        key = '$' + label.name;
                                                                                                                                                                                                                                                                                                        if (!Object.prototype.hasOwnProperty.call(state.labelSet, key)) {
                                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 4195..4202

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

                                                                                                                                                                                                                                                                                            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

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

                                                                                                                                                                                                                                                                                                        } else if (match('[')) {
                                                                                                                                                                                                                                                                                                            expr = delegate.createMemberExpression('[', expr, parseComputedMember());
                                                                                                                                                                                                                                                                                                        } else if (match('.')) {
                                                                                                                                                                                                                                                                                                            expr = delegate.createMemberExpression('.', expr, parseNonComputedMember());
                                                                                                                                                                                                                                                                                                        } else {
                                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 3199..3205

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

                                                                                                                                                                                                                                                                                            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

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

                                                                                                                                                                                                                                                                                                        if (match('[')) {
                                                                                                                                                                                                                                                                                                            expr = delegate.createMemberExpression('[', expr, parseComputedMember());
                                                                                                                                                                                                                                                                                                        } else if (match('.')) {
                                                                                                                                                                                                                                                                                                            expr = delegate.createMemberExpression('.', expr, parseNonComputedMember());
                                                                                                                                                                                                                                                                                                        } else {
                                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 3180..3186

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

                                                                                                                                                                                                                                                                                            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

                                                                                                                                                                                                                                                                                                doDefaultImport: function(name, dependencyName, idx) {
                                                                                                                                                                                                                                                                                                  if (this.options.compatFix === true) {
                                                                                                                                                                                                                                                                                                    return ("var " + name + " = require(\"" + dependencyName + "\")[\"default\"] || require(\"" + dependencyName + "\");\n");
                                                                                                                                                                                                                                                                                                  } else {
                                                                                                                                                                                                                                                                                                    return ("var " + name + " = require(\"" + dependencyName + "\")[\"default\"];\n");
                                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 7140..7146

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

                                                                                                                                                                                                                                                                                            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

                                                                                                                                                                                                                                                                                                doDefaultImport: function(name, dependencyName, idx) {
                                                                                                                                                                                                                                                                                                  if (this.options.compatFix === true) {
                                                                                                                                                                                                                                                                                                    return ("var " + name + " = __imports__[\"" + dependencyName + "\"][\"default\"] || __imports__[\"" + dependencyName + "\"];\n");
                                                                                                                                                                                                                                                                                                  } else {
                                                                                                                                                                                                                                                                                                    return ("var " + name + " = __imports__[\"" + dependencyName + "\"][\"default\"];\n");
                                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 6454..6460

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

                                                                                                                                                                                                                                                                                            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

                                                                                                                                                                                                                                                                                                function parseStatementList() {
                                                                                                                                                                                                                                                                                                    var list = [],
                                                                                                                                                                                                                                                                                                        statement;
                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                    while (index < length) {
                                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 5143..5159

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

                                                                                                                                                                                                                                                                                            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

                                                                                                                                                                                                                                                                                                function parseModuleElements() {
                                                                                                                                                                                                                                                                                                    var list = [],
                                                                                                                                                                                                                                                                                                        statement;
                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                    while (index < length) {
                                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 3685..3701

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

                                                                                                                                                                                                                                                                                            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

                                                                                                                                                                                                                                                                                                doExportSpecifier: function(name, reexport) {
                                                                                                                                                                                                                                                                                                  if (reexport) {
                                                                                                                                                                                                                                                                                                    return ("__exports__." + name + " = __dependency" + this.map[reexport] + "__." + name + ";\n");
                                                                                                                                                                                                                                                                                                  }
                                                                                                                                                                                                                                                                                                  return ("__exports__." + name + " = " + name + ";\n");
                                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 6723..6728

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

                                                                                                                                                                                                                                                                                            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

                                                                                                                                                                                                                                                                                                doExportSpecifier: function(name, reexport) {
                                                                                                                                                                                                                                                                                                  if (reexport) {
                                                                                                                                                                                                                                                                                                    return ("__exports__." + name + " = __dependency" + this.map[reexport] + "__." + name + ";\n");
                                                                                                                                                                                                                                                                                                  }
                                                                                                                                                                                                                                                                                                  return ("__exports__." + name + " = " + name + ";\n");
                                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 6323..6328

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

                                                                                                                                                                                                                                                                                            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 (ch1 === '<' && ch2 === '<' && ch3 === '=') {
                                                                                                                                                                                                                                                                                                        index += 3;
                                                                                                                                                                                                                                                                                                        return {
                                                                                                                                                                                                                                                                                                            type: Token.Punctuator,
                                                                                                                                                                                                                                                                                                            value: '<<=',
                                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 1286..1295

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

                                                                                                                                                                                                                                                                                            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 (ch1 === '>' && ch2 === '>' && ch3 === '=') {
                                                                                                                                                                                                                                                                                                        index += 3;
                                                                                                                                                                                                                                                                                                        return {
                                                                                                                                                                                                                                                                                                            type: Token.Punctuator,
                                                                                                                                                                                                                                                                                                            value: '>>=',
                                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 1275..1284

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

                                                                                                                                                                                                                                                                                            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

                                                                                                                                                                                                                                                                                                    createFunctionExpression: function (id, params, defaults, body, rest, generator, expression) {
                                                                                                                                                                                                                                                                                                        return {
                                                                                                                                                                                                                                                                                                            type: Syntax.FunctionExpression,
                                                                                                                                                                                                                                                                                                            id: id,
                                                                                                                                                                                                                                                                                                            params: params,
                                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 2198..2209

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

                                                                                                                                                                                                                                                                                            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

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

                                                                                                                                                                                                                                                                                                        if (directive === 'use strict') {
                                                                                                                                                                                                                                                                                                            strict = true;
                                                                                                                                                                                                                                                                                                            if (firstRestricted) {
                                                                                                                                                                                                                                                                                                                throwErrorTolerant(firstRestricted, Messages.StrictOctalLiteral);
                                                                                                                                                                                                                                                                                                            }
                                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 4575..4584

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

                                                                                                                                                                                                                                                                                            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

                                                                                                                                                                                                                                                                                                    createFunctionDeclaration: function (id, params, defaults, body, rest, generator, expression) {
                                                                                                                                                                                                                                                                                                        return {
                                                                                                                                                                                                                                                                                                            type: Syntax.FunctionDeclaration,
                                                                                                                                                                                                                                                                                                            id: id,
                                                                                                                                                                                                                                                                                                            params: params,
                                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 2211..2222

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

                                                                                                                                                                                                                                                                                            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

                                                                                                                                                                                                                                                                                                doExportSpecifier: function(name, reexport) {
                                                                                                                                                                                                                                                                                                  if (reexport) {
                                                                                                                                                                                                                                                                                                    return ("exports." + name + " = require(\"" + reexport + "\")." + name + ";\n");
                                                                                                                                                                                                                                                                                                  }
                                                                                                                                                                                                                                                                                                  return ("exports." + name + " = " + name + ";\n");
                                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 7151..7156

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

                                                                                                                                                                                                                                                                                            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

                                                                                                                                                                                                                                                                                                doExportSpecifier: function(name, reexport) {
                                                                                                                                                                                                                                                                                                  if (reexport) {
                                                                                                                                                                                                                                                                                                    return ("__exports__." + name + " = __imports__[\"" + reexport + "\"]." + name + ";\n");
                                                                                                                                                                                                                                                                                                  }
                                                                                                                                                                                                                                                                                                  return ("__exports__." + name + " = " + name + ";\n");
                                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 6464..6469

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

                                                                                                                                                                                                                                                                                            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

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

                                                                                                                                                                                                                                                                                                        if (directive === 'use strict') {
                                                                                                                                                                                                                                                                                                            strict = true;
                                                                                                                                                                                                                                                                                                            if (firstRestricted) {
                                                                                                                                                                                                                                                                                                                throwErrorTolerant(firstRestricted, Messages.StrictOctalLiteral);
                                                                                                                                                                                                                                                                                                            }
                                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 5117..5126

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

                                                                                                                                                                                                                                                                                            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

                                                                                                                                                                                                                                                                                                function parseImportSpecifier() {
                                                                                                                                                                                                                                                                                                    var id, name = null;
                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                    id = parseNonComputedProperty();
                                                                                                                                                                                                                                                                                                    if (matchContextualKeyword('as')) {
                                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 3846..3856

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

                                                                                                                                                                                                                                                                                            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

                                                                                                                                                                                                                                                                                                function parseExportSpecifier() {
                                                                                                                                                                                                                                                                                                    var id, name = null;
                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                    id = parseVariableIdentifier();
                                                                                                                                                                                                                                                                                                    if (matchContextualKeyword('as')) {
                                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 3969..3979

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

                                                                                                                                                                                                                                                                                            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

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

                                                                                                                                                                                                                                                                                                    if (matchKeyword('extends')) {
                                                                                                                                                                                                                                                                                                        expectKeyword('extends');
                                                                                                                                                                                                                                                                                                        previousYieldAllowed = state.yieldAllowed;
                                                                                                                                                                                                                                                                                                        state.yieldAllowed = false;
                                                                                                                                                                                                                                                                                                        superClass = parseAssignmentExpression();
                                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 5014..5020

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

                                                                                                                                                                                                                                                                                            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

                                                                                                                                                                                                                                                                                                        return (id === 'while') || (id === 'break') || (id === 'catch') ||
                                                                                                                                                                                                                                                                                                            (id === 'throw') || (id === 'const') || (id === 'yield') ||
                                                                                                                                                                                                                                                                                                            (id === 'class') || (id === 'super');
                                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 2692..2699

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

                                                                                                                                                                                                                                                                                            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

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

                                                                                                                                                                                                                                                                                                    if (matchKeyword('extends')) {
                                                                                                                                                                                                                                                                                                        expectKeyword('extends');
                                                                                                                                                                                                                                                                                                        previousYieldAllowed = state.yieldAllowed;
                                                                                                                                                                                                                                                                                                        state.yieldAllowed = false;
                                                                                                                                                                                                                                                                                                        superClass = parseAssignmentExpression();
                                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 5036..5042

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

                                                                                                                                                                                                                                                                                            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

                                                                                                                                                                                                                                                                                                    return op === '=' ||
                                                                                                                                                                                                                                                                                                        op === '*=' ||
                                                                                                                                                                                                                                                                                                        op === '/=' ||
                                                                                                                                                                                                                                                                                                        op === '%=' ||
                                                                                                                                                                                                                                                                                                        op === '+=' ||
                                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 915..917

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

                                                                                                                                                                                                                                                                                            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

                                                                                                                                                                                                                                                                                              function elementGet(object, name) {
                                                                                                                                                                                                                                                                                                if (traceur.options.trapMemberLookup &&
                                                                                                                                                                                                                                                                                                    hasPrivateNameProperty(object, elementGetName)) {
                                                                                                                                                                                                                                                                                                  return getProperty(object, elementGetName).call(object, name);
                                                                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 168..174

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

                                                                                                                                                                                                                                                                                            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

                                                                                                                                                                                                                                                                                              function elementDelete(object, name) {
                                                                                                                                                                                                                                                                                                if (traceur.options.trapMemberLookup &&
                                                                                                                                                                                                                                                                                                    hasPrivateNameProperty(object, elementDeleteName)) {
                                                                                                                                                                                                                                                                                                  return getProperty(object, elementDeleteName).call(object, name);
                                                                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 176..182

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

                                                                                                                                                                                                                                                                                            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

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

                                                                                                                                                                                                                                                                                                    if (length > 0) {
                                                                                                                                                                                                                                                                                                        if (typeof source[0] === 'undefined') {
                                                                                                                                                                                                                                                                                                            // Try first to convert to a string. This is good as fast path
                                                                                                                                                                                                                                                                                                            // for old IE which understands string indexing for string
                                                                                                                                                                                                                                                                                                            // literals only and not for string object.
                                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 5919..5928

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

                                                                                                                                                                                                                                                                                            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

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

                                                                                                                                                                                                                                                                                                    if (length > 0) {
                                                                                                                                                                                                                                                                                                        if (typeof source[0] === 'undefined') {
                                                                                                                                                                                                                                                                                                            // Try first to convert to a string. This is good as fast path
                                                                                                                                                                                                                                                                                                            // for old IE which understands string indexing for string
                                                                                                                                                                                                                                                                                                            // literals only and not for string object.
                                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 6025..6034

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

                                                                                                                                                                                                                                                                                            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

                                                                                                                                                                                                                                                                                                        } else if (Object.prototype.hasOwnProperty.call(options.paramSet, key)) {
                                                                                                                                                                                                                                                                                                            options.firstRestricted = param;
                                                                                                                                                                                                                                                                                                            options.message = Messages.StrictParamDupe;
                                                                                                                                                                                                                                                                                                        }
                                                                                                                                                                                                                                                                                            Severity: Minor
                                                                                                                                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js and 1 other location - About 55 mins to fix
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 4628..4631

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

                                                                                                                                                                                                                                                                                            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 (Object.prototype.hasOwnProperty.call(options.paramSet, key)) {
                                                                                                                                                                                                                                                                                                            options.stricted = param;
                                                                                                                                                                                                                                                                                                            options.message = Messages.StrictParamDupe;
                                                                                                                                                                                                                                                                                                        }
                                                                                                                                                                                                                                                                                            Severity: Minor
                                                                                                                                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js and 1 other location - About 55 mins to fix
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 4639..4642

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

                                                                                                                                                                                                                                                                                            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

                                                                                                                                                                                                                                                                                                function expect(value) {
                                                                                                                                                                                                                                                                                                    var token = lex();
                                                                                                                                                                                                                                                                                                    if (token.type !== Token.Punctuator || token.value !== value) {
                                                                                                                                                                                                                                                                                                        throwUnexpected(token);
                                                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                                                            Severity: Minor
                                                                                                                                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js and 1 other location - About 50 mins to fix
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 2657..2662

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

                                                                                                                                                                                                                                                                                            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

                                                                                                                                                                                                                                                                                                function expectKeyword(keyword) {
                                                                                                                                                                                                                                                                                                    var token = lex();
                                                                                                                                                                                                                                                                                                    if (token.type !== Token.Keyword || token.value !== keyword) {
                                                                                                                                                                                                                                                                                                        throwUnexpected(token);
                                                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                                                            Severity: Minor
                                                                                                                                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js and 1 other location - About 50 mins to fix
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 2647..2652

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

                                                                                                                                                                                                                                                                                            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 6:
                                                                                                                                                                                                                                                                                                        return (id === 'return') || (id === 'typeof') || (id === 'delete') ||
                                                                                                                                                                                                                                                                                                            (id === 'switch') || (id === 'export') || (id === 'import');
                                                                                                                                                                                                                                                                                            Severity: Minor
                                                                                                                                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js and 1 other location - About 50 mins to fix
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 911..913

                                                                                                                                                                                                                                                                                            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

                                                                                                                                                                                                                                                                                                    case 4:
                                                                                                                                                                                                                                                                                                        return (id === 'this') || (id === 'else') || (id === 'case') ||
                                                                                                                                                                                                                                                                                                            (id === 'void') || (id === 'with') || (id === 'enum');
                                                                                                                                                                                                                                                                                            Severity: Minor
                                                                                                                                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js and 1 other location - About 50 mins to fix
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 918..920

                                                                                                                                                                                                                                                                                            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

                                                                                                                                                                                                                                                                                                    if (strict && param.type === Syntax.Identifier && isRestrictedWord(param.name)) {
                                                                                                                                                                                                                                                                                                        throwErrorTolerant({}, Messages.StrictCatchVariable);
                                                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js and 2 other locations - About 45 mins to fix
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 3223..3225
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 3251..3253

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

                                                                                                                                                                                                                                                                                            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

                                                                                                                                                                                                                                                                                                        if (strict && expr.type === Syntax.Identifier && isRestrictedWord(expr.name)) {
                                                                                                                                                                                                                                                                                                            throwErrorTolerant({}, Messages.StrictLHSPostfix);
                                                                                                                                                                                                                                                                                                        }
                                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js and 2 other locations - About 45 mins to fix
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 3251..3253
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 4421..4423

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

                                                                                                                                                                                                                                                                                            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

                                                                                                                                                                                                                                                                                                        if (strict && expr.type === Syntax.Identifier && isRestrictedWord(expr.name)) {
                                                                                                                                                                                                                                                                                                            throwErrorTolerant({}, Messages.StrictLHSPrefix);
                                                                                                                                                                                                                                                                                                        }
                                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js and 2 other locations - About 45 mins to fix
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 3223..3225
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 4421..4423

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

                                                                                                                                                                                                                                                                                            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

                                                                                                                                                                                                                                                                                                    return (ch === 36) || (ch === 95) ||  // $ (dollar) and _ (underscore)
                                                                                                                                                                                                                                                                                                        (ch >= 65 && ch <= 90) ||         // A..Z
                                                                                                                                                                                                                                                                                                        (ch >= 97 && ch <= 122) ||        // a..z
                                                                                                                                                                                                                                                                                                        (ch >= 48 && ch <= 57) ||         // 0..9
                                                                                                                                                                                                                                                                                            Severity: Minor
                                                                                                                                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js and 1 other location - About 45 mins to fix
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 841..844

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

                                                                                                                                                                                                                                                                                            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

                                                                                                                                                                                                                                                                                                    return (ch === 36) || (ch === 95) ||  // $ (dollar) and _ (underscore)
                                                                                                                                                                                                                                                                                                        (ch >= 65 && ch <= 90) ||         // A..Z
                                                                                                                                                                                                                                                                                                        (ch >= 97 && ch <= 122) ||        // a..z
                                                                                                                                                                                                                                                                                                        (ch === 92) ||                    // \ (backslash)
                                                                                                                                                                                                                                                                                            Severity: Minor
                                                                                                                                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js and 1 other location - About 45 mins to fix
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 849..852

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

                                                                                                                                                                                                                                                                                            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 (!ch || ch === '\\' || !isIdentifierStart(ch.charCodeAt(0))) {
                                                                                                                                                                                                                                                                                                            throwError({}, Messages.UnexpectedToken, 'ILLEGAL');
                                                                                                                                                                                                                                                                                                        }
                                                                                                                                                                                                                                                                                            Severity: Minor
                                                                                                                                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js and 1 other location - About 40 mins to fix
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 1091..1093

                                                                                                                                                                                                                                                                                            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

                                                                                                                                                                                                                                                                                                            if (!ch || ch === '\\' || !isIdentifierPart(ch.charCodeAt(0))) {
                                                                                                                                                                                                                                                                                                                throwError({}, Messages.UnexpectedToken, 'ILLEGAL');
                                                                                                                                                                                                                                                                                                            }
                                                                                                                                                                                                                                                                                            Severity: Minor
                                                                                                                                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js and 1 other location - About 40 mins to fix
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 1069..1071

                                                                                                                                                                                                                                                                                            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

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

                                                                                                                                                                                                                                                                                                    if (state.allowDefault) {
                                                                                                                                                                                                                                                                                                        id = matchKeyword('default') ? parseNonComputedProperty() : parseVariableIdentifier();
                                                                                                                                                                                                                                                                                                    } else {
                                                                                                                                                                                                                                                                                                        id = parseVariableIdentifier();
                                                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                                                            Severity: Minor
                                                                                                                                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js and 1 other location - About 40 mins to fix
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 4736..4740

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

                                                                                                                                                                                                                                                                                            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

                                                                                                                                                                                                                                                                                                doNamedImport: function(name, dependencyName, alias) {
                                                                                                                                                                                                                                                                                                  return ("var " + alias + " = __dependency" + this.map[dependencyName] + "__." + name + ";\n");
                                                                                                                                                                                                                                                                                                },
                                                                                                                                                                                                                                                                                            Severity: Minor
                                                                                                                                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js and 1 other location - About 40 mins to fix
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 6720..6722

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

                                                                                                                                                                                                                                                                                            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

                                                                                                                                                                                                                                                                                                doNamedImport: function(name, dependencyName, alias) {
                                                                                                                                                                                                                                                                                                  return ("var " + alias + " = __dependency" + this.map[dependencyName] + "__." + name + ";\n");
                                                                                                                                                                                                                                                                                                },
                                                                                                                                                                                                                                                                                            Severity: Minor
                                                                                                                                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js and 1 other location - About 40 mins to fix
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 6320..6322

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

                                                                                                                                                                                                                                                                                            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

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

                                                                                                                                                                                                                                                                                                    if (state.allowDefault) {
                                                                                                                                                                                                                                                                                                        id = matchKeyword('default') ? parseNonComputedProperty() : parseVariableIdentifier();
                                                                                                                                                                                                                                                                                                    } else {
                                                                                                                                                                                                                                                                                                        id = parseVariableIdentifier();
                                                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                                                            Severity: Minor
                                                                                                                                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js and 1 other location - About 40 mins to fix
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 5030..5034

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

                                                                                                                                                                                                                                                                                            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

                                                                                                                                                                                                                                                                                                    createForStatement: function (init, test, update, body) {
                                                                                                                                                                                                                                                                                                        return {
                                                                                                                                                                                                                                                                                                            type: Syntax.ForStatement,
                                                                                                                                                                                                                                                                                                            init: init,
                                                                                                                                                                                                                                                                                                            test: test,
                                                                                                                                                                                                                                                                                            Severity: Minor
                                                                                                                                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js and 2 other locations - About 35 mins to fix
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 2350..2358
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 2501..2509

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

                                                                                                                                                                                                                                                                                                    createTryStatement: function (block, guardedHandlers, handlers, finalizer) {
                                                                                                                                                                                                                                                                                                        return {
                                                                                                                                                                                                                                                                                                            type: Syntax.TryStatement,
                                                                                                                                                                                                                                                                                                            block: block,
                                                                                                                                                                                                                                                                                                            guardedHandlers: guardedHandlers,
                                                                                                                                                                                                                                                                                            Severity: Minor
                                                                                                                                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js and 2 other locations - About 35 mins to fix
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 2169..2177
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 2501..2509

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

                                                                                                                                                                                                                                                                                                    createExportDeclaration: function (def, declaration, specifiers, source) {
                                                                                                                                                                                                                                                                                                        return {
                                                                                                                                                                                                                                                                                                            type: Syntax.ExportDeclaration,
                                                                                                                                                                                                                                                                                                            declaration: declaration,
                                                                                                                                                                                                                                                                                                            default: def,
                                                                                                                                                                                                                                                                                            Severity: Minor
                                                                                                                                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js and 2 other locations - About 35 mins to fix
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 2169..2177
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 2350..2358

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

                                                                                                                                                                                                                                                                                                            } else if (extra.tokens[extra.openCurlyToken - 4] &&
                                                                                                                                                                                                                                                                                                                    extra.tokens[extra.openCurlyToken - 4].type === "Keyword") {
                                                                                                                                                                                                                                                                                                                // Named function.
                                                                                                                                                                                                                                                                                                                checkToken = extra.tokens[extra.openCurlyToken - 5];
                                                                                                                                                                                                                                                                                                                if (!checkToken) {
                                                                                                                                                                                                                                                                                            Severity: Minor
                                                                                                                                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js and 1 other location - About 35 mins to fix
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 1917..1933

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

                                                                                                                                                                                                                                                                                            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 (extra.tokens[extra.openCurlyToken - 3] &&
                                                                                                                                                                                                                                                                                                                    extra.tokens[extra.openCurlyToken - 3].type === "Keyword") {
                                                                                                                                                                                                                                                                                                                // Anonymous function.
                                                                                                                                                                                                                                                                                                                checkToken = extra.tokens[extra.openCurlyToken - 4];
                                                                                                                                                                                                                                                                                                                if (!checkToken) {
                                                                                                                                                                                                                                                                                            Severity: Minor
                                                                                                                                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js and 1 other location - About 35 mins to fix
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 1924..1933

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

                                                                                                                                                                                                                                                                                            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

                                                                                                                                                                                                                                                                                                    return token.type === Token.Identifier ||
                                                                                                                                                                                                                                                                                                        token.type === Token.Keyword ||
                                                                                                                                                                                                                                                                                                        token.type === Token.BooleanLiteral ||
                                                                                                                                                                                                                                                                                            Severity: Minor
                                                                                                                                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js and 1 other location - About 30 mins to fix
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 3462..3462

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

                                                                                                                                                                                                                                                                                            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

                                                                                                                                                                                                                                                                                                                    start = node.left.groupRange ? node.left.groupRange[0] : node.left.range[0];
                                                                                                                                                                                                                                                                                            Severity: Minor
                                                                                                                                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js and 1 other location - About 30 mins to fix
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 5628..5628

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

                                                                                                                                                                                                                                                                                            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 (expr.type !== Syntax.MemberExpression && expr.type !== Syntax.CallExpression && expr.type !== Syntax.NewExpression) {
                                                                                                                                                                                                                                                                                            Severity: Minor
                                                                                                                                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js and 1 other location - About 30 mins to fix
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 1885..1887

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

                                                                                                                                                                                                                                                                                            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

                                                                                                                                                                                                                                                                                                                    start = node.left.groupLoc ? node.left.groupLoc.start : node.left.loc.start;
                                                                                                                                                                                                                                                                                            Severity: Minor
                                                                                                                                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js and 1 other location - About 30 mins to fix
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 5639..5639

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

                                                                                                                                                                                                                                                                                            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

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

                                                                                                                                                                                                                                                                                                    if (ch1 === '.') {
                                                                                                                                                                                                                                                                                                        ++index;
                                                                                                                                                                                                                                                                                                        return {
                                                                                                                                                                                                                                                                                                            type: Token.Punctuator,
                                                                                                                                                                                                                                                                                                            value: ch1,
                                                                                                                                                                                                                                                                                            Severity: Minor
                                                                                                                                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js and 1 other location - About 30 mins to fix
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 1332..1341

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

                                                                                                                                                                                                                                                                                            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

                                                                                                                                                                                                                                                                                                                    end = node.right.groupRange ? node.right.groupRange[1] : node.right.range[1];
                                                                                                                                                                                                                                                                                            Severity: Minor
                                                                                                                                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js and 1 other location - About 30 mins to fix
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 5627..5627

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

                                                                                                                                                                                                                                                                                            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

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

                                                                                                                                                                                                                                                                                                    if ('<>=!+-*%&|^/'.indexOf(ch1) >= 0) {
                                                                                                                                                                                                                                                                                                        ++index;
                                                                                                                                                                                                                                                                                                        return {
                                                                                                                                                                                                                                                                                                            type: Token.Punctuator,
                                                                                                                                                                                                                                                                                                            value: ch1,
                                                                                                                                                                                                                                                                                            Severity: Minor
                                                                                                                                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js and 1 other location - About 30 mins to fix
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 1343..1352

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

                                                                                                                                                                                                                                                                                            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

                                                                                                                                                                                                                                                                                                                    end = node.right.groupLoc ? node.right.groupLoc.end : node.right.loc.end;
                                                                                                                                                                                                                                                                                            Severity: Minor
                                                                                                                                                                                                                                                                                            Found in lib/es6_module_transpiler/support/es6-module-transpiler.js and 1 other location - About 30 mins to fix
                                                                                                                                                                                                                                                                                            lib/es6_module_transpiler/support/es6-module-transpiler.js on lines 5638..5638

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

                                                                                                                                                                                                                                                                                            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