Showing 83 of 149 total issues
Function defineModuleDefinition
has 363 lines of code (exceeds 25 allowed). Consider refactoring. Open
function defineModuleDefinition() {
var
isOldOpera = typeof global.opera !== 'undefined' && global.opera.toString() === '[object Opera]',
currentScript = document.currentScript,
emptyArray = [],
Function defineModuleDefinition
has 352 lines of code (exceeds 25 allowed). Consider refactoring. Open
function defineModuleDefinition() {
var
isOldOpera = typeof global.opera !== 'undefined' && global.opera.toString() === '[object Opera]',
currentScript = document.currentScript,
emptyArray = [],
Function defineModuleDefinition
has 333 lines of code (exceeds 25 allowed). Consider refactoring. Open
function defineModuleDefinition() {
var
isOldOpera = typeof global.opera !== 'undefined' && global.opera.toString() === '[object Opera]',
currentScript = document.currentScript,
emptyArray = [],
File define.promise.js
has 644 lines of code (exceeds 250 allowed). Consider refactoring. Open
/**
* DefineJS v0.2.9 2015-04-16T23:09Z
* Copyright (c) 2014 Mehran Hatami and define.js contributors.
* Available via the MIT license.
* license found at http://github.com/fixjs/define.js/raw/master/LICENSE
File define.promise.js
has 644 lines of code (exceeds 250 allowed). Consider refactoring. Open
/**
* DefineJS v0.2.9 2015-04-16T23:09Z
* Copyright (c) 2014 Mehran Hatami and define.js contributors.
* Available via the MIT license.
* license found at http://github.com/fixjs/define.js/raw/master/LICENSE
File define.js
has 541 lines of code (exceeds 250 allowed). Consider refactoring. Open
/**
* DefineJS v0.2.9 2015-04-16T23:09Z
* Copyright (c) 2014 Mehran Hatami and define.js contributors.
* Available via the MIT license.
* license found at http://github.com/fixjs/define.js/raw/master/LICENSE
File define.js
has 541 lines of code (exceeds 250 allowed). Consider refactoring. Open
/**
* DefineJS v0.2.9 2015-04-16T23:09Z
* Copyright (c) 2014 Mehran Hatami and define.js contributors.
* Available via the MIT license.
* license found at http://github.com/fixjs/define.js/raw/master/LICENSE
File define.js
has 541 lines of code (exceeds 250 allowed). Consider refactoring. Open
/**
* DefineJS v0.2.9 2015-04-16T23:09Z
* Copyright (c) 2014 Mehran Hatami and define.js contributors.
* Available via the MIT license.
* license found at http://github.com/fixjs/define.js/raw/master/LICENSE
File define.js
has 541 lines of code (exceeds 250 allowed). Consider refactoring. Open
/**
* DefineJS v0.2.9 2015-04-16T23:09Z
* Copyright (c) 2014 Mehran Hatami and define.js contributors.
* Available via the MIT license.
* license found at http://github.com/fixjs/define.js/raw/master/LICENSE
File define.js
has 541 lines of code (exceeds 250 allowed). Consider refactoring. Open
/**
* DefineJS v0.2.9 2015-04-16T23:09Z
* Copyright (c) 2014 Mehran Hatami and define.js contributors.
* Available via the MIT license.
* license found at http://github.com/fixjs/define.js/raw/master/LICENSE
File define.js
has 541 lines of code (exceeds 250 allowed). Consider refactoring. Open
/**
* DefineJS v0.2.9 2015-04-16T23:09Z
* Copyright (c) 2014 Mehran Hatami and define.js contributors.
* Available via the MIT license.
* license found at http://github.com/fixjs/define.js/raw/master/LICENSE
Function 4
has a Cognitive Complexity of 46 (exceeds 5 allowed). Consider refactoring. Open
4: [ function(require, module, exports) {
(function(process) {
var head = {
task: void 0,
next: null
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
File define.promise.js
has 449 lines of code (exceeds 250 allowed). Consider refactoring. Open
/**
* DefineJS v0.2.31
* Copyright (c) 2014 Mehran Hatami and define.js contributors.
* Available via the MIT license.
* license found at http://github.com/fixjs/define.js/raw/master/LICENSE
Function exports
has 139 lines of code (exceeds 25 allowed). Consider refactoring. Open
module.exports = function (grunt) {
'use strict';
var examples = [
'regular-amd-style',
File define.debug.js
has 392 lines of code (exceeds 250 allowed). Consider refactoring. Open
/**
* DefineJS v0.2.31
* Copyright (c) 2014 Mehran Hatami and define.js contributors.
* Available via the MIT license.
* license found at http://github.com/fixjs/define.js/raw/master/LICENSE
File promise-6.1.0.js
has 375 lines of code (exceeds 250 allowed). Consider refactoring. Open
(function e(t, n, r) {
function s(o, u) {
if (!n[o]) {
if (!t[o]) {
var a = typeof require == "function" && require;
Function 2
has a Cognitive Complexity of 33 (exceeds 5 allowed). Consider refactoring. Open
2: [ function(require, module, exports) {
"use strict";
var asap = require("asap");
module.exports = Promise;
function Promise(fn) {
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
File define.js
has 368 lines of code (exceeds 250 allowed). Consider refactoring. Open
/**
* DefineJS v0.2.31
* Copyright (c) 2014 Mehran Hatami and define.js contributors.
* Available via the MIT license.
* license found at http://github.com/fixjs/define.js/raw/master/LICENSE
Function 3
has a Cognitive Complexity of 30 (exceeds 5 allowed). Consider refactoring. Open
3: [ function(require, module, exports) {
"use strict";
var Promise = require("./core.js");
var asap = require("asap");
module.exports = Promise;
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function 3
has 90 lines of code (exceeds 25 allowed). Consider refactoring. Open
3: [ function(require, module, exports) {
"use strict";
var Promise = require("./core.js");
var asap = require("asap");
module.exports = Promise;