Showing 83 of 149 total issues
Function fxdefine
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function fxdefine(moduleName, array, moduleDefinition) {
//define(moduleDefinition)
if (typeof moduleName === 'function') {
moduleDefinition = moduleName;
moduleName = undefined;
Function fxdefine
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function fxdefine(moduleName, array, moduleDefinition) {
//define(moduleDefinition)
if (typeof moduleName === 'function') {
moduleDefinition = moduleName;
moduleName = undefined;
Function definejs
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var definejs = function (_) {
_ = core(_, amd);
function * loadGenerator(modulePath) {
return yield loader.load(modulePath);
Function definejs
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var definejs = function (_) {
_ = core(_, amd);
function * loadGenerator(modulePath) {
return yield loader.load(modulePath);
Function definejs
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var definejs = function (_) {
_ = core(_, amd);
function * loadGenerator(modulePath) {
return yield loader.load(modulePath);
Function getUrl
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getUrl(modulePath) {
var moduleName = getFileName(modulePath),
url,
urlArgs,
path,
Function getUrl
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getUrl(modulePath) {
var moduleName = getFileName(modulePath),
url,
urlArgs,
path,
Function getUrl
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getUrl(modulePath) {
var moduleName = getFileName(modulePath),
url,
urlArgs,
path,
Function flush
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function flush() {
while (head.next) {
head = head.next;
var task = head.task;
head.task = void 0;
Function loadModule
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function loadModule(modulePath, callback) {
var isFirstLoadDemand = false,
moduleName = getFileName(modulePath),
fileName,
modulesList;
Function loadModule
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function loadModule(modulePath, callback) {
var isFirstLoadDemand = false,
moduleName = getFileName(modulePath),
fileName,
modulesList;
Function compileAll
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function compileAll(name, path, contents) {
var amdName;
// Detect variable modules
if (/.\/var\//.test(path)) {
contents = ' ' + contents
Function fxdefine
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function fxdefine(moduleName, array, moduleDefinition) {
//define(moduleDefinition)
if (typeof moduleName === 'function') {
if (isGenerator(moduleName)) {
var asyncFunc = async(moduleName);
Function nextTick
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
process.nextTick = function() {
var canSetImmediate = typeof window !== "undefined" && window.setImmediate;
var canPost = typeof window !== "undefined" && window.postMessage && window.addEventListener;
if (canSetImmediate) {
return function(f) {
Function all
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Promise.all = function(arr) {
var args = Array.prototype.slice.call(arr);
return new Promise(function(resolve, reject) {
if (args.length === 0) return resolve([]);
var remaining = args.length;
Function defer
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function defer() {
var resolvedPromise,
baseFulfill,
baseReject,
dfd = {},
Function core
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function core(_, amd) {
if (!isObject(_)) {
_ = global;
}
_.define = function (moduleName, array, moduleDefinition) {
Function core
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function core(_, amd) {
if (!isObject(_)) {
_ = global;
}
_.define = function (moduleName, array, moduleDefinition) {
Function defer
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function defer() {
var resolvedPromise,
baseFulfill,
baseReject,
dfd = {},
Function core
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function core(_, amd) {
if (!isObject(_)) {
_ = global;
}
_.define = function (moduleName, array, moduleDefinition) {