dockyard/es6_module_transpiler-rails

View on GitHub

Showing 141 of 225 total issues

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 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 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 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 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 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 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 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 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 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
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language