phadej/menrva

View on GitHub
lib/rx.lite.js

Summary

Maintainability
F
1 mo
Test Coverage

File rx.lite.js has 3735 lines of code (exceeds 250 allowed). Consider refactoring.
Open

// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.

;(function (undefined) {

  var objectTypes = {
Severity: Major
Found in lib/rx.lite.js - About 1 wk to fix

    Function Scheduler has 132 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        var Scheduler = Rx.Scheduler = (function () {
    
            function Scheduler(now, schedule, scheduleRelative, scheduleAbsolute) {
                this.now = now;
                this._schedule = schedule;
    Severity: Major
    Found in lib/rx.lite.js - About 5 hrs to fix

      Function ReplaySubject has 111 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          var ReplaySubject = Rx.ReplaySubject = (function (_super) {
      
              function RemovableDisposable (subject, observer) {
                  this.subject = subject;
                  this.observer = observer;
      Severity: Major
      Found in lib/rx.lite.js - About 4 hrs to fix

        Function ControlledSubject has 105 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            var ControlledSubject = Rx.ControlledSubject = (function (_super) {
        
                function subscribe (observer) {
                    return this.subject.subscribe(observer);
                }
        Severity: Major
        Found in lib/rx.lite.js - About 4 hrs to fix

          Function deepEquals has 92 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

            function deepEquals(a, b, stackA, stackB) {
              // exit early for identical values
              if (a === b) {
                // treat `+0` vs. `-0` as not equal
                return a !== 0 || (1 / a == 1 / b);
          Severity: Major
          Found in lib/rx.lite.js - About 3 hrs to fix

            Function AsyncSubject has 83 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                var AsyncSubject = Rx.AsyncSubject = (function (_super) {
            
                    function subscribe(observer) {
                        checkDisposed.call(this);
                        
            Severity: Major
            Found in lib/rx.lite.js - About 3 hrs to fix

              Function BehaviorSubject has 69 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  var BehaviorSubject = Rx.BehaviorSubject = (function (_super) {
                      function subscribe(observer) {
                          checkDisposed.call(this);
                          if (!this.isStopped) {
                              this.observers.push(observer);
              Severity: Major
              Found in lib/rx.lite.js - About 2 hrs to fix

                Function Subject has 65 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    var Subject = Rx.Subject = (function (_super) {
                        function subscribe(observer) {
                            checkDisposed.call(this);
                            if (!this.isStopped) {
                                this.observers.push(observer);
                Severity: Major
                Found in lib/rx.lite.js - About 2 hrs to fix

                  Function PausableBufferedObservable has 63 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                    var PausableBufferedObservable = (function (_super) {
                  
                      inherits(PausableBufferedObservable, _super);
                  
                      function subscribe(observer) {
                  Severity: Major
                  Found in lib/rx.lite.js - About 2 hrs to fix

                    Function delay has 63 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        observableProto.delay = function (dueTime, scheduler) {
                            scheduler || (scheduler = timeoutScheduler);
                            var source = this;  
                            return new AnonymousObservable(function (observer) {
                                var active = false,
                    Severity: Major
                    Found in lib/rx.lite.js - About 2 hrs to fix

                      Function timeoutWithSelector has 61 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          observableProto.timeoutWithSelector = function (firstTimeout, timeoutdurationSelector, other) {
                              if (arguments.length === 1) {
                                  timeoutdurationSelector = firstTimeout;
                                  var firstTimeout = observableNever();
                              }
                      Severity: Major
                      Found in lib/rx.lite.js - About 2 hrs to fix

                        Function ScheduledObserver has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                          var ScheduledObserver = Rx.internals.ScheduledObserver = (function (_super) {
                            inherits(ScheduledObserver, _super);
                        
                            function ScheduledObserver(scheduler, observer) {
                              _super.call(this);
                        Severity: Major
                        Found in lib/rx.lite.js - About 2 hrs to fix

                          Function currentThread has 49 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              var currentThreadScheduler = Scheduler.currentThread = (function () {
                                  var queue;
                          
                                  function runTrampoline (q) {
                                      var item;
                          Severity: Minor
                          Found in lib/rx.lite.js - About 1 hr to fix

                            Function combineLatest has 48 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                              var combineLatest = Observable.combineLatest = function () {
                                var args = slice.call(arguments), resultSelector = args.pop();
                                
                                if (Array.isArray(args[0])) {
                                  args = args[0];
                            Severity: Minor
                            Found in lib/rx.lite.js - About 1 hr to fix

                              Function AutoDetachObserver has 48 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  var AutoDetachObserver = (function (_super) {
                                      inherits(AutoDetachObserver, _super);
                              
                                      function AutoDetachObserver(observer) {
                                          _super.call(this);
                              Severity: Minor
                              Found in lib/rx.lite.js - About 1 hr to fix

                                Function delayWithSelector has 47 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    observableProto.delayWithSelector = function (subscriptionDelay, delayDurationSelector) {
                                        var source = this, subDelay, selector;
                                        if (typeof subscriptionDelay === 'function') {
                                            selector = subscriptionDelay;
                                        } else {
                                Severity: Minor
                                Found in lib/rx.lite.js - About 1 hr to fix

                                  Function zip has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                    observableProto.zip = function () {
                                      if (Array.isArray(arguments[0])) {
                                        return zipArray.apply(this, arguments);
                                      }
                                      var parent = this, sources = slice.call(arguments), resultSelector = sources.pop();
                                  Severity: Minor
                                  Found in lib/rx.lite.js - About 1 hr to fix

                                    Function catchException has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                      Enumerable.prototype.catchException = function () {
                                        var sources = this;
                                        return new AnonymousObservable(function (observer) {
                                          var e;
                                          try {
                                    Severity: Minor
                                    Found in lib/rx.lite.js - About 1 hr to fix

                                      Function throttleWithSelector has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          observableProto.throttleWithSelector = function (throttleDurationSelector) {
                                              var source = this;
                                              return new AnonymousObservable(function (observer) {
                                                  var value, hasValue = false, cancelable = new SerialDisposable(), id = 0, subscription = source.subscribe(function (x) {
                                                      var throttle;
                                      Severity: Minor
                                      Found in lib/rx.lite.js - About 1 hr to fix

                                        Function ConnectableObservable has 43 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            var ConnectableObservable = Rx.ConnectableObservable = (function (_super) {
                                                inherits(ConnectableObservable, _super);
                                        
                                                /**
                                                 * @constructor
                                        Severity: Minor
                                        Found in lib/rx.lite.js - About 1 hr to fix

                                          Function merge has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                                          Open

                                              observableProto.merge = function (maxConcurrentOrOther) {
                                                  if (typeof maxConcurrentOrOther !== 'number') {
                                                      return observableMerge(this, maxConcurrentOrOther);
                                                  }
                                                  var sources = this;
                                          Severity: Minor
                                          Found in lib/rx.lite.js - About 1 hr to fix

                                            Consider simplifying this complex logical expression.
                                            Open

                                                  if (ctorA != ctorB &&
                                                        !(hasOwnProperty.call(a, 'constructor') && hasOwnProperty.call(b, 'constructor')) &&
                                                        !(isFunction(ctorA) && ctorA instanceof ctorA && isFunction(ctorB) && ctorB instanceof ctorB) &&
                                                        ('constructor' in a && 'constructor' in b)
                                                      ) {
                                            Severity: Critical
                                            Found in lib/rx.lite.js - About 1 hr to fix

                                              Function zipArray has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                                              Open

                                                  Observable.zipArray = function () {
                                                      var sources = argsOrArray(arguments, 0);
                                                      return new AnonymousObservable(function (observer) {
                                                          var n = sources.length,
                                                            queues = arrayInitialize(n, function () { return []; }),
                                              Severity: Minor
                                              Found in lib/rx.lite.js - About 1 hr to fix

                                                Function timeout has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                                                Open

                                                  observableProto.timeout = function (dueTime, other, scheduler) {
                                                    other || (other = observableThrow(new Error('Timeout')));
                                                    scheduler || (scheduler = timeoutScheduler);
                                                    
                                                    var source = this, schedulerMethod = dueTime instanceof Date ?
                                                Severity: Minor
                                                Found in lib/rx.lite.js - About 1 hr to fix

                                                  Function doAction has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                                                  Open

                                                      observableProto['do'] = observableProto.doAction = function (observerOrOnNext, onError, onCompleted) {
                                                          var source = this, onNextFunc;
                                                          if (typeof observerOrOnNext === 'function') {
                                                              onNextFunc = observerOrOnNext;
                                                          } else {
                                                  Severity: Minor
                                                  Found in lib/rx.lite.js - About 1 hr to fix

                                                    Function subscribe has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                                                    Open

                                                        function subscribe(observer) {
                                                          var q = [], previous = true;
                                                          
                                                          var subscription =  
                                                            combineLatestSource(
                                                    Severity: Minor
                                                    Found in lib/rx.lite.js - About 1 hr to fix

                                                      Function combineLatestSource has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                                                      Open

                                                        function combineLatestSource(source, subject, resultSelector) {
                                                          return new AnonymousObservable(function (observer) {
                                                            var n = 2,
                                                              hasValue = [false, false],
                                                              hasValueAll = false,
                                                      Severity: Minor
                                                      Found in lib/rx.lite.js - About 1 hr to fix

                                                        Function AnonymousObservable has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                                                        Open

                                                          var AnonymousObservable = Rx.AnonymousObservable = (function (__super__) {
                                                            inherits(AnonymousObservable, __super__);
                                                        
                                                            // Fix subscriber to check for undefined or function returned to decorate as Disposable
                                                            function fixSubscriber(subscriber) {
                                                        Severity: Minor
                                                        Found in lib/rx.lite.js - About 1 hr to fix

                                                          Function concat has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                                                          Open

                                                            Enumerable.prototype.concat = function () {
                                                              var sources = this;
                                                              return new AnonymousObservable(function (observer) {
                                                                var e;
                                                                try {
                                                          Severity: Minor
                                                          Found in lib/rx.lite.js - About 1 hr to fix

                                                            Function RefCountDisposable has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                                                            Open

                                                                var RefCountDisposable = Rx.RefCountDisposable = (function () {
                                                            
                                                                    function InnerDisposable(disposable) {
                                                                        this.disposable = disposable;
                                                                        this.disposable.count++;
                                                            Severity: Minor
                                                            Found in lib/rx.lite.js - About 1 hr to fix

                                                              Function switchLatest has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                                                              Open

                                                                  observableProto['switch'] = observableProto.switchLatest = function () {
                                                                      var sources = this;
                                                                      return new AnonymousObservable(function (observer) {
                                                                          var hasLatest = false,
                                                                              innerSubscription = new SerialDisposable(),
                                                              Severity: Minor
                                                              Found in lib/rx.lite.js - About 1 hr to fix

                                                                Function BooleanDisposable has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                Open

                                                                    var BooleanDisposable = (function () {
                                                                        function BooleanDisposable (isSingle) {
                                                                            this.isSingle = isSingle;
                                                                            this.isDisposed = false;
                                                                            this.current = null;
                                                                Severity: Minor
                                                                Found in lib/rx.lite.js - About 1 hr to fix

                                                                  Function scan has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                  Open

                                                                      observableProto.scan = function () {
                                                                          var hasSeed = false, seed, accumulator, source = this;
                                                                          if (arguments.length === 2) {
                                                                              hasSeed = true;
                                                                              seed = arguments[0];
                                                                  Severity: Minor
                                                                  Found in lib/rx.lite.js - About 1 hr to fix

                                                                    Function PausableObservable has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                    Open

                                                                      var PausableObservable = (function (_super) {
                                                                    
                                                                        inherits(PausableObservable, _super);
                                                                    
                                                                        function subscribe(observer) {
                                                                    Severity: Minor
                                                                    Found in lib/rx.lite.js - About 1 hr to fix

                                                                      Function AbstractObserver has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                      Open

                                                                          var AbstractObserver = Rx.internals.AbstractObserver = (function (_super) {
                                                                              inherits(AbstractObserver, _super);
                                                                      
                                                                              /**
                                                                               * Creates a new observer in a non-stopped state.
                                                                      Severity: Minor
                                                                      Found in lib/rx.lite.js - About 1 hr to fix

                                                                        Function generateWithRelativeTime has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                        Open

                                                                            Observable.generateWithRelativeTime = function (initialState, condition, iterate, resultSelector, timeSelector, scheduler) {
                                                                                scheduler || (scheduler = timeoutScheduler);
                                                                                return new AnonymousObservable(function (observer) {
                                                                                    var first = true,
                                                                                        hasResult = false,
                                                                        Severity: Minor
                                                                        Found in lib/rx.lite.js - About 1 hr to fix

                                                                          Function timeout has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                          Open

                                                                            var timeoutScheduler = Scheduler.timeout = (function () {
                                                                          
                                                                              function scheduleNow(state, action) {
                                                                                  var scheduler = this,
                                                                                    disposable = new SingleAssignmentDisposable();
                                                                          Severity: Minor
                                                                          Found in lib/rx.lite.js - About 1 hr to fix

                                                                            Function keysIn has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                            Open

                                                                              function keysIn(object) {
                                                                                var result = [];
                                                                                if (!isObject(object)) {
                                                                                  return result;
                                                                                }
                                                                            Severity: Minor
                                                                            Found in lib/rx.lite.js - About 1 hr to fix

                                                                              Function fromNodeCallback has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                              Open

                                                                                  Observable.fromNodeCallback = function (func, scheduler, context, selector) {
                                                                                      scheduler || (scheduler = immediateScheduler);
                                                                                      return function () {
                                                                                          var args = slice.call(arguments, 0);
                                                                              
                                                                              
                                                                              Severity: Minor
                                                                              Found in lib/rx.lite.js - About 1 hr to fix

                                                                                Function fromEvent has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                Open

                                                                                  Observable.fromEvent = function (element, eventName, selector) {
                                                                                    if (ember) {
                                                                                      return fromEventPattern(
                                                                                        function (h) { Ember.addListener(element, eventName, h); },
                                                                                        function (h) { Ember.removeListener(element, eventName, h); },
                                                                                Severity: Minor
                                                                                Found in lib/rx.lite.js - About 1 hr to fix

                                                                                  Function distinctUntilChanged has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                  Open

                                                                                      observableProto.distinctUntilChanged = function (keySelector, comparer) {
                                                                                          var source = this;
                                                                                          keySelector || (keySelector = identity);
                                                                                          comparer || (comparer = defaultComparer);
                                                                                          return new AnonymousObservable(function (observer) {
                                                                                  Severity: Minor
                                                                                  Found in lib/rx.lite.js - About 1 hr to fix

                                                                                    Function AnonymousObservable has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                    Open

                                                                                        function AnonymousObservable(subscribe) {
                                                                                          if (!(this instanceof AnonymousObservable)) {
                                                                                            return new AnonymousObservable(subscribe);
                                                                                          }
                                                                                    
                                                                                    
                                                                                    Severity: Minor
                                                                                    Found in lib/rx.lite.js - About 1 hr to fix

                                                                                      Function fromCallback has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                      Open

                                                                                          Observable.fromCallback = function (func, scheduler, context, selector) {
                                                                                              scheduler || (scheduler = immediateScheduler);
                                                                                              return function () {
                                                                                                  var args = slice.call(arguments, 0);
                                                                                      
                                                                                      
                                                                                      Severity: Minor
                                                                                      Found in lib/rx.lite.js - About 1 hr to fix

                                                                                        Function generate has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                        Open

                                                                                            Observable.generate = function (initialState, condition, iterate, resultSelector, scheduler) {
                                                                                                scheduler || (scheduler = currentThreadScheduler);
                                                                                                return new AnonymousObservable(function (observer) {
                                                                                                    var first = true, state = initialState;
                                                                                                    return scheduler.scheduleRecursive(function (self) {
                                                                                        Severity: Minor
                                                                                        Found in lib/rx.lite.js - About 1 hr to fix

                                                                                          Function cancelable has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                          Open

                                                                                                var cancelable = immediateScheduler.scheduleRecursive(function (self) {
                                                                                                  if (isDisposed) { return; }
                                                                                          
                                                                                                  var currentItem;
                                                                                                  try {
                                                                                          Severity: Minor
                                                                                          Found in lib/rx.lite.js - About 1 hr to fix

                                                                                            Consider simplifying this complex logical expression.
                                                                                            Open

                                                                                                if (a === a && (a == null || b == null ||
                                                                                                    (type != 'function' && type != 'object' && otherType != 'function' && otherType != 'object'))) {
                                                                                                  return false;
                                                                                                }
                                                                                            Severity: Major
                                                                                            Found in lib/rx.lite.js - About 1 hr to fix

                                                                                              Function generateWithRelativeTime has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                              Open

                                                                                                  Observable.generateWithRelativeTime = function (initialState, condition, iterate, resultSelector, timeSelector, scheduler) {
                                                                                              Severity: Minor
                                                                                              Found in lib/rx.lite.js - About 45 mins to fix

                                                                                                Function ScheduledItem has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                Open

                                                                                                    var ScheduledItem = Rx.internals.ScheduledItem = function (scheduler, state, action, dueTime, comparer) {
                                                                                                Severity: Minor
                                                                                                Found in lib/rx.lite.js - About 35 mins to fix

                                                                                                  Function generate has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                  Open

                                                                                                      Observable.generate = function (initialState, condition, iterate, resultSelector, scheduler) {
                                                                                                  Severity: Minor
                                                                                                  Found in lib/rx.lite.js - About 35 mins to fix

                                                                                                    Avoid too many return statements within this function.
                                                                                                    Open

                                                                                                            return stackB[length] == b;
                                                                                                    Severity: Major
                                                                                                    Found in lib/rx.lite.js - About 30 mins to fix

                                                                                                      Avoid too many return statements within this function.
                                                                                                      Open

                                                                                                          return result;
                                                                                                      Severity: Major
                                                                                                      Found in lib/rx.lite.js - About 30 mins to fix

                                                                                                        Avoid too many return statements within this function.
                                                                                                        Open

                                                                                                                return false;
                                                                                                        Severity: Major
                                                                                                        Found in lib/rx.lite.js - About 30 mins to fix

                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                          Open

                                                                                                              observableProto.selectConcat = observableProto.concatMap = function (selector, resultSelector) {
                                                                                                                if (resultSelector) {
                                                                                                                    return this.concatMap(function (x, i) {
                                                                                                                      var selectorResult = selector(x, i),
                                                                                                                        result = isPromise(selectorResult) ? observableFromPromise(selectorResult) : selectorResult;
                                                                                                          Severity: Major
                                                                                                          Found in lib/rx.lite.js and 1 other location - About 6 hrs to fix
                                                                                                          lib/rx.lite.js on lines 3145..3162

                                                                                                          Duplicated Code

                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                          Tuning

                                                                                                          This issue has a mass of 157.

                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                          Refactorings

                                                                                                          Further Reading

                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                          Open

                                                                                                              observableProto.selectMany = observableProto.flatMap = function (selector, resultSelector) {
                                                                                                                if (resultSelector) {
                                                                                                                    return this.selectMany(function (x, i) {
                                                                                                                      var selectorResult = selector(x, i),
                                                                                                                        result = isPromise(selectorResult) ? observableFromPromise(selectorResult) : selectorResult;
                                                                                                          Severity: Major
                                                                                                          Found in lib/rx.lite.js and 1 other location - About 6 hrs to fix
                                                                                                          lib/rx.lite.js on lines 3048..3065

                                                                                                          Duplicated Code

                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                          Tuning

                                                                                                          This issue has a mass of 157.

                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                          Refactorings

                                                                                                          Further Reading

                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                          Open

                                                                                                              function concatMapObserver(onNext, onError, onCompleted) {
                                                                                                                var source = this;
                                                                                                                return new AnonymousObservable(function (observer) {
                                                                                                                  var index = 0;
                                                                                                          
                                                                                                          
                                                                                                          Severity: Major
                                                                                                          Found in lib/rx.lite.js and 1 other location - About 5 hrs to fix
                                                                                                          lib/rx.lite.js on lines 3106..3124

                                                                                                          Duplicated Code

                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                          Tuning

                                                                                                          This issue has a mass of 144.

                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                          Refactorings

                                                                                                          Further Reading

                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                          Open

                                                                                                              function selectManyObserver(onNext, onError, onCompleted) {
                                                                                                                var source = this;
                                                                                                                return new AnonymousObservable(function (observer) {
                                                                                                                  var index = 0;
                                                                                                          
                                                                                                          
                                                                                                          Severity: Major
                                                                                                          Found in lib/rx.lite.js and 1 other location - About 5 hrs to fix
                                                                                                          lib/rx.lite.js on lines 3009..3027

                                                                                                          Duplicated Code

                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                          Tuning

                                                                                                          This issue has a mass of 144.

                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                          Refactorings

                                                                                                          Further Reading

                                                                                                          Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                                          Open

                                                                                                                      onError: function (exception) {
                                                                                                                          checkDisposed.call(this);
                                                                                                                          if (!this.isStopped) {
                                                                                                                              var os = this.observers.slice(0);
                                                                                                                              this.isStopped = true;
                                                                                                          Severity: Major
                                                                                                          Found in lib/rx.lite.js and 2 other locations - About 5 hrs to fix
                                                                                                          lib/rx.lite.js on lines 5337..5350
                                                                                                          lib/rx.lite.js on lines 5486..5499

                                                                                                          Duplicated Code

                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                          Tuning

                                                                                                          This issue has a mass of 137.

                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                          Refactorings

                                                                                                          Further Reading

                                                                                                          Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                                          Open

                                                                                                                      onError: function (exception) {
                                                                                                                          checkDisposed.call(this);
                                                                                                                          if (!this.isStopped) {
                                                                                                                              var os = this.observers.slice(0);
                                                                                                                              this.isStopped = true;
                                                                                                          Severity: Major
                                                                                                          Found in lib/rx.lite.js and 2 other locations - About 5 hrs to fix
                                                                                                          lib/rx.lite.js on lines 5202..5214
                                                                                                          lib/rx.lite.js on lines 5486..5499

                                                                                                          Duplicated Code

                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                          Tuning

                                                                                                          This issue has a mass of 137.

                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                          Refactorings

                                                                                                          Further Reading

                                                                                                          Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                                          Open

                                                                                                                      onError: function (error) {
                                                                                                                          checkDisposed.call(this);
                                                                                                                          if (!this.isStopped) {
                                                                                                                              var os = this.observers.slice(0);
                                                                                                                              this.isStopped = true;
                                                                                                          Severity: Major
                                                                                                          Found in lib/rx.lite.js and 2 other locations - About 5 hrs to fix
                                                                                                          lib/rx.lite.js on lines 5202..5214
                                                                                                          lib/rx.lite.js on lines 5337..5350

                                                                                                          Duplicated Code

                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                          Tuning

                                                                                                          This issue has a mass of 137.

                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                          Refactorings

                                                                                                          Further Reading

                                                                                                          Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                          Open

                                                                                                                      onCompleted: function () {
                                                                                                                          checkDisposed.call(this);
                                                                                                                          if (!this.isStopped) {
                                                                                                                              var os = this.observers.slice(0);
                                                                                                                              this.isStopped = true;
                                                                                                          Severity: Major
                                                                                                          Found in lib/rx.lite.js and 1 other location - About 4 hrs to fix
                                                                                                          lib/rx.lite.js on lines 5186..5197

                                                                                                          Duplicated Code

                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                          Tuning

                                                                                                          This issue has a mass of 124.

                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                          Refactorings

                                                                                                          Further Reading

                                                                                                          Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                          Open

                                                                                                                      onCompleted: function () {
                                                                                                                          checkDisposed.call(this);
                                                                                                                          if (!this.isStopped) {
                                                                                                                              var os = this.observers.slice(0);
                                                                                                                              this.isStopped = true;
                                                                                                          Severity: Major
                                                                                                          Found in lib/rx.lite.js and 1 other location - About 4 hrs to fix
                                                                                                          lib/rx.lite.js on lines 5470..5481

                                                                                                          Duplicated Code

                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                          Tuning

                                                                                                          This issue has a mass of 124.

                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                          Refactorings

                                                                                                          Further Reading

                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                          Open

                                                                                                              switch (className) {
                                                                                                                case boolClass:
                                                                                                                case dateClass:
                                                                                                                  // coerce dates and booleans to numbers, dates to milliseconds and booleans
                                                                                                                  // to `1` or `0` treating invalid dates coerced to `NaN` as not equal
                                                                                                          Severity: Major
                                                                                                          Found in lib/rx.lite.js and 1 other location - About 3 hrs to fix
                                                                                                          lib/lodash.js on lines 1093..1112

                                                                                                          Duplicated Code

                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                          Tuning

                                                                                                          This issue has a mass of 107.

                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                          Refactorings

                                                                                                          Further Reading

                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                          Open

                                                                                                                                  if (selector) {
                                                                                                                                      try {
                                                                                                                                          results = selector(results);
                                                                                                                                      } catch (e) {
                                                                                                                                          observer.onError(e);
                                                                                                          Severity: Major
                                                                                                          Found in lib/rx.lite.js and 1 other location - About 1 hr to fix
                                                                                                          lib/rx.lite.js on lines 3340..3351

                                                                                                          Duplicated Code

                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                          Tuning

                                                                                                          This issue has a mass of 74.

                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                          Refactorings

                                                                                                          Further Reading

                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                          Open

                                                                                                                                  if (selector) {
                                                                                                                                      try {
                                                                                                                                          results = selector(arguments);
                                                                                                                                      } catch (err) {
                                                                                                                                          observer.onError(err);
                                                                                                          Severity: Major
                                                                                                          Found in lib/rx.lite.js and 1 other location - About 1 hr to fix
                                                                                                          lib/rx.lite.js on lines 3388..3399

                                                                                                          Duplicated Code

                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                          Tuning

                                                                                                          This issue has a mass of 74.

                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                          Refactorings

                                                                                                          Further Reading

                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                          Open

                                                                                                                  if (first !== index) {
                                                                                                                      var temp = this.items[index];
                                                                                                                      this.items[index] = this.items[first];
                                                                                                                      this.items[first] = temp;
                                                                                                                      this.heapify(first);
                                                                                                          Severity: Major
                                                                                                          Found in lib/rx.lite.js and 1 other location - About 1 hr to fix
                                                                                                          lib/rx.lite.js on lines 428..433

                                                                                                          Duplicated Code

                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                          Tuning

                                                                                                          This issue has a mass of 68.

                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                          Refactorings

                                                                                                          Further Reading

                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                          Open

                                                                                                                  if (this.isHigherPriority(index, parent)) {
                                                                                                                      var temp = this.items[index];
                                                                                                                      this.items[index] = this.items[parent];
                                                                                                                      this.items[parent] = temp;
                                                                                                                      this.percolate(parent);
                                                                                                          Severity: Major
                                                                                                          Found in lib/rx.lite.js and 1 other location - About 1 hr to fix
                                                                                                          lib/rx.lite.js on lines 452..457

                                                                                                          Duplicated Code

                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                          Tuning

                                                                                                          This issue has a mass of 68.

                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                          Refactorings

                                                                                                          Further Reading

                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                          Open

                                                                                                                function innerHandler (e) {
                                                                                                                  var result = e;
                                                                                                                  if (selector) {
                                                                                                                    try {
                                                                                                                      result = selector(arguments);
                                                                                                          Severity: Major
                                                                                                          Found in lib/rx.lite.js and 1 other location - About 1 hr to fix
                                                                                                          lib/rx.lite.js on lines 3482..3495

                                                                                                          Duplicated Code

                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                          Tuning

                                                                                                          This issue has a mass of 66.

                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                          Refactorings

                                                                                                          Further Reading

                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                          Open

                                                                                                                  function handler (e) { 
                                                                                                                    var results = e;
                                                                                                          
                                                                                                                    if (selector) {
                                                                                                                      try {
                                                                                                          Severity: Major
                                                                                                          Found in lib/rx.lite.js and 1 other location - About 1 hr to fix
                                                                                                          lib/rx.lite.js on lines 3508..3519

                                                                                                          Duplicated Code

                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                          Tuning

                                                                                                          This issue has a mass of 66.

                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                          Refactorings

                                                                                                          Further Reading

                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                          Open

                                                                                                                              for (var i = 0, len = o.length; i < len; i++) {
                                                                                                                                  observer = o[i];
                                                                                                                                  observer.onError(error);
                                                                                                                                  observer.ensureActive();
                                                                                                                              }
                                                                                                          Severity: Major
                                                                                                          Found in lib/rx.lite.js and 1 other location - About 1 hr to fix
                                                                                                          lib/rx.lite.js on lines 5623..5627

                                                                                                          Duplicated Code

                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                          Tuning

                                                                                                          This issue has a mass of 64.

                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                          Refactorings

                                                                                                          Further Reading

                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                          Open

                                                                                                                              for (var i = 0, len = o.length; i < len; i++) {
                                                                                                                                  observer = o[i];
                                                                                                                                  observer.onNext(value);
                                                                                                                                  observer.ensureActive();
                                                                                                                              }
                                                                                                          Severity: Major
                                                                                                          Found in lib/rx.lite.js and 1 other location - About 1 hr to fix
                                                                                                          lib/rx.lite.js on lines 5644..5648

                                                                                                          Duplicated Code

                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                          Tuning

                                                                                                          This issue has a mass of 64.

                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                          Refactorings

                                                                                                          Further Reading

                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                          Open

                                                                                                              function concatMap(selector) {
                                                                                                                return this.map(function (x, i) {
                                                                                                                  var result = selector(x, i);
                                                                                                                  return isPromise(result) ? observableFromPromise(result) : result;
                                                                                                                }).concatAll();
                                                                                                          Severity: Major
                                                                                                          Found in lib/rx.lite.js and 1 other location - About 1 hr to fix
                                                                                                          lib/rx.lite.js on lines 3099..3104

                                                                                                          Duplicated Code

                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                          Tuning

                                                                                                          This issue has a mass of 63.

                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                          Refactorings

                                                                                                          Further Reading

                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                          Open

                                                                                                                  schedulerProto.scheduleRecursiveWithRelativeAndState = function (state, dueTime, action) {
                                                                                                                      return this._scheduleRelative({ first: state, second: action }, dueTime, function (s, p) {
                                                                                                                          return invokeRecDate(s, p, 'scheduleWithRelativeAndState');
                                                                                                                      });
                                                                                                                  };
                                                                                                          Severity: Major
                                                                                                          Found in lib/rx.lite.js and 1 other location - About 1 hr to fix
                                                                                                          lib/rx.lite.js on lines 1009..1013

                                                                                                          Duplicated Code

                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                          Tuning

                                                                                                          This issue has a mass of 63.

                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                          Refactorings

                                                                                                          Further Reading

                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                          Open

                                                                                                              function selectMany(selector) {
                                                                                                                return this.select(function (x, i) {
                                                                                                                  var result = selector(x, i);
                                                                                                                  return isPromise(result) ? observableFromPromise(result) : result;
                                                                                                                }).mergeObservable();
                                                                                                          Severity: Major
                                                                                                          Found in lib/rx.lite.js and 1 other location - About 1 hr to fix
                                                                                                          lib/rx.lite.js on lines 3002..3007

                                                                                                          Duplicated Code

                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                          Tuning

                                                                                                          This issue has a mass of 63.

                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                          Refactorings

                                                                                                          Further Reading

                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                          Open

                                                                                                              ScheduledObserver.prototype.next = function (value) {
                                                                                                                var self = this;
                                                                                                                this.queue.push(function () {
                                                                                                                  self.observer.onNext(value);
                                                                                                                });
                                                                                                          Severity: Major
                                                                                                          Found in lib/rx.lite.js and 1 other location - About 1 hr to fix
                                                                                                          lib/rx.lite.js on lines 1801..1806

                                                                                                          Duplicated Code

                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                          Tuning

                                                                                                          This issue has a mass of 63.

                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                          Refactorings

                                                                                                          Further Reading

                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                          Open

                                                                                                                  schedulerProto.scheduleRecursiveWithAbsolute = function (dueTime, action) {
                                                                                                                      return this.scheduleRecursiveWithAbsoluteAndState(action, dueTime, function (_action, self) {
                                                                                                                          _action(function (dt) {
                                                                                                                              self(_action, dt);
                                                                                                                          });
                                                                                                          Severity: Major
                                                                                                          Found in lib/rx.lite.js and 1 other location - About 1 hr to fix
                                                                                                          lib/rx.lite.js on lines 967..973

                                                                                                          Duplicated Code

                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                          Tuning

                                                                                                          This issue has a mass of 63.

                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                          Refactorings

                                                                                                          Further Reading

                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                          Open

                                                                                                                  schedulerProto.scheduleRecursiveWithAbsoluteAndState = function (state, dueTime, action) {
                                                                                                                      return this._scheduleAbsolute({ first: state, second: action }, dueTime, function (s, p) {
                                                                                                                          return invokeRecDate(s, p, 'scheduleWithAbsoluteAndState');
                                                                                                                      });
                                                                                                                  };
                                                                                                          Severity: Major
                                                                                                          Found in lib/rx.lite.js and 1 other location - About 1 hr to fix
                                                                                                          lib/rx.lite.js on lines 982..986

                                                                                                          Duplicated Code

                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                          Tuning

                                                                                                          This issue has a mass of 63.

                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                          Refactorings

                                                                                                          Further Reading

                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                          Open

                                                                                                              ScheduledObserver.prototype.error = function (exception) {
                                                                                                                var self = this;
                                                                                                                this.queue.push(function () {
                                                                                                                  self.observer.onError(exception);
                                                                                                                });
                                                                                                          Severity: Major
                                                                                                          Found in lib/rx.lite.js and 1 other location - About 1 hr to fix
                                                                                                          lib/rx.lite.js on lines 1794..1799

                                                                                                          Duplicated Code

                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                          Tuning

                                                                                                          This issue has a mass of 63.

                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                          Refactorings

                                                                                                          Further Reading

                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                          Open

                                                                                                              observableProto.publishLast = function (selector) {
                                                                                                                  return !selector ?
                                                                                                                      this.multicast(new AsyncSubject()) :
                                                                                                                      this.multicast(function () {
                                                                                                                          return new AsyncSubject();
                                                                                                          Severity: Major
                                                                                                          Found in lib/rx.lite.js and 1 other location - About 1 hr to fix
                                                                                                          lib/rx.lite.js on lines 3638..3644

                                                                                                          Duplicated Code

                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                          Tuning

                                                                                                          This issue has a mass of 63.

                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                          Refactorings

                                                                                                          Further Reading

                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                          Open

                                                                                                                  schedulerProto.scheduleRecursiveWithRelative = function (dueTime, action) {
                                                                                                                      return this.scheduleRecursiveWithRelativeAndState(action, dueTime, function (_action, self) {
                                                                                                                          _action(function (dt) {
                                                                                                                              self(_action, dt);
                                                                                                                          });
                                                                                                          Severity: Major
                                                                                                          Found in lib/rx.lite.js and 1 other location - About 1 hr to fix
                                                                                                          lib/rx.lite.js on lines 994..1000

                                                                                                          Duplicated Code

                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                          Tuning

                                                                                                          This issue has a mass of 63.

                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                          Refactorings

                                                                                                          Further Reading

                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                          Open

                                                                                                              observableProto.publish = function (selector) {
                                                                                                                  return !selector ?
                                                                                                                      this.multicast(new Subject()) :
                                                                                                                      this.multicast(function () {
                                                                                                                          return new Subject();
                                                                                                          Severity: Major
                                                                                                          Found in lib/rx.lite.js and 1 other location - About 1 hr to fix
                                                                                                          lib/rx.lite.js on lines 3670..3676

                                                                                                          Duplicated Code

                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                          Tuning

                                                                                                          This issue has a mass of 63.

                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                          Refactorings

                                                                                                          Further Reading

                                                                                                          Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                                          Open

                                                                                                              PausableBufferedObservable.prototype.resume = function () {
                                                                                                                if (this.isPaused === false){
                                                                                                                  return;
                                                                                                                }
                                                                                                                this.isPaused = false;
                                                                                                          Severity: Major
                                                                                                          Found in lib/rx.lite.js and 3 other locations - About 1 hr to fix
                                                                                                          lib/rx.lite.js on lines 4641..4647
                                                                                                          lib/rx.lite.js on lines 4649..4655
                                                                                                          lib/rx.lite.js on lines 4775..4781

                                                                                                          Duplicated Code

                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                          Tuning

                                                                                                          This issue has a mass of 62.

                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                          Refactorings

                                                                                                          Further Reading

                                                                                                          Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                                          Open

                                                                                                              PausableObservable.prototype.pause = function () {
                                                                                                                if (this.isPaused === true){
                                                                                                                  return;
                                                                                                                }
                                                                                                                this.isPaused = true;
                                                                                                          Severity: Major
                                                                                                          Found in lib/rx.lite.js and 3 other locations - About 1 hr to fix
                                                                                                          lib/rx.lite.js on lines 4649..4655
                                                                                                          lib/rx.lite.js on lines 4775..4781
                                                                                                          lib/rx.lite.js on lines 4783..4789

                                                                                                          Duplicated Code

                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                          Tuning

                                                                                                          This issue has a mass of 62.

                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                          Refactorings

                                                                                                          Further Reading

                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                          Open

                                                                                                              function PausableBufferedObservable(source, subject) {
                                                                                                                this.source = source;
                                                                                                                this.subject = subject || new Subject();
                                                                                                                this.isPaused = true;
                                                                                                                _super.call(this, subscribe);
                                                                                                          Severity: Major
                                                                                                          Found in lib/rx.lite.js and 1 other location - About 1 hr to fix
                                                                                                          lib/rx.lite.js on lines 4634..4639

                                                                                                          Duplicated Code

                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                          Tuning

                                                                                                          This issue has a mass of 62.

                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                          Refactorings

                                                                                                          Further Reading

                                                                                                          Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                                          Open

                                                                                                              PausableBufferedObservable.prototype.pause = function () {
                                                                                                                if (this.isPaused === true){
                                                                                                                  return;
                                                                                                                }
                                                                                                                this.isPaused = true;
                                                                                                          Severity: Major
                                                                                                          Found in lib/rx.lite.js and 3 other locations - About 1 hr to fix
                                                                                                          lib/rx.lite.js on lines 4641..4647
                                                                                                          lib/rx.lite.js on lines 4649..4655
                                                                                                          lib/rx.lite.js on lines 4783..4789

                                                                                                          Duplicated Code

                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                          Tuning

                                                                                                          This issue has a mass of 62.

                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                          Refactorings

                                                                                                          Further Reading

                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                          Open

                                                                                                              function PausableObservable(source, subject) {
                                                                                                                this.source = source;
                                                                                                                this.subject = subject || new Subject();
                                                                                                                this.isPaused = true;
                                                                                                                _super.call(this, subscribe);
                                                                                                          Severity: Major
                                                                                                          Found in lib/rx.lite.js and 1 other location - About 1 hr to fix
                                                                                                          lib/rx.lite.js on lines 4768..4773

                                                                                                          Duplicated Code

                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                          Tuning

                                                                                                          This issue has a mass of 62.

                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                          Refactorings

                                                                                                          Further Reading

                                                                                                          Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                                          Open

                                                                                                              PausableObservable.prototype.resume = function () {
                                                                                                                if (this.isPaused === false){
                                                                                                                  return;
                                                                                                                }
                                                                                                                this.isPaused = false;
                                                                                                          Severity: Major
                                                                                                          Found in lib/rx.lite.js and 3 other locations - About 1 hr to fix
                                                                                                          lib/rx.lite.js on lines 4641..4647
                                                                                                          lib/rx.lite.js on lines 4775..4781
                                                                                                          lib/rx.lite.js on lines 4783..4789

                                                                                                          Duplicated Code

                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                          Tuning

                                                                                                          This issue has a mass of 62.

                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                          Refactorings

                                                                                                          Further Reading

                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                          Open

                                                                                                              var SingleAssignmentDisposable = Rx.SingleAssignmentDisposable = (function (super_) {
                                                                                                                  inherits(SingleAssignmentDisposable, super_);
                                                                                                          
                                                                                                                  function SingleAssignmentDisposable() {
                                                                                                                      super_.call(this, true);
                                                                                                          Severity: Major
                                                                                                          Found in lib/rx.lite.js and 1 other location - About 1 hr to fix
                                                                                                          lib/rx.lite.js on lines 685..693

                                                                                                          Duplicated Code

                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                          Tuning

                                                                                                          This issue has a mass of 60.

                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                          Refactorings

                                                                                                          Further Reading

                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                          Open

                                                                                                              var SerialDisposable = Rx.SerialDisposable = (function (super_) {
                                                                                                                  inherits(SerialDisposable, super_);
                                                                                                          
                                                                                                                  function SerialDisposable() {
                                                                                                                      super_.call(this, false);
                                                                                                          Severity: Major
                                                                                                          Found in lib/rx.lite.js and 1 other location - About 1 hr to fix
                                                                                                          lib/rx.lite.js on lines 672..680

                                                                                                          Duplicated Code

                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                          Tuning

                                                                                                          This issue has a mass of 60.

                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                          Refactorings

                                                                                                          Further Reading

                                                                                                          Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                          Open

                                                                                                                          while (q.length > 0 && now - q[0].interval >= duration) {
                                                                                                                              observer.onNext(q.shift().value);
                                                                                                                          }
                                                                                                          Severity: Major
                                                                                                          Found in lib/rx.lite.js and 1 other location - About 1 hr to fix
                                                                                                          lib/rx.lite.js on lines 4435..4437

                                                                                                          Duplicated Code

                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                          Tuning

                                                                                                          This issue has a mass of 57.

                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                          Refactorings

                                                                                                          Further Reading

                                                                                                          Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                          Open

                                                                                                                  if (hasValueAll || (hasValueAll = hasValue.every(identity))) {
                                                                                                                    try {
                                                                                                                      res = resultSelector.apply(null, values);
                                                                                                                    } catch (ex) {
                                                                                                                      observer.onError(ex);
                                                                                                          Severity: Major
                                                                                                          Found in lib/rx.lite.js and 1 other location - About 1 hr to fix
                                                                                                          lib/rx.lite.js on lines 2220..2230

                                                                                                          Duplicated Code

                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                          Tuning

                                                                                                          This issue has a mass of 57.

                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                          Refactorings

                                                                                                          Further Reading

                                                                                                          Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                          Open

                                                                                                                          while (q.length > 0 && now - q[0].interval >= duration) {
                                                                                                                              observer.onNext(q.shift().value);
                                                                                                                          }
                                                                                                          Severity: Major
                                                                                                          Found in lib/rx.lite.js and 1 other location - About 1 hr to fix
                                                                                                          lib/rx.lite.js on lines 4440..4442

                                                                                                          Duplicated Code

                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                          Tuning

                                                                                                          This issue has a mass of 57.

                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                          Refactorings

                                                                                                          Further Reading

                                                                                                          Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                          Open

                                                                                                                  if (hasValueAll || (hasValueAll = hasValue.every(identity))) {
                                                                                                                    try {
                                                                                                                      res = resultSelector.apply(null, values);
                                                                                                                    } catch (ex) {
                                                                                                                      observer.onError(ex);
                                                                                                          Severity: Major
                                                                                                          Found in lib/rx.lite.js and 1 other location - About 1 hr to fix
                                                                                                          lib/rx.lite.js on lines 4684..4694

                                                                                                          Duplicated Code

                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                          Tuning

                                                                                                          This issue has a mass of 57.

                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                          Refactorings

                                                                                                          Further Reading

                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                          Open

                                                                                                                  function Scheduler(now, schedule, scheduleRelative, scheduleAbsolute) {
                                                                                                                      this.now = now;
                                                                                                                      this._schedule = schedule;
                                                                                                                      this._scheduleRelative = scheduleRelative;
                                                                                                                      this._scheduleAbsolute = scheduleAbsolute;
                                                                                                          Severity: Major
                                                                                                          Found in lib/rx.lite.js and 1 other location - About 1 hr to fix
                                                                                                          lib/rx.lite.js on lines 1128..1133

                                                                                                          Duplicated Code

                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                          Tuning

                                                                                                          This issue has a mass of 56.

                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                          Refactorings

                                                                                                          Further Reading

                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                          Open

                                                                                                                      dispose: function () {
                                                                                                                          this.isDisposed = true;
                                                                                                                          this.observers = null;
                                                                                                                          this.exception = null;
                                                                                                                          this.value = null;
                                                                                                          Severity: Major
                                                                                                          Found in lib/rx.lite.js and 1 other location - About 1 hr to fix
                                                                                                          lib/rx.lite.js on lines 5517..5522

                                                                                                          Duplicated Code

                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                          Tuning

                                                                                                          This issue has a mass of 56.

                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                          Refactorings

                                                                                                          Further Reading

                                                                                                          Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                          Open

                                                                                                                    sad.setDisposable(source.subscribe(function (x) {
                                                                                                                      queues[i].push(x);
                                                                                                                      next(i);
                                                                                                                    }, observer.onError.bind(observer), function () {
                                                                                                                      done(i);
                                                                                                          Severity: Major
                                                                                                          Found in lib/rx.lite.js and 1 other location - About 1 hr to fix
                                                                                                          lib/rx.lite.js on lines 2637..2642

                                                                                                          Duplicated Code

                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                          Tuning

                                                                                                          This issue has a mass of 56.

                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                          Refactorings

                                                                                                          Further Reading

                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                          Open

                                                                                                                      dispose: function () {
                                                                                                                          this.isDisposed = true;
                                                                                                                          this.observers = null;
                                                                                                                          this.value = null;
                                                                                                                          this.exception = null;
                                                                                                          Severity: Major
                                                                                                          Found in lib/rx.lite.js and 1 other location - About 1 hr to fix
                                                                                                          lib/rx.lite.js on lines 5365..5370

                                                                                                          Duplicated Code

                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                          Tuning

                                                                                                          This issue has a mass of 56.

                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                          Refactorings

                                                                                                          Further Reading

                                                                                                          Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                          Open

                                                                                                                  } else {
                                                                                                                    try {
                                                                                                                      autoDetachObserver.setDisposable(fixSubscriber(subscribe(autoDetachObserver)));
                                                                                                                    } catch (e) {
                                                                                                                      if (!autoDetachObserver.fail(e)) {
                                                                                                          Severity: Major
                                                                                                          Found in lib/rx.lite.js and 1 other location - About 1 hr to fix
                                                                                                          lib/rx.lite.js on lines 5035..5043

                                                                                                          Duplicated Code

                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                          Tuning

                                                                                                          This issue has a mass of 56.

                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                          Refactorings

                                                                                                          Further Reading

                                                                                                          Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                          Open

                                                                                                                              subscriptions[i].setDisposable(sources[i].subscribe(function (x) {
                                                                                                                                  queues[i].push(x);
                                                                                                                                  next(i);
                                                                                                                              }, observer.onError.bind(observer), function () {
                                                                                                                                  done(i);
                                                                                                          Severity: Major
                                                                                                          Found in lib/rx.lite.js and 1 other location - About 1 hr to fix
                                                                                                          lib/rx.lite.js on lines 2578..2583

                                                                                                          Duplicated Code

                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                          Tuning

                                                                                                          This issue has a mass of 56.

                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                          Refactorings

                                                                                                          Further Reading

                                                                                                          Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                          Open

                                                                                                                    currentThreadScheduler.schedule(function () {
                                                                                                                      try {
                                                                                                                        autoDetachObserver.setDisposable(fixSubscriber(subscribe(autoDetachObserver)));
                                                                                                                      } catch (e) {
                                                                                                                        if (!autoDetachObserver.fail(e)) {
                                                                                                          Severity: Major
                                                                                                          Found in lib/rx.lite.js and 1 other location - About 1 hr to fix
                                                                                                          lib/rx.lite.js on lines 5044..5052

                                                                                                          Duplicated Code

                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                          Tuning

                                                                                                          This issue has a mass of 56.

                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                          Refactorings

                                                                                                          Further Reading

                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                          Open

                                                                                                                  function SchedulePeriodicRecursive(scheduler, state, period, action) {
                                                                                                                      this._scheduler = scheduler;
                                                                                                                      this._state = state;
                                                                                                                      this._period = period;
                                                                                                                      this._action = action;
                                                                                                          Severity: Major
                                                                                                          Found in lib/rx.lite.js and 1 other location - About 1 hr to fix
                                                                                                          lib/rx.lite.js on lines 785..790

                                                                                                          Duplicated Code

                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                          Tuning

                                                                                                          This issue has a mass of 56.

                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                          Refactorings

                                                                                                          Further Reading

                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                          Open

                                                                                                                if (result) {
                                                                                                                  // ensure both objects have the same number of properties
                                                                                                                  internalForIn(a, function(value, key, a) {
                                                                                                                    if (hasOwnProperty.call(a, key)) {
                                                                                                                      // `size` will be `-1` if `a` has more properties than `b`
                                                                                                          Severity: Major
                                                                                                          Found in lib/rx.lite.js and 1 other location - About 1 hr to fix
                                                                                                          lib/lodash.js on lines 1195..1203

                                                                                                          Duplicated Code

                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                          Tuning

                                                                                                          This issue has a mass of 55.

                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                          Refactorings

                                                                                                          Further Reading

                                                                                                          Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                          Open

                                                                                                                          d.setDisposable(throttle.subscribe(function () {
                                                                                                                              if (hasValue && id === currentid) {
                                                                                                                                  observer.onNext(value);
                                                                                                                              }
                                                                                                                              hasValue = false;
                                                                                                          Severity: Minor
                                                                                                          Found in lib/rx.lite.js and 1 other location - About 40 mins to fix
                                                                                                          lib/rx.lite.js on lines 4388..4394

                                                                                                          Duplicated Code

                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                          Tuning

                                                                                                          This issue has a mass of 49.

                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                          Refactorings

                                                                                                          Further Reading

                                                                                                          Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                          Open

                                                                                                                          }, observer.onError.bind(observer), function () {
                                                                                                                              if (hasValue && id === currentid) {
                                                                                                                                  observer.onNext(value);
                                                                                                                              }
                                                                                                                              hasValue = false;
                                                                                                          Severity: Minor
                                                                                                          Found in lib/rx.lite.js and 1 other location - About 40 mins to fix
                                                                                                          lib/rx.lite.js on lines 4382..4388

                                                                                                          Duplicated Code

                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                          Tuning

                                                                                                          This issue has a mass of 49.

                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                          Refactorings

                                                                                                          Further Reading

                                                                                                          Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                          Open

                                                                                                                      var n = sources.length,
                                                                                                                        queues = arrayInitialize(n, function () { return []; }),
                                                                                                                        isDone = arrayInitialize(n, function () { return false; });
                                                                                                          Severity: Minor
                                                                                                          Found in lib/rx.lite.js and 1 other location - About 40 mins to fix
                                                                                                          lib/rx.lite.js on lines 2546..2548

                                                                                                          Duplicated Code

                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                          Tuning

                                                                                                          This issue has a mass of 48.

                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                          Refactorings

                                                                                                          Further Reading

                                                                                                          Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                          Open

                                                                                                                  if (queues.every(function (x) { return x.length > 0; })) {
                                                                                                                    try {
                                                                                                                      queuedValues = queues.map(function (x) { return x.shift(); });
                                                                                                                      res = resultSelector.apply(parent, queuedValues);
                                                                                                                    } catch (ex) {
                                                                                                          Severity: Minor
                                                                                                          Found in lib/rx.lite.js and 1 other location - About 40 mins to fix
                                                                                                          lib/rx.lite.js on lines 2220..2230

                                                                                                          Duplicated Code

                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                          Tuning

                                                                                                          This issue has a mass of 48.

                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                          Refactorings

                                                                                                          Further Reading

                                                                                                          Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                          Open

                                                                                                                var n = sources.length,
                                                                                                                  queues = arrayInitialize(n, function () { return []; }),
                                                                                                                  isDone = arrayInitialize(n, function () { return false; });
                                                                                                          Severity: Minor
                                                                                                          Found in lib/rx.lite.js and 1 other location - About 40 mins to fix
                                                                                                          lib/rx.lite.js on lines 2611..2613

                                                                                                          Duplicated Code

                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                          Tuning

                                                                                                          This issue has a mass of 48.

                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                          Refactorings

                                                                                                          Further Reading

                                                                                                          Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                          Open

                                                                                                                              d = scheduler.scheduleWithState(state2, function (scheduler1, state3) {
                                                                                                                                  if (isAdded) {
                                                                                                                                      group.remove(d);
                                                                                                                                  } else {
                                                                                                                                      isDone = true;
                                                                                                          Severity: Minor
                                                                                                          Found in lib/rx.lite.js and 1 other location - About 35 mins to fix
                                                                                                          lib/rx.lite.js on lines 821..829

                                                                                                          Duplicated Code

                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                          Tuning

                                                                                                          This issue has a mass of 47.

                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                          Refactorings

                                                                                                          Further Reading

                                                                                                          Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                          Open

                                                                                                                              d = scheduler[method].call(scheduler, state2, dueTime1, function (scheduler1, state3) {
                                                                                                                                  if (isAdded) {
                                                                                                                                      group.remove(d);
                                                                                                                                  } else {
                                                                                                                                      isDone = true;
                                                                                                          Severity: Minor
                                                                                                          Found in lib/rx.lite.js and 1 other location - About 35 mins to fix
                                                                                                          lib/rx.lite.js on lines 797..805

                                                                                                          Duplicated Code

                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                          Tuning

                                                                                                          This issue has a mass of 47.

                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                          Refactorings

                                                                                                          Further Reading

                                                                                                          Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                                          Open

                                                                                                                              try {
                                                                                                                                  running = predicate.call(thisArg, x, i++, observable);
                                                                                                                              } catch (e) {
                                                                                                                                  observer.onError(e);
                                                                                                                                  return;
                                                                                                          Severity: Minor
                                                                                                          Found in lib/rx.lite.js and 2 other locations - About 35 mins to fix
                                                                                                          lib/rx.lite.js on lines 3079..3084
                                                                                                          lib/rx.lite.js on lines 3308..3313

                                                                                                          Duplicated Code

                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                          Tuning

                                                                                                          This issue has a mass of 46.

                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                          Refactorings

                                                                                                          Further Reading

                                                                                                          Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                                          Open

                                                                                                                          try {
                                                                                                                              result = selector.call(thisArg, value, count++, parent);
                                                                                                                          } catch (exception) {
                                                                                                                              observer.onError(exception);
                                                                                                                              return;
                                                                                                          Severity: Minor
                                                                                                          Found in lib/rx.lite.js and 2 other locations - About 35 mins to fix
                                                                                                          lib/rx.lite.js on lines 3276..3281
                                                                                                          lib/rx.lite.js on lines 3308..3313

                                                                                                          Duplicated Code

                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                          Tuning

                                                                                                          This issue has a mass of 46.

                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                          Refactorings

                                                                                                          Further Reading

                                                                                                          Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                                          Open

                                                                                                                          try {
                                                                                                                              shouldRun = predicate.call(thisArg, value, count++, parent);
                                                                                                                          } catch (exception) {
                                                                                                                              observer.onError(exception);
                                                                                                                              return;
                                                                                                          Severity: Minor
                                                                                                          Found in lib/rx.lite.js and 2 other locations - About 35 mins to fix
                                                                                                          lib/rx.lite.js on lines 3079..3084
                                                                                                          lib/rx.lite.js on lines 3276..3281

                                                                                                          Duplicated Code

                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                          Tuning

                                                                                                          This issue has a mass of 46.

                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                          Refactorings

                                                                                                          Further Reading

                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                          Open

                                                                                                                      return source.subscribe(function (x) {
                                                                                                                          try {
                                                                                                                              onNextFunc(x);
                                                                                                                          } catch (e) {
                                                                                                                              observer.onError(e);
                                                                                                          Severity: Minor
                                                                                                          Found in lib/rx.lite.js and 1 other location - About 35 mins to fix
                                                                                                          lib/rx.lite.js on lines 2756..2763

                                                                                                          Duplicated Code

                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                          Tuning

                                                                                                          This issue has a mass of 46.

                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                          Refactorings

                                                                                                          Further Reading

                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                          Open

                                                                                                                          } else {
                                                                                                                              try {
                                                                                                                                  onError(exception);
                                                                                                                              } catch (e) {
                                                                                                                                  observer.onError(e);
                                                                                                          Severity: Minor
                                                                                                          Found in lib/rx.lite.js and 1 other location - About 35 mins to fix
                                                                                                          lib/rx.lite.js on lines 2746..2753

                                                                                                          Duplicated Code

                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                          Tuning

                                                                                                          This issue has a mass of 46.

                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                          Refactorings

                                                                                                          Further Reading

                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                          Open

                                                                                                                  clearImmediate = typeof (clearImmediate = freeGlobal && moduleExports && freeGlobal.clearImmediate) == 'function' &&
                                                                                                                  !reNative.test(clearImmediate) && clearImmediate;
                                                                                                          Severity: Minor
                                                                                                          Found in lib/rx.lite.js and 1 other location - About 30 mins to fix
                                                                                                          lib/rx.lite.js on lines 1156..1157

                                                                                                          Duplicated Code

                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                          Tuning

                                                                                                          This issue has a mass of 45.

                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                          Refactorings

                                                                                                          Further Reading

                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                          Open

                                                                                                                var setImmediate = typeof (setImmediate = freeGlobal && moduleExports && freeGlobal.setImmediate) == 'function' &&
                                                                                                                  !reNative.test(setImmediate) && setImmediate,
                                                                                                          Severity: Minor
                                                                                                          Found in lib/rx.lite.js and 1 other location - About 30 mins to fix
                                                                                                          lib/rx.lite.js on lines 1158..1159

                                                                                                          Duplicated Code

                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                          Tuning

                                                                                                          This issue has a mass of 45.

                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                          Refactorings

                                                                                                          Further Reading

                                                                                                          There are no issues that match your filters.

                                                                                                          Category
                                                                                                          Status