Showing 10 of 12 total issues
Function Thread
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
var Thread = (function() {
/**
* a template function used to construct the webworker's content
*/
Function Loop
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
var Loop = (function() {
/**
* Async loop class that takes a handle as a parameter and a maximum number of iterations
* @constructor
* @param {Function} handle
Function List
has 63 lines of code (exceeds 25 allowed). Consider refactoring. Open
var List = (function() {
/**
* Async array usage
* @class ListHandler
* @param {Array} list
Function ListHandler
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
var ListHandler = (function() {
var ListHandler = function(list) {
this.list = list;
};
Function If
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
var If = (function() {
/**
* Proxy class for handling promises
* @class ForkPromiseProxy
*/
Function Loop
has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring. Open
var Loop = (function() {
/**
* Async loop class that takes a handle as a parameter and a maximum number of iterations
* @constructor
* @param {Function} handle
- 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 Thread
has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring. Open
var Thread = (function() {
/**
* a template function used to construct the webworker's content
*/
- 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 ForkPromiseProxy
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
var ForkPromiseProxy = (function() {
var ForkPromiseProxy = function(promise) {
this.promise = promise;
this.thenHandle = function() {};
Function If
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
var If = (function() {
/**
* Proxy class for handling promises
* @class ForkPromiseProxy
*/
- 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 bind
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
Function.prototype.bind = function(oThis) {
if (typeof this !== 'function') {
// closest thing possible to the ECMAScript 5
// internal IsCallable function
throw new TypeError('Function.prototype.bind - what is trying to be bound is not callable');
- 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"