dockyard/es6_module_transpiler-rails

View on GitHub

Showing 141 of 225 total issues

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