Showing 109 of 109 total issues
File multiplex.d.ts
has 436 lines of code (exceeds 250 allowed). Consider refactoring. Open
declare var multiplex: multiplex.MultiplexStatic;
// Support AMD require
declare module 'multiplex' {
`` has 43 functions (exceeds 20 allowed). Consider refactoring. Open
mixin(iterable.prototype, {
/**
* Applies an accumulator function over a sequence.
* @param {Object} seed The initial accumulator value.
Function linq
has 143 lines of code (exceeds 25 allowed). Consider refactoring. Open
export default function linq(iterable) {
mixin(iterable, {
/**
* Returns an empty Iterable.
Function quickSort
has a Cognitive Complexity of 28 (exceeds 5 allowed). Consider refactoring. Open
quickSort: function (map, left, right) {
do {
var i = left,
j = right,
x = map[i + ((j - i) >> 1)];
- 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 exports
has 99 lines of code (exceeds 25 allowed). Consider refactoring. Open
module.exports = function (grunt) {
'use strict';
var rollup = require('rollup'),
path = require('path'),
`` has 29 functions (exceeds 20 allowed). Consider refactoring. Open
extend(List, Collection, {
/**
* Adds an object to the end of the List.
* @param {Object} item The object to be added to the end of the List.
*/
Function compare
has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring. Open
export default function compare(objA, objB) {
// Identical objects
if (objA === objB) {
return 0;
}
- 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 hash-set.js
has 289 lines of code (exceeds 250 allowed). Consider refactoring. Open
import Collection from './collection';
import HashTable, { HashTableIterator } from './hash-table';
import EqulityComparer from './equality-comparer';
import assertType from '../utils/assert-type';
import assertNotNull from '../utils/assert-not-null';
Function findLast
has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring. Open
findLast: function (value) {
if (this.head === null) {
return 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
Function exports
has 63 lines of code (exceeds 25 allowed). Consider refactoring. Open
module.exports = function (grunt) {
'use strict';
var path = require('path'),
dirs = grunt.config('dirs'),
File list.js
has 268 lines of code (exceeds 250 allowed). Consider refactoring. Open
import Collection from './collection';
import ReadOnlyCollection from './read-only-collection';
import ArrayIterator from '../iteration/iterator-array';
import Comparer from './comparer';
Function find
has a Cognitive Complexity of 18 (exceeds 5 allowed). Consider refactoring. Open
find: function (value) {
var node = this.head;
if (node !== null) {
if (value !== 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
Function equals
has a Cognitive Complexity of 18 (exceeds 5 allowed). Consider refactoring. Open
export default function equals(objA, objB, strict) {
// Objects are identical
if (objA === objB) {
return true;
}
- 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 hash
has a Cognitive Complexity of 17 (exceeds 5 allowed). Consider refactoring. Open
export default function hash(obj, strict) {
// null/undefined hash is 0
if (obj === null || obj === undefined) {
return 0;
}
- 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 linked-list.js
has 256 lines of code (exceeds 250 allowed). Consider refactoring. Open
import Collection from './collection';
import Iterator from '../iteration/iterator';
import LinkedListNode from './linked-list-node';
import forOf from '../utils/for-of';
import assertType from '../utils/assert-type';
Function minMaxIterator
has a Cognitive Complexity of 16 (exceeds 5 allowed). Consider refactoring. Open
export default function minMaxIterator(source, max, selector) {
assertNotNull(source);
if (selector) {
assertType(selector, Function);
- 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 exports
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
module.exports = function (grunt) {
'use strict';
var pkg = grunt.file.readJSON('package.json'),
dirs = {
Function intersectWith
has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring. Open
intersectWith: function (other) {
assertNotNull(other);
// intersection of anything with empty set is empty set, so return if count is 0
if (this.count() === 0) {
- 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 minMaxIterator
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
export default function minMaxIterator(source, max, selector) {
assertNotNull(source);
if (selector) {
assertType(selector, Function);
Function exports
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
module.exports = function (grunt) {
'use strict';
var dirs = grunt.config('dirs'),
files = grunt.config('files'),