Showing 1,013 of 2,890 total issues
Function LambdaCompiler
has a Cognitive Complexity of 25 (exceeds 5 allowed). Consider refactoring. Open
Open
var LambdaCompiler = (function (_super) { __extends(LambdaCompiler, _super); function LambdaCompiler() { _super.call(this); this._stack = new Array();
- Read upRead up
File binding.js
has 314 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*** Inspired by Knockout.js and RxJS-Splash*/(function (root, factory) { var freeExports = typeof exports == 'object' && exports,
File rx.lite.testing.js
has 312 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
// Copyright (c) Microsoft, All rights reserved. See License.txt in the project root for license information. ;(function (factory) { var objectTypes = { 'function': true,
File rx.lite.testing.compat.js
has 312 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
// Copyright (c) Microsoft, All rights reserved. See License.txt in the project root for license information. ;(function (factory) { var objectTypes = { 'function': true,
Function remove
has 87 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
remove: function(node) { if (node.N) node.N.P = node.P; if (node.P) node.P.N = node.N; node.N = node.P = null; var parent = node.U, sibling, left = node.L, right = node.R, next, red;
Function ControlledSubject
has 84 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var ControlledSubject = (function (__super__) { inherits(ControlledSubject, __super__); function ControlledSubject(enableQueue, scheduler) { enableQueue == null && (enableQueue = true);
Function ControlledSubject
has 84 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var ControlledSubject = (function (__super__) { inherits(ControlledSubject, __super__); function ControlledSubject(enableQueue, scheduler) { enableQueue == null && (enableQueue = true);
Function ControlledSubject
has 84 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var ControlledSubject = (function (__super__) { inherits(ControlledSubject, __super__); function ControlledSubject(enableQueue, scheduler) { enableQueue == null && (enableQueue = true);
Function finish
has 82 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
finish: function() { config.current = this; if ( config.requireExpects && this.expected == null ) { QUnit.pushFailure( "Expected number of assertions to be defined, but expect() was not called.", this.stack ); } else if ( this.expected != null && this.expected != this.assertions.length ) {
Function AsciiGraphic
has 80 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function AsciiGraphic(data, blockSize, wall, position) { wall || (wall = blockSize); position || (position = new Game.Point(0, 0)); var width = data[0].length, height = data.length,
Function data
has 80 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
d3_selectionPrototype.data = function(value, key) { var i = -1, n = this.length, group, node; if (!arguments.length) { value = new Array(n = (group = this[0]).length); while (++i < n) {
Function drawImage
has 77 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
contextPrototype.drawImage = function(image, var_args) { var dx, dy, dw, dh, sx, sy, sw, sh; // to find the original width we overide the width and height var oldRuntimeWidth = image.runtimeStyle.width;
Function albersUsa
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
d3.geo.albersUsa = function() { var lower48 = d3.geo.albers(); var alaska = d3.geo.conicEqualArea().rotate([ 154, 0 ]).center([ -2, 58.5 ]).parallels([ 55, 65 ]); var hawaii = d3.geo.conicEqualArea().rotate([ 157, 0 ]).center([ -3, 19.9 ]).parallels([ 8, 18 ]); var point, pointStream = {
Function d3_geo_resample
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function d3_geo_resample(project) { var δ2 = .5, cosMinDistance = Math.cos(30 * d3_radians), maxDepth = 16; function resample(stream) { return (maxDepth ? resampleRecursive : resampleNone)(stream); }
Function d3_scale_ordinal
has 74 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function d3_scale_ordinal(domain, ranger) { var index, range, rangeBand; function scale(x) { return range[((index.get(x) || (ranger.t === "range" ? index.set(x, domain.push(x)) : NaN)) - 1) % range.length]; }
Function d3_locale_numberFormat
has 74 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function d3_locale_numberFormat(locale) { var locale_decimal = locale.decimal, locale_thousands = locale.thousands, locale_grouping = locale.grouping, locale_currency = locale.currency, formatGroup = locale_grouping ? function(value) { var i = value.length, t = [], j = 0, g = locale_grouping[0]; while (i > 0 && g > 0) { t.push(value.substring(i -= g, i + g));
Function groupJoin
has 74 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
observableProto.groupJoin = function (right, leftDurationSelector, rightDurationSelector, resultSelector) { var left = this; return new AnonymousObservable(function (o) { var group = new CompositeDisposable(); var r = new RefCountDisposable(group);
Function groupJoin
has 74 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
observableProto.groupJoin = function (right, leftDurationSelector, rightDurationSelector, resultSelector) { var left = this; return new AnonymousObservable(function (o) { var group = new CompositeDisposable(); var r = new RefCountDisposable(group);
Function groupJoin
has 74 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
observableProto.groupJoin = function (right, leftDurationSelector, rightDurationSelector, resultSelector) { var left = this; return new AnonymousObservable(function (o) { var group = new CompositeDisposable(); var r = new RefCountDisposable(group);
Function AsyncSubject
has 73 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var AsyncSubject = Rx.AsyncSubject = (function (__super__) { inherits(AsyncSubject, __super__); /** * Creates a subject that can only receive one value and that value is cached for all future observations.