Reactive-Extensions/RxJS

View on GitHub

Showing 2,890 of 2,890 total issues

Function plucker has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

function plucker(args, len) {
return function mapper(x) {
var currentProp = x;
for (var i = 0; i < len; i++) {
var p = currentProp[args[i]];
Severity: Minor
Found in src/core/linq/observable/pluck.js - About 25 mins to fix

Function windowCount has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

observableProto.windowWithCount = observableProto.windowCount = function (count, skip) {
var source = this;
+count || (count = 0);
Math.abs(count) === Infinity && (count = 0);
if (count <= 0) { throw new ArgumentOutOfRangeError(); }
Severity: Minor
Found in src/core/linq/observable/windowwithcount.js - About 25 mins to fix

Function PrintVisitor has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

var PrintVisitor = (function (_super) {
__extends(PrintVisitor, _super);
function PrintVisitor() {
_super.apply(this, arguments);
}
Severity: Minor
Found in src/core/expressions/compiler.js - About 25 mins to fix

Function captureLine has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

function captureLine() {
if (!hasStacks) { return; }
 
try {
throw new Error();
Severity: Minor
Found in src/core/longstacktraces/longstacktraces.js - About 25 mins to fix

Function IgnoreElementsObservable has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

var IgnoreElementsObservable = (function(__super__) {
inherits(IgnoreElementsObservable, __super__);
 
function IgnoreElementsObservable(source) {
this.source = source;
Severity: Minor
Found in src/core/perf/operators/ignoreelements.js - About 25 mins to fix

Function heapify has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

priorityProto.heapify = function (index) {
+index || (index = 0);
if (index >= this.length || index < 0) { return; }
var left = 2 * index + 1,
right = 2 * index + 2,
Severity: Minor
Found in src/core/internal/priorityqueue.js - About 25 mins to fix

Function run has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

RepeatSink.prototype.run = function () {
var observer = this.observer, value = this.parent.value;
function loopRecursive(i, recurse) {
if (i === -1 || i > 0) {
observer.onNext(value);
Severity: Minor
Found in src/core/perf/operators/repeat.js - About 25 mins to fix

Function invokeRecImmediate has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

function invokeRecImmediate(scheduler, pair) {
var state = pair[0], action = pair[1], group = new CompositeDisposable();
action(state, innerAction);
return group;
 
 
Severity: Minor
Found in lib/concurrency/scheduler.js - About 25 mins to fix

Function heapify has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

PriorityQueue.prototype.heapify = function (index) {
+index || (index = 0);
if (index >= this.length || index < 0) { return; }
var left = 2 * index + 1,
right = 2 * index + 2,
Severity: Minor
Found in lib/internal/priorityqueue.js - About 25 mins to fix

Function invokeRecDate has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

function invokeRecDate(scheduler, pair) {
var state = pair[0], action = pair[1], group = new CompositeDisposable();
action(state, innerAction);
return group;
 
 
Severity: Minor
Found in lib/concurrency/scheduler.js - About 25 mins to fix
Severity
Category
Status
Source
Language