Showing 141 of 225 total issues
Function 1
has 4426 lines of code (exceeds 25 allowed). Consider refactoring. Open
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>
File es6-module-transpiler.js
has 5917 lines of code (exceeds 250 allowed). Consider refactoring. Open
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
Function scanPunctuator
has 171 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function scanPunctuator() {
var start = index,
code = source.charCodeAt(index),
code2,
ch1 = source[index],
Function 7
has 147 lines of code (exceeds 25 allowed). Consider refactoring. Open
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);
Function 4
has 137 lines of code (exceeds 25 allowed). Consider refactoring. Open
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);
Function 3
has 131 lines of code (exceeds 25 allowed). Consider refactoring. Open
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);
Function 2
has 127 lines of code (exceeds 25 allowed). Consider refactoring. Open
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++) {
Function scanComment
has 116 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function scanComment() {
var comment, ch, loc, start, blockComment, lineComment;
comment = '';
blockComment = false;
Function 11
has 115 lines of code (exceeds 25 allowed). Consider refactoring. Open
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++) {
Function 12
has 114 lines of code (exceeds 25 allowed). Consider refactoring. Open
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);
Function scanTemplate
has 108 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function scanTemplate() {
var cooked = '', ch, start, terminated, tail, restore, unescaped, code, octal;
terminated = false;
tail = false;
Function 9
has 107 lines of code (exceeds 25 allowed). Consider refactoring. Open
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++) {
Function GlobalsCompiler
has 107 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var GlobalsCompiler = function($__super) {
'use strict';
var $__proto = $__getProtoParent($__super);
var $GlobalsCompiler = ($__createClass)({
constructor: function() {
Function AbstractCompiler
has 104 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var AbstractCompiler = function() {
'use strict';
var $AbstractCompiler = ($__createClassNoExtends)({
constructor: function(compiler, options) {
this.compiler = compiler;
Function patch
has 101 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function patch() {
var wrapTracking;
if (extra.comments) {
Function scanStringLiteral
has 93 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function scanStringLiteral() {
var str = '', quote, start, ch, code, unescaped, restore, octal = false;
quote = source[index];
assert((quote === '\'' || quote === '"'),
Function CJSCompiler
has 92 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var CJSCompiler = function($__super) {
'use strict';
var $__proto = $__getProtoParent($__super);
var $CJSCompiler = ($__createClass)({
constructor: function() {
Function AMDCompiler
has 91 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var AMDCompiler = function($__super) {
'use strict';
var $__proto = $__getProtoParent($__super);
var $AMDCompiler = ($__createClass)({
constructor: function() {
Function Parser
has 87 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var Parser = function() {
'use strict';
var $Parser = ($__createClassNoExtends)({
constructor: function(script) {
this.parse(script);
Function scanRegExp
has 86 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function scanRegExp() {
var str, ch, start, pattern, flags, value, classMarker = false, restore, terminated = false;
lookahead = null;
skipComment();