dockyard/es6_module_transpiler-rails

View on GitHub

Showing 141 of 225 total issues

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