Reactive-Extensions/RxJS

View on GitHub
modules/rx-lite-compat/rx.lite.compat.js

Summary

Maintainability
F
10 mos
Test Coverage

Showing 301 of 301 total issues

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

// Copyright (c) Microsoft, All rights reserved. See License.txt in the project root for license information.
 
;(function (undefined) {
 
var objectTypes = {
Severity: Major
Found in modules/rx-lite-compat/rx.lite.compat.js - About 2 wks to fix

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

    var ReplaySubject = Rx.ReplaySubject = (function (__super__) {
     
    var maxSafeInteger = Math.pow(2, 53) - 1;
     
    function createRemovableDisposable(subject, observer) {
    Severity: Major
    Found in modules/rx-lite-compat/rx.lite.compat.js - About 3 hrs to fix

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

      var ControlledSubject = (function (__super__) {
      inherits(ControlledSubject, __super__);
      function ControlledSubject(enableQueue, scheduler) {
      enableQueue == null && (enableQueue = true);
       
       
      Severity: Major
      Found in modules/rx-lite-compat/rx.lite.compat.js - About 3 hrs to fix

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

        var AsyncSubject = Rx.AsyncSubject = (function (__super__) {
        inherits(AsyncSubject, __super__);
         
        /**
        * Creates a subject that can only receive one value and that value is cached for all future observations.
        Severity: Major
        Found in modules/rx-lite-compat/rx.lite.compat.js - About 2 hrs to fix

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

          var BehaviorSubject = Rx.BehaviorSubject = (function (__super__) {
          inherits(BehaviorSubject, __super__);
          function BehaviorSubject(value) {
          __super__.call(this);
          this.value = value;
          Severity: Major
          Found in modules/rx-lite-compat/rx.lite.compat.js - About 2 hrs to fix

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

            var Subject = Rx.Subject = (function (__super__) {
            inherits(Subject, __super__);
            function Subject() {
            __super__.call(this);
            this.isDisposed = false;
            Severity: Major
            Found in modules/rx-lite-compat/rx.lite.compat.js - About 2 hrs to fix

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

              function observableDelayRelative(source, dueTime, scheduler) {
              return new AnonymousObservable(function (o) {
              var active = false,
              cancelable = new SerialDisposable(),
              exception = null,
              Severity: Major
              Found in modules/rx-lite-compat/rx.lite.compat.js - About 2 hrs to fix

                Function RepeatWhenObservable has 58 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                var RepeatWhenObservable = (function(__super__) {
                function createDisposable(state) {
                return {
                isDisposed: false,
                dispose: function () {
                Severity: Major
                Found in modules/rx-lite-compat/rx.lite.compat.js - About 2 hrs to fix

                  Function RetryWhenObservable has 58 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  var RetryWhenObservable = (function(__super__) {
                  function createDisposable(state) {
                  return {
                  isDisposed: false,
                  dispose: function () {
                  Severity: Major
                  Found in modules/rx-lite-compat/rx.lite.compat.js - About 2 hrs to fix

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

                    var PausableBufferedObservable = (function (__super__) {
                    inherits(PausableBufferedObservable, __super__);
                    function PausableBufferedObservable(source, pauser) {
                    this.source = source;
                    this.controller = new Subject();
                    Severity: Major
                    Found in modules/rx-lite-compat/rx.lite.compat.js - About 2 hrs to fix

                      Function event has 54 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      target.attachEvent('on' + type, typeListeners.event = function (e) {
                      e || (e = root.event);
                       
                      var documentElement = target.document &&
                      target.document.documentElement ||
                      Severity: Major
                      Found in modules/rx-lite-compat/rx.lite.compat.js - About 2 hrs to fix

                        Function ScheduledObserver has 52 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 modules/rx-lite-compat/rx.lite.compat.js - About 2 hrs to fix

                          Function SwitchObservable has 51 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          var SwitchObservable = (function(__super__) {
                          inherits(SwitchObservable, __super__);
                          function SwitchObservable(source) {
                          this.source = source;
                          __super__.call(this);
                          Severity: Major
                          Found in modules/rx-lite-compat/rx.lite.compat.js - About 2 hrs to fix

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

                            var DefaultScheduler = (function (__super__) {
                            inherits(DefaultScheduler, __super__);
                            function DefaultScheduler() {
                            __super__.call(this);
                            }
                            Severity: Minor
                            Found in modules/rx-lite-compat/rx.lite.compat.js - About 1 hr to fix

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

                              function baseIsEqualDeep(object, other, equalFunc, isLoose, stackA, stackB) {
                              var objIsArr = isArray(object),
                              othIsArr = isArray(other),
                              objTag = arrayTag,
                              othTag = arrayTag;
                              Severity: Minor
                              Found in modules/rx-lite-compat/rx.lite.compat.js - About 1 hr to fix

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

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

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

                                  function timeoutWithSelector(source, firstTimeout, timeoutDurationSelector, other) {
                                  if (isFunction(firstTimeout)) {
                                  other = timeoutDurationSelector;
                                  timeoutDurationSelector = firstTimeout;
                                  firstTimeout = observableNever();
                                  Severity: Minor
                                  Found in modules/rx-lite-compat/rx.lite.compat.js - About 1 hr to fix

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

                                    var MergeDelayErrorObserver = (function(__super__) {
                                    inherits(MergeDelayErrorObserver, __super__);
                                    function MergeDelayErrorObserver(group, state) {
                                    this._group = group;
                                    this._state = state;
                                    Severity: Minor
                                    Found in modules/rx-lite-compat/rx.lite.compat.js - About 1 hr to fix

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

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

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

                                        function timeout(source, dueTime, other, scheduler) {
                                        if (isScheduler(other)) {
                                        scheduler = other;
                                        other = observableThrow(new TimeoutError());
                                        }
                                        Severity: Minor
                                        Found in modules/rx-lite-compat/rx.lite.compat.js - About 1 hr to fix

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

                                          var MergeObserver = (function (__super__) {
                                          function MergeObserver(o, max, g) {
                                          this.o = o;
                                          this.max = max;
                                          this.g = g;
                                          Severity: Minor
                                          Found in modules/rx-lite-compat/rx.lite.compat.js - About 1 hr to fix

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

                                            function debounceWithSelector(source, durationSelector) {
                                            return new AnonymousObservable(function (o) {
                                            var value, hasValue = false, cancelable = new SerialDisposable(), id = 0;
                                            var subscription = source.subscribe(
                                            function (x) {
                                            Severity: Minor
                                            Found in modules/rx-lite-compat/rx.lite.compat.js - About 1 hr to fix

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

                                              var DebounceObserver = (function (__super__) {
                                              inherits(DebounceObserver, __super__);
                                              function DebounceObserver(observer, dueTime, scheduler, cancelable) {
                                              this._o = observer;
                                              this._d = dueTime;
                                              Severity: Minor
                                              Found in modules/rx-lite-compat/rx.lite.compat.js - About 1 hr to fix

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

                                                var CatchErrorObservable = (function(__super__) {
                                                function CatchErrorObservable(sources) {
                                                this.sources = sources;
                                                __super__.call(this);
                                                }
                                                Severity: Minor
                                                Found in modules/rx-lite-compat/rx.lite.compat.js - About 1 hr to fix

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

                                                  RetryWhenObservable.prototype.subscribeCore = function (o) {
                                                  var exceptions = new Subject(),
                                                  notifier = new Subject(),
                                                  handled = this._notifier(exceptions),
                                                  notificationDisposable = handled.subscribe(notifier);
                                                  Severity: Minor
                                                  Found in modules/rx-lite-compat/rx.lite.compat.js - About 1 hr to fix

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

                                                    RepeatWhenObservable.prototype.subscribeCore = function (o) {
                                                    var completions = new Subject(),
                                                    notifier = new Subject(),
                                                    handled = this._notifier(completions),
                                                    notificationDisposable = handled.subscribe(notifier);
                                                    Severity: Minor
                                                    Found in modules/rx-lite-compat/rx.lite.compat.js - About 1 hr to fix

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

                                                      var Observable = Rx.Observable = (function () {
                                                       
                                                      function makeSubscribe(self, subscribe) {
                                                      return function (o) {
                                                      var oldOnError = o.onError;
                                                      Severity: Minor
                                                      Found in modules/rx-lite-compat/rx.lite.compat.js - About 1 hr to fix

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

                                                        var MergeAllObserver = (function (__super__) {
                                                        function MergeAllObserver(o, g) {
                                                        this.o = o;
                                                        this.g = g;
                                                        this.done = false;
                                                        Severity: Minor
                                                        Found in modules/rx-lite-compat/rx.lite.compat.js - About 1 hr to fix

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

                                                          var FilterObservable = (function (__super__) {
                                                          inherits(FilterObservable, __super__);
                                                           
                                                          function FilterObservable(source, predicate, thisArg) {
                                                          this.source = source;
                                                          Severity: Minor
                                                          Found in modules/rx-lite-compat/rx.lite.compat.js - About 1 hr to fix

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

                                                            var ConcatEnumerableObservable = (function(__super__) {
                                                            inherits(ConcatEnumerableObservable, __super__);
                                                            function ConcatEnumerableObservable(sources) {
                                                            this.sources = sources;
                                                            __super__.call(this);
                                                            Severity: Minor
                                                            Found in modules/rx-lite-compat/rx.lite.compat.js - About 1 hr to fix

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

                                                              function equalObjects(object, other, equalFunc, isLoose, stackA, stackB) {
                                                              var objProps = keys(object),
                                                              objLength = objProps.length,
                                                              othProps = keys(other),
                                                              othLength = othProps.length;
                                                              Severity: Minor
                                                              Found in modules/rx-lite-compat/rx.lite.compat.js - About 1 hr to fix

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

                                                                var ConnectableObservable = Rx.ConnectableObservable = (function (__super__) {
                                                                inherits(ConnectableObservable, __super__);
                                                                function ConnectableObservable(source, subject) {
                                                                this.source = source;
                                                                this._connection = null;
                                                                Severity: Minor
                                                                Found in modules/rx-lite-compat/rx.lite.compat.js - About 1 hr to fix

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

                                                                  var TapObservable = (function(__super__) {
                                                                  inherits(TapObservable,__super__);
                                                                  function TapObservable(source, observerOrOnNext, onError, onCompleted) {
                                                                  this.source = source;
                                                                  this._oN = observerOrOnNext;
                                                                  Severity: Minor
                                                                  Found in modules/rx-lite-compat/rx.lite.compat.js - About 1 hr to fix

                                                                    Function ZipObserver has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                    Open

                                                                    var ZipObserver = (function (__super__) {
                                                                    inherits(ZipObserver, __super__);
                                                                    function ZipObserver(o, i, p, q, d) {
                                                                    this._o = o;
                                                                    this._i = i;
                                                                    Severity: Minor
                                                                    Found in modules/rx-lite-compat/rx.lite.compat.js - About 1 hr to fix

                                                                      Function EventPatternObservable has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                      Open

                                                                      var EventPatternObservable = (function(__super__) {
                                                                      inherits(EventPatternObservable, __super__);
                                                                      function EventPatternObservable(add, del, fn) {
                                                                      this._add = add;
                                                                      this._del = del;
                                                                      Severity: Minor
                                                                      Found in modules/rx-lite-compat/rx.lite.compat.js - About 1 hr to fix

                                                                        Function FlatMapObservable has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                        Open

                                                                        var FlatMapObservable = Rx.FlatMapObservable = (function(__super__) {
                                                                         
                                                                        inherits(FlatMapObservable, __super__);
                                                                         
                                                                        function FlatMapObservable(source, selector, resultSelector, thisArg) {
                                                                        Severity: Minor
                                                                        Found in modules/rx-lite-compat/rx.lite.compat.js - About 1 hr to fix

                                                                          Function IgnoreElementsObservable has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                          Open

                                                                          var IgnoreElementsObservable = (function(__super__) {
                                                                          inherits(IgnoreElementsObservable, __super__);
                                                                           
                                                                          function IgnoreElementsObservable(source) {
                                                                          this.source = source;
                                                                          Severity: Minor
                                                                          Found in modules/rx-lite-compat/rx.lite.compat.js - About 1 hr to fix

                                                                            Function MapObservable has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                            Open

                                                                            var MapObservable = (function (__super__) {
                                                                            inherits(MapObservable, __super__);
                                                                             
                                                                            function MapObservable(source, selector, thisArg) {
                                                                            this.source = source;
                                                                            Severity: Minor
                                                                            Found in modules/rx-lite-compat/rx.lite.compat.js - About 1 hr to fix

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

                                                                              var PausableObservable = (function (__super__) {
                                                                              inherits(PausableObservable, __super__);
                                                                              function PausableObservable(source, pauser) {
                                                                              this.source = source;
                                                                              this.controller = new Subject();
                                                                              Severity: Minor
                                                                              Found in modules/rx-lite-compat/rx.lite.compat.js - About 1 hr to fix

                                                                                Function RefCountDisposable has 34 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 modules/rx-lite-compat/rx.lite.compat.js - About 1 hr to fix

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

                                                                                  PausableBufferedObservable.prototype._subscribe = function (o) {
                                                                                  var q = [], previousShouldFire;
                                                                                   
                                                                                  function drainQueue() { while (q.length > 0) { o.onNext(q.shift()); } }
                                                                                   
                                                                                   
                                                                                  Severity: Minor
                                                                                  Found in modules/rx-lite-compat/rx.lite.compat.js - About 1 hr to fix

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

                                                                                    var ScanObserver = (function (__super__) {
                                                                                    inherits(ScanObserver, __super__);
                                                                                    function ScanObserver(o, parent) {
                                                                                    this._o = o;
                                                                                    this._p = parent;
                                                                                    Severity: Minor
                                                                                    Found in modules/rx-lite-compat/rx.lite.compat.js - About 1 hr to fix

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

                                                                                      var FromPromiseObservable = (function(__super__) {
                                                                                      inherits(FromPromiseObservable, __super__);
                                                                                      function FromPromiseObservable(p, s) {
                                                                                      this._p = p;
                                                                                      this._s = s;
                                                                                      Severity: Minor
                                                                                      Found in modules/rx-lite-compat/rx.lite.compat.js - About 1 hr to fix

                                                                                        Function AbstractObserver has 32 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 modules/rx-lite-compat/rx.lite.compat.js - About 1 hr to fix

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

                                                                                          var CombineLatestObserver = (function (__super__) {
                                                                                          inherits(CombineLatestObserver, __super__);
                                                                                          function CombineLatestObserver(o, i, cb, state) {
                                                                                          this._o = o;
                                                                                          this._i = i;
                                                                                          Severity: Minor
                                                                                          Found in modules/rx-lite-compat/rx.lite.compat.js - About 1 hr to fix

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

                                                                                            var DistinctUntilChangedObserver = (function(__super__) {
                                                                                            inherits(DistinctUntilChangedObserver, __super__);
                                                                                            function DistinctUntilChangedObserver(o, keyFn, comparer) {
                                                                                            this.o = o;
                                                                                            this.keyFn = keyFn;
                                                                                            Severity: Minor
                                                                                            Found in modules/rx-lite-compat/rx.lite.compat.js - About 1 hr to fix

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

                                                                                              var keys = Object.keys || (function() {
                                                                                              var hasOwnProperty = Object.prototype.hasOwnProperty,
                                                                                              hasDontEnumBug = !({ toString: null }).propertyIsEnumerable('toString'),
                                                                                              dontEnums = [
                                                                                              'toString',
                                                                                              Severity: Minor
                                                                                              Found in modules/rx-lite-compat/rx.lite.compat.js - About 1 hr to fix

                                                                                                Function AutoDetachObserver has 31 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 modules/rx-lite-compat/rx.lite.compat.js - About 1 hr to fix

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

                                                                                                  var ZipIterableObserver = (function (__super__) {
                                                                                                  inherits(ZipIterableObserver, __super__);
                                                                                                  function ZipIterableObserver(s, i) {
                                                                                                  this._s = s;
                                                                                                  this._i = i;
                                                                                                  Severity: Minor
                                                                                                  Found in modules/rx-lite-compat/rx.lite.compat.js - About 1 hr to fix

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

                                                                                                    var ConcatObservable = (function(__super__) {
                                                                                                    inherits(ConcatObservable, __super__);
                                                                                                    function ConcatObservable(sources) {
                                                                                                    this._sources = sources;
                                                                                                    __super__.call(this);
                                                                                                    Severity: Minor
                                                                                                    Found in modules/rx-lite-compat/rx.lite.compat.js - About 1 hr to fix

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

                                                                                                      function equalArrays(array, other, equalFunc, isLoose, stackA, stackB) {
                                                                                                      var index = -1,
                                                                                                      arrLength = array.length,
                                                                                                      othLength = other.length;
                                                                                                       
                                                                                                       
                                                                                                      Severity: Minor
                                                                                                      Found in modules/rx-lite-compat/rx.lite.compat.js - About 1 hr to fix

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

                                                                                                        var cancelable = currentThreadScheduler.scheduleRecursive(null, function (_, recurse) {
                                                                                                        if (state.isDisposed) { return; }
                                                                                                        var currentItem = e.next();
                                                                                                         
                                                                                                        if (currentItem.done) {
                                                                                                        Severity: Minor
                                                                                                        Found in modules/rx-lite-compat/rx.lite.compat.js - About 1 hr to fix

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

                                                                                                          var WithLatestFromObservable = (function(__super__) {
                                                                                                          inherits(WithLatestFromObservable, __super__);
                                                                                                          function WithLatestFromObservable(source, sources, resultSelector) {
                                                                                                          this._s = source;
                                                                                                          this._ss = sources;
                                                                                                          Severity: Minor
                                                                                                          Found in modules/rx-lite-compat/rx.lite.compat.js - About 1 hr to fix

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

                                                                                                            var cancelable = currentThreadScheduler.scheduleRecursive(null, function (_, recurse) {
                                                                                                            if (state.isDisposed) { return; }
                                                                                                            var currentItem = e.next();
                                                                                                             
                                                                                                            if (currentItem.done) {
                                                                                                            Severity: Minor
                                                                                                            Found in modules/rx-lite-compat/rx.lite.compat.js - About 1 hr to fix

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

                                                                                                              function start() {
                                                                                                              subscription.setDisposable(source.subscribe(
                                                                                                              function (x) {
                                                                                                              var delay = tryCatch(selector)(x);
                                                                                                              if (delay === errorObj) { return o.onError(delay.e); }
                                                                                                              Severity: Minor
                                                                                                              Found in modules/rx-lite-compat/rx.lite.compat.js - About 1 hr to fix

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

                                                                                                                var FromObservable = (function(__super__) {
                                                                                                                inherits(FromObservable, __super__);
                                                                                                                function FromObservable(iterable, fn, scheduler) {
                                                                                                                this._iterable = iterable;
                                                                                                                this._fn = fn;
                                                                                                                Severity: Minor
                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js - About 1 hr to fix

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

                                                                                                                  var FinallyObservable = (function (__super__) {
                                                                                                                  inherits(FinallyObservable, __super__);
                                                                                                                  function FinallyObservable(source, fn, thisArg) {
                                                                                                                  this.source = source;
                                                                                                                  this._fn = bindCallback(fn, thisArg, 0);
                                                                                                                  Severity: Minor
                                                                                                                  Found in modules/rx-lite-compat/rx.lite.compat.js - About 1 hr to fix

                                                                                                                    Function CurrentThreadScheduler has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                    Open

                                                                                                                    var CurrentThreadScheduler = (function (__super__) {
                                                                                                                    var queue;
                                                                                                                     
                                                                                                                    function runTrampoline () {
                                                                                                                    while (queue.length > 0) {
                                                                                                                    Severity: Minor
                                                                                                                    Found in modules/rx-lite-compat/rx.lite.compat.js - About 1 hr to fix

                                                                                                                      Function AnonymousObservable has 26 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 modules/rx-lite-compat/rx.lite.compat.js - About 1 hr to fix

                                                                                                                        Consider simplifying this complex logical expression.
                                                                                                                        Open

                                                                                                                        if (objCtor !== othCtor &&
                                                                                                                        ('constructor' in object && 'constructor' in other) &&
                                                                                                                        !(typeof objCtor === 'function' && objCtor instanceof objCtor &&
                                                                                                                        typeof othCtor === 'function' && othCtor instanceof othCtor)) {
                                                                                                                        return false;
                                                                                                                        Severity: Major
                                                                                                                        Found in modules/rx-lite-compat/rx.lite.compat.js - About 1 hr to fix

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

                                                                                                                          function baseIsEqualDeep(object, other, equalFunc, isLoose, stackA, stackB) {
                                                                                                                          Severity: Minor
                                                                                                                          Found in modules/rx-lite-compat/rx.lite.compat.js - About 45 mins to fix

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

                                                                                                                            function equalArrays(array, other, equalFunc, isLoose, stackA, stackB) {
                                                                                                                            Severity: Minor
                                                                                                                            Found in modules/rx-lite-compat/rx.lite.compat.js - About 45 mins to fix

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

                                                                                                                              function equalObjects(object, other, equalFunc, isLoose, stackA, stackB) {
                                                                                                                              Severity: Minor
                                                                                                                              Found in modules/rx-lite-compat/rx.lite.compat.js - About 45 mins to fix

                                                                                                                                Consider simplifying this complex logical expression.
                                                                                                                                Open

                                                                                                                                if (hasStacks &&
                                                                                                                                observable.stack &&
                                                                                                                                typeof error === 'object' &&
                                                                                                                                error !== null &&
                                                                                                                                error.stack &&
                                                                                                                                Severity: Major
                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js - About 40 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 modules/rx-lite-compat/rx.lite.compat.js - About 35 mins to fix

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

                                                                                                                                    function ZipObserver(o, i, p, q, d) {
                                                                                                                                    Severity: Minor
                                                                                                                                    Found in modules/rx-lite-compat/rx.lite.compat.js - About 35 mins to fix

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

                                                                                                                                      function baseIsEqual(value, other, isLoose, stackA, stackB) {
                                                                                                                                      Severity: Minor
                                                                                                                                      Found in modules/rx-lite-compat/rx.lite.compat.js - About 35 mins to fix

                                                                                                                                        Avoid too many return statements within this function.
                                                                                                                                        Open

                                                                                                                                        return true;
                                                                                                                                        Severity: Major
                                                                                                                                        Found in modules/rx-lite-compat/rx.lite.compat.js - About 30 mins to fix

                                                                                                                                          Avoid too many return statements within this function.
                                                                                                                                          Open

                                                                                                                                          return true;
                                                                                                                                          Severity: Major
                                                                                                                                          Found in modules/rx-lite-compat/rx.lite.compat.js - About 30 mins to fix

                                                                                                                                            Avoid too many return statements within this function.
                                                                                                                                            Open

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

                                                                                                                                              Avoid too many return statements within this function.
                                                                                                                                              Open

                                                                                                                                              return len;
                                                                                                                                              Severity: Major
                                                                                                                                              Found in modules/rx-lite-compat/rx.lite.compat.js - About 30 mins to fix

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

                                                                                                                                                root.Element && root.Element.prototype.attachEvent && !root.Element.prototype.addEventListener && (function () {
                                                                                                                                                function addMethod(name, fn) {
                                                                                                                                                Window.prototype[name] = HTMLDocument.prototype[name] = Element.prototype[name] = fn;
                                                                                                                                                }
                                                                                                                                                 
                                                                                                                                                 
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 1 other location - About 1 wk to fix
                                                                                                                                                src/core/internal/polyfills.js on lines 205..323

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

                                                                                                                                                var ReplaySubject = Rx.ReplaySubject = (function (__super__) {
                                                                                                                                                 
                                                                                                                                                var maxSafeInteger = Math.pow(2, 53) - 1;
                                                                                                                                                 
                                                                                                                                                function createRemovableDisposable(subject, observer) {
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 1 other location - About 1 wk to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 6910..7038

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

                                                                                                                                                (function () {
                                                                                                                                                 
                                                                                                                                                var nextHandle = 1, tasksByHandle = {}, currentlyRunning = false;
                                                                                                                                                 
                                                                                                                                                clearMethod = function (handle) {
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 3 other locations - About 6 days to fix
                                                                                                                                                modules/rx-core/rx.core.js on lines 712..830
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 1157..1275
                                                                                                                                                src/core/concurrency/defaultscheduler.js on lines 25..143

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

                                                                                                                                                var ControlledSubject = (function (__super__) {
                                                                                                                                                inherits(ControlledSubject, __super__);
                                                                                                                                                function ControlledSubject(enableQueue, scheduler) {
                                                                                                                                                enableQueue == null && (enableQueue = true);
                                                                                                                                                 
                                                                                                                                                 
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 5 days to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 6277..6372
                                                                                                                                                src/core/backpressure/controlled.js on lines 21..116

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

                                                                                                                                                var AsyncSubject = Rx.AsyncSubject = (function (__super__) {
                                                                                                                                                inherits(AsyncSubject, __super__);
                                                                                                                                                 
                                                                                                                                                /**
                                                                                                                                                * Creates a subject that can only receive one value and that value is cached for all future observations.
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 4 days to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 6669..6775
                                                                                                                                                src/core/subjects/asyncsubject.js on lines 5..111

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

                                                                                                                                                var BehaviorSubject = Rx.BehaviorSubject = (function (__super__) {
                                                                                                                                                inherits(BehaviorSubject, __super__);
                                                                                                                                                function BehaviorSubject(value) {
                                                                                                                                                __super__.call(this);
                                                                                                                                                this.value = value;
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 4 days to fix
                                                                                                                                                modules/rx-core-binding/rx.core.binding.js on lines 552..649
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 6807..6904

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

                                                                                                                                                var MergeDelayErrorObserver = (function(__super__) {
                                                                                                                                                inherits(MergeDelayErrorObserver, __super__);
                                                                                                                                                function MergeDelayErrorObserver(group, state) {
                                                                                                                                                this._group = group;
                                                                                                                                                this._state = state;
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 4 days to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 3077..3135
                                                                                                                                                src/core/linq/observable/mergedelayerror.js on lines 30..88

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

                                                                                                                                                var MergeObserver = (function (__super__) {
                                                                                                                                                function MergeObserver(o, max, g) {
                                                                                                                                                this.o = o;
                                                                                                                                                this.max = max;
                                                                                                                                                this.g = g;
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 3 days to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 2959..3011
                                                                                                                                                src/core/perf/operators/mergeconcat.js on lines 20..72

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

                                                                                                                                                var Subject = Rx.Subject = (function (__super__) {
                                                                                                                                                inherits(Subject, __super__);
                                                                                                                                                function Subject() {
                                                                                                                                                __super__.call(this);
                                                                                                                                                this.isDisposed = false;
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 1 other location - About 3 days to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 6571..6663

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

                                                                                                                                                var SwitchObservable = (function(__super__) {
                                                                                                                                                inherits(SwitchObservable, __super__);
                                                                                                                                                function SwitchObservable(source) {
                                                                                                                                                this.source = source;
                                                                                                                                                __super__.call(this);
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 3 days to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 3317..3378
                                                                                                                                                src/core/perf/operators/switch.js on lines 1..62

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

                                                                                                                                                var ScheduledObserver = Rx.internals.ScheduledObserver = (function (__super__) {
                                                                                                                                                inherits(ScheduledObserver, __super__);
                                                                                                                                                 
                                                                                                                                                function ScheduledObserver(scheduler, observer) {
                                                                                                                                                __super__.call(this);
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 3 other locations - About 3 days to fix
                                                                                                                                                modules/rx-core-binding/rx.core.binding.js on lines 234..297
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 1784..1847
                                                                                                                                                src/core/scheduledobserver.js on lines 1..64

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

                                                                                                                                                function observableDelayRelative(source, dueTime, scheduler) {
                                                                                                                                                return new AnonymousObservable(function (o) {
                                                                                                                                                var active = false,
                                                                                                                                                cancelable = new SerialDisposable(),
                                                                                                                                                exception = null,
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 3 days to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 5500..5562
                                                                                                                                                src/core/linq/observable/delay.js on lines 1..63

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

                                                                                                                                                var FlatMapObservable = Rx.FlatMapObservable = (function(__super__) {
                                                                                                                                                 
                                                                                                                                                inherits(FlatMapObservable, __super__);
                                                                                                                                                 
                                                                                                                                                function FlatMapObservable(source, selector, resultSelector, thisArg) {
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 3 days to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 1884..1931
                                                                                                                                                src/core/perf/operators/flatmapbase.js on lines 1..48

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

                                                                                                                                                var CatchErrorObservable = (function(__super__) {
                                                                                                                                                function CatchErrorObservable(sources) {
                                                                                                                                                this.sources = sources;
                                                                                                                                                __super__.call(this);
                                                                                                                                                }
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 3 days to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 2001..2050
                                                                                                                                                src/core/enumerable.js on lines 69..118

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

                                                                                                                                                var PausableBufferedObservable = (function (__super__) {
                                                                                                                                                inherits(PausableBufferedObservable, __super__);
                                                                                                                                                function PausableBufferedObservable(source, pauser) {
                                                                                                                                                this.source = source;
                                                                                                                                                this.controller = new Subject();
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 3 days to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 6174..6242
                                                                                                                                                src/core/backpressure/pausablebuffered.js on lines 50..118

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

                                                                                                                                                var RepeatWhenObservable = (function(__super__) {
                                                                                                                                                function createDisposable(state) {
                                                                                                                                                return {
                                                                                                                                                isDisposed: false,
                                                                                                                                                dispose: function () {
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 3 days to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 4206..4277
                                                                                                                                                src/core/linq/observable/repeatwhen.js on lines 13..84

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

                                                                                                                                                var RetryWhenObservable = (function(__super__) {
                                                                                                                                                function createDisposable(state) {
                                                                                                                                                return {
                                                                                                                                                isDisposed: false,
                                                                                                                                                dispose: function () {
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 3 days to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 4117..4188
                                                                                                                                                src/core/linq/observable/retrywhen.js on lines 13..84

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

                                                                                                                                                var TapObservable = (function(__super__) {
                                                                                                                                                inherits(TapObservable,__super__);
                                                                                                                                                function TapObservable(source, observerOrOnNext, onError, onCompleted) {
                                                                                                                                                this.source = source;
                                                                                                                                                this._oN = observerOrOnNext;
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 3 days to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 3863..3903
                                                                                                                                                src/core/perf/operators/tap.js on lines 1..41

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

                                                                                                                                                var DebounceObserver = (function (__super__) {
                                                                                                                                                inherits(DebounceObserver, __super__);
                                                                                                                                                function DebounceObserver(observer, dueTime, scheduler, cancelable) {
                                                                                                                                                this._o = observer;
                                                                                                                                                this._d = dueTime;
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 3 days to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 5668..5713
                                                                                                                                                src/core/linq/observable/debounce.js on lines 21..66

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

                                                                                                                                                var Observable = Rx.Observable = (function () {
                                                                                                                                                 
                                                                                                                                                function makeSubscribe(self, subscribe) {
                                                                                                                                                return function (o) {
                                                                                                                                                var oldOnError = o.onError;
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 3 other locations - About 3 days to fix
                                                                                                                                                modules/rx-core/rx.core.js on lines 1118..1196
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 1704..1782
                                                                                                                                                src/core/observable.js on lines 6..84

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

                                                                                                                                                var ConcatEnumerableObservable = (function(__super__) {
                                                                                                                                                inherits(ConcatEnumerableObservable, __super__);
                                                                                                                                                function ConcatEnumerableObservable(sources) {
                                                                                                                                                this.sources = sources;
                                                                                                                                                __super__.call(this);
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 3 days to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 1947..1995
                                                                                                                                                src/core/enumerable.js on lines 15..63

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

                                                                                                                                                function timeoutWithSelector(source, firstTimeout, timeoutDurationSelector, other) {
                                                                                                                                                if (isFunction(firstTimeout)) {
                                                                                                                                                other = timeoutDurationSelector;
                                                                                                                                                timeoutDurationSelector = firstTimeout;
                                                                                                                                                firstTimeout = observableNever();
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 2 days to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 5920..5977
                                                                                                                                                src/core/linq/observable/timeout.js on lines 8..65

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

                                                                                                                                                var MergeAllObserver = (function (__super__) {
                                                                                                                                                function MergeAllObserver(o, g) {
                                                                                                                                                this.o = o;
                                                                                                                                                this.g = g;
                                                                                                                                                this.done = false;
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 2 days to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 3179..3225
                                                                                                                                                src/core/perf/operators/mergeall.js on lines 19..65

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

                                                                                                                                                var ZipIterableObserver = (function (__super__) {
                                                                                                                                                inherits(ZipIterableObserver, __super__);
                                                                                                                                                function ZipIterableObserver(s, i) {
                                                                                                                                                this._s = s;
                                                                                                                                                this._i = i;
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 2 days to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 3695..3731
                                                                                                                                                src/core/linq/observable/zipiterable.js on lines 43..79

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

                                                                                                                                                var ScanObserver = (function (__super__) {
                                                                                                                                                inherits(ScanObserver, __super__);
                                                                                                                                                function ScanObserver(o, parent) {
                                                                                                                                                this._o = o;
                                                                                                                                                this._p = parent;
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 2 days to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 4300..4338
                                                                                                                                                src/core/perf/operators/scan.js on lines 18..56

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

                                                                                                                                                var DefaultScheduler = (function (__super__) {
                                                                                                                                                inherits(DefaultScheduler, __super__);
                                                                                                                                                function DefaultScheduler() {
                                                                                                                                                __super__.call(this);
                                                                                                                                                }
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 3 other locations - About 2 days to fix
                                                                                                                                                modules/rx-core/rx.core.js on lines 835..895
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 1280..1340
                                                                                                                                                src/core/concurrency/defaultscheduler.js on lines 148..208

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

                                                                                                                                                var ZipObserver = (function (__super__) {
                                                                                                                                                inherits(ZipObserver, __super__);
                                                                                                                                                function ZipObserver(o, i, p, q, d) {
                                                                                                                                                this._o = o;
                                                                                                                                                this._i = i;
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 2 days to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 3575..3616
                                                                                                                                                src/core/perf/operators/zip.js on lines 31..72

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

                                                                                                                                                var CombineLatestObserver = (function (__super__) {
                                                                                                                                                inherits(CombineLatestObserver, __super__);
                                                                                                                                                function CombineLatestObserver(o, i, cb, state) {
                                                                                                                                                this._o = o;
                                                                                                                                                this._i = i;
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 2 days to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 2797..2835
                                                                                                                                                src/core/perf/operators/combinelatest.js on lines 40..78

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

                                                                                                                                                function baseIsEqualDeep(object, other, equalFunc, isLoose, stackA, stackB) {
                                                                                                                                                var objIsArr = isArray(object),
                                                                                                                                                othIsArr = isArray(other),
                                                                                                                                                objTag = arrayTag,
                                                                                                                                                othTag = arrayTag;
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 3 other locations - About 2 days to fix
                                                                                                                                                modules/rx-core-testing/rx.core.testing.js on lines 424..483
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 497..556
                                                                                                                                                src/core/internal/isequal.js on lines 224..283

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

                                                                                                                                                var FilterObservable = (function (__super__) {
                                                                                                                                                inherits(FilterObservable, __super__);
                                                                                                                                                 
                                                                                                                                                function FilterObservable(source, predicate, thisArg) {
                                                                                                                                                this.source = source;
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 2 days to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 4770..4818
                                                                                                                                                src/core/perf/operators/filter.js on lines 1..49

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

                                                                                                                                                var MapObservable = (function (__super__) {
                                                                                                                                                inherits(MapObservable, __super__);
                                                                                                                                                 
                                                                                                                                                function MapObservable(source, selector, thisArg) {
                                                                                                                                                this.source = source;
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 2 days to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 4474..4520
                                                                                                                                                src/core/perf/operators/map.js on lines 1..47

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

                                                                                                                                                function delayWithSelector(source, subscriptionDelay, delayDurationSelector) {
                                                                                                                                                var subDelay, selector;
                                                                                                                                                if (isFunction(subscriptionDelay)) {
                                                                                                                                                selector = subscriptionDelay;
                                                                                                                                                } else {
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 2 days to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 5570..5623
                                                                                                                                                src/core/linq/observable/delay.js on lines 71..124

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

                                                                                                                                                var AutoDetachObserver = (function (__super__) {
                                                                                                                                                inherits(AutoDetachObserver, __super__);
                                                                                                                                                 
                                                                                                                                                function AutoDetachObserver(observer) {
                                                                                                                                                __super__.call(this);
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 2 days to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 6512..6552
                                                                                                                                                src/core/autodetachobserver.js on lines 1..41

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

                                                                                                                                                (function (schedulerProto) {
                                                                                                                                                 
                                                                                                                                                function invokeRecImmediate(scheduler, pair) {
                                                                                                                                                var state = pair[0], action = pair[1], group = new CompositeDisposable();
                                                                                                                                                action(state, innerAction);
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 3 other locations - About 2 days to fix
                                                                                                                                                modules/rx-core/rx.core.js on lines 505..580
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 950..1025
                                                                                                                                                src/core/concurrency/scheduler.recursive.js on lines 1..76

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

                                                                                                                                                var noop = Rx.helpers.noop = function () { },
                                                                                                                                                identity = Rx.helpers.identity = function (x) { return x; },
                                                                                                                                                defaultNow = Rx.helpers.defaultNow = (function () { return !!Date.now ? Date.now : function () { return +new Date; }; }()),
                                                                                                                                                defaultComparer = Rx.helpers.defaultComparer = function (x, y) { return isEqual(x, y); },
                                                                                                                                                defaultSubComparer = Rx.helpers.defaultSubComparer = function (x, y) { return x > y ? 1 : (x < y ? -1 : 0); },
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 2 days to fix
                                                                                                                                                src/core/headers/basicheader-compat.js on lines 2..22
                                                                                                                                                src/core/headers/liteheader-compat.js on lines 2..24

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

                                                                                                                                                var RefCountDisposable = Rx.RefCountDisposable = (function () {
                                                                                                                                                 
                                                                                                                                                function InnerDisposable(disposable) {
                                                                                                                                                this.disposable = disposable;
                                                                                                                                                this.disposable.count++;
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 2 days to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 806..859
                                                                                                                                                src/core/disposables/refcountdisposable.js on lines 4..57

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

                                                                                                                                                function debounceWithSelector(source, durationSelector) {
                                                                                                                                                return new AnonymousObservable(function (o) {
                                                                                                                                                var value, hasValue = false, cancelable = new SerialDisposable(), id = 0;
                                                                                                                                                var subscription = source.subscribe(
                                                                                                                                                function (x) {
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 2 days to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 5715..5760
                                                                                                                                                src/core/linq/observable/debounce.js on lines 68..113

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

                                                                                                                                                function timeout(source, dueTime, other, scheduler) {
                                                                                                                                                if (isScheduler(other)) {
                                                                                                                                                scheduler = other;
                                                                                                                                                other = observableThrow(new TimeoutError());
                                                                                                                                                }
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 2 days to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 5979..6028
                                                                                                                                                src/core/linq/observable/timeout.js on lines 67..116

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

                                                                                                                                                var DistinctUntilChangedObserver = (function(__super__) {
                                                                                                                                                inherits(DistinctUntilChangedObserver, __super__);
                                                                                                                                                function DistinctUntilChangedObserver(o, keyFn, comparer) {
                                                                                                                                                this.o = o;
                                                                                                                                                this.keyFn = keyFn;
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 2 days to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 3815..3850
                                                                                                                                                src/core/perf/operators/distinctuntilchanged.js on lines 17..52

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

                                                                                                                                                var PausableObservable = (function (__super__) {
                                                                                                                                                inherits(PausableObservable, __super__);
                                                                                                                                                function PausableObservable(source, pauser) {
                                                                                                                                                this.source = source;
                                                                                                                                                this.controller = new Subject();
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 2 days to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 6066..6111
                                                                                                                                                src/core/backpressure/pausable.js on lines 1..46

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

                                                                                                                                                var EventPatternObservable = (function(__super__) {
                                                                                                                                                inherits(EventPatternObservable, __super__);
                                                                                                                                                function EventPatternObservable(add, del, fn) {
                                                                                                                                                this._add = add;
                                                                                                                                                this._del = del;
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 2 days to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 5034..5075
                                                                                                                                                src/core/linq/observable/fromeventpattern.js on lines 1..42

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

                                                                                                                                                var AbstractObserver = Rx.internals.AbstractObserver = (function (__super__) {
                                                                                                                                                inherits(AbstractObserver, __super__);
                                                                                                                                                 
                                                                                                                                                /**
                                                                                                                                                * Creates a new observer in a non-stopped state.
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 2 days to fix
                                                                                                                                                modules/rx-core/rx.core.js on lines 1006..1066
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 1592..1652

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

                                                                                                                                                function combineLatestSource(source, subject, resultSelector) {
                                                                                                                                                return new AnonymousObservable(function (o) {
                                                                                                                                                var hasValue = [false, false],
                                                                                                                                                hasValueAll = false,
                                                                                                                                                isDone = false,
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 2 days to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 6125..6172
                                                                                                                                                src/core/backpressure/pausablebuffered.js on lines 1..48

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

                                                                                                                                                var ConnectableObservable = Rx.ConnectableObservable = (function (__super__) {
                                                                                                                                                inherits(ConnectableObservable, __super__);
                                                                                                                                                function ConnectableObservable(source, subject) {
                                                                                                                                                this.source = source;
                                                                                                                                                this._connection = null;
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 3 other locations - About 2 days to fix
                                                                                                                                                modules/rx-core-binding/rx.core.binding.js on lines 817..860
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 5364..5407
                                                                                                                                                src/core/linq/connectableobservable.js on lines 33..76

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

                                                                                                                                                var IgnoreElementsObservable = (function(__super__) {
                                                                                                                                                inherits(IgnoreElementsObservable, __super__);
                                                                                                                                                 
                                                                                                                                                function IgnoreElementsObservable(source) {
                                                                                                                                                this.source = source;
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 2 days to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 3994..4035
                                                                                                                                                src/core/perf/operators/ignoreelements.js on lines 1..42

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

                                                                                                                                                var FromPromiseObservable = (function(__super__) {
                                                                                                                                                inherits(FromPromiseObservable, __super__);
                                                                                                                                                function FromPromiseObservable(p, s) {
                                                                                                                                                this._p = p;
                                                                                                                                                this._s = s;
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 1 day to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 5088..5129
                                                                                                                                                src/core/perf/operators/frompromise.js on lines 1..42

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

                                                                                                                                                var WithLatestFromObservable = (function(__super__) {
                                                                                                                                                inherits(WithLatestFromObservable, __super__);
                                                                                                                                                function WithLatestFromObservable(source, sources, resultSelector) {
                                                                                                                                                this._s = source;
                                                                                                                                                this._ss = sources;
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 1 day to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 3443..3476
                                                                                                                                                src/core/perf/operators/withlatestfrom.js on lines 8..41

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

                                                                                                                                                var FromObservable = (function(__super__) {
                                                                                                                                                inherits(FromObservable, __super__);
                                                                                                                                                function FromObservable(iterable, fn, scheduler) {
                                                                                                                                                this._iterable = iterable;
                                                                                                                                                this._fn = fn;
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 1 day to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 2238..2273
                                                                                                                                                src/core/perf/operators/from.js on lines 1..36

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

                                                                                                                                                function equalObjects(object, other, equalFunc, isLoose, stackA, stackB) {
                                                                                                                                                var objProps = keys(object),
                                                                                                                                                objLength = objProps.length,
                                                                                                                                                othProps = keys(other),
                                                                                                                                                othLength = othProps.length;
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 4 other locations - About 1 day to fix
                                                                                                                                                modules/rx-core-testing/rx.core.testing.js on lines 283..323
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 356..396
                                                                                                                                                src/core/internal/isequal.js on lines 83..123
                                                                                                                                                src/modular/internal/isequal.js on lines 83..123

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

                                                                                                                                                var TakeObservable = (function(__super__) {
                                                                                                                                                inherits(TakeObservable, __super__);
                                                                                                                                                function TakeObservable(source, count) {
                                                                                                                                                this.source = source;
                                                                                                                                                this._count = count;
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 1 day to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 4669..4701
                                                                                                                                                src/core/perf/operators/take.js on lines 1..33

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

                                                                                                                                                var ConcatObservable = (function(__super__) {
                                                                                                                                                inherits(ConcatObservable, __super__);
                                                                                                                                                function ConcatObservable(sources) {
                                                                                                                                                this._sources = sources;
                                                                                                                                                __super__.call(this);
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 1 day to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 2878..2914
                                                                                                                                                src/core/perf/operators/concat.js on lines 16..52

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

                                                                                                                                                var TakeWhileObserver = (function (__super__) {
                                                                                                                                                inherits(TakeWhileObserver, __super__);
                                                                                                                                                 
                                                                                                                                                function TakeWhileObserver(o, p) {
                                                                                                                                                this._o = o;
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 1 day to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 4730..4756
                                                                                                                                                src/core/linq/observable/takewhile.js on lines 16..42

                                                                                                                                                Similar blocks of code found in 4 locations. 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: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 3 other locations - About 1 day to fix
                                                                                                                                                modules/rx-core/rx.core.js on lines 1198..1233
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 6475..6510
                                                                                                                                                src/core/anonymousobservable.js on lines 1..36

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

                                                                                                                                                var FinallyObservable = (function (__super__) {
                                                                                                                                                inherits(FinallyObservable, __super__);
                                                                                                                                                function FinallyObservable(source, fn, thisArg) {
                                                                                                                                                this.source = source;
                                                                                                                                                this._fn = bindCallback(fn, thisArg, 0);
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 1 day to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 3950..3983
                                                                                                                                                src/core/perf/operators/finally.js on lines 1..34

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

                                                                                                                                                var Scheduler = Rx.Scheduler = (function () {
                                                                                                                                                 
                                                                                                                                                function Scheduler() { }
                                                                                                                                                 
                                                                                                                                                /** Determines whether the given object is a scheduler */
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 3 other locations - About 1 day to fix
                                                                                                                                                modules/rx-core/rx.core.js on lines 442..501
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 887..946
                                                                                                                                                src/core/concurrency/scheduler.js on lines 2..61

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

                                                                                                                                                if (!Array.prototype.indexOf) {
                                                                                                                                                Array.prototype.indexOf = function indexOf(searchElement) {
                                                                                                                                                var t = Object(this);
                                                                                                                                                var len = t.length >>> 0;
                                                                                                                                                if (len === 0) {
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 1 other location - About 1 day to fix
                                                                                                                                                src/core/internal/polyfills.js on lines 104..131

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

                                                                                                                                                var ObservableBase = Rx.ObservableBase = (function (__super__) {
                                                                                                                                                inherits(ObservableBase, __super__);
                                                                                                                                                 
                                                                                                                                                function fixSubscriber(subscriber) {
                                                                                                                                                return subscriber && isFunction(subscriber.dispose) ? subscriber :
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 3 other locations - About 1 day to fix
                                                                                                                                                modules/rx-core/rx.core.js on lines 1235..1268
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 1849..1882
                                                                                                                                                src/core/perf/observablebase.js on lines 1..34

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

                                                                                                                                                var SkipObservable = (function(__super__) {
                                                                                                                                                inherits(SkipObservable, __super__);
                                                                                                                                                function SkipObservable(source, count) {
                                                                                                                                                this.source = source;
                                                                                                                                                this._count = count;
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 1 day to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 4571..4602
                                                                                                                                                src/core/perf/operators/skip.js on lines 1..32

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

                                                                                                                                                var RefCountObservable = (function (__super__) {
                                                                                                                                                inherits(RefCountObservable, __super__);
                                                                                                                                                function RefCountObservable(source) {
                                                                                                                                                this.source = source;
                                                                                                                                                this._count = 0;
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 3 other locations - About 1 day to fix
                                                                                                                                                modules/rx-core-binding/rx.core.binding.js on lines 785..815
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 5332..5362
                                                                                                                                                src/core/linq/connectableobservable.js on lines 1..31

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

                                                                                                                                                var SkipWhileObserver = (function (__super__) {
                                                                                                                                                inherits(SkipWhileObserver, __super__);
                                                                                                                                                 
                                                                                                                                                function SkipWhileObserver(o, p) {
                                                                                                                                                this._o = o;
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 1 day to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 4629..4652
                                                                                                                                                src/core/linq/observable/skipwhile.js on lines 16..39

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

                                                                                                                                                var CatchObserver = (function(__super__) {
                                                                                                                                                inherits(CatchObserver, __super__);
                                                                                                                                                function CatchObserver(o, s, fn) {
                                                                                                                                                this._o = o;
                                                                                                                                                this._s = s;
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 1 day to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 2688..2710
                                                                                                                                                src/core/linq/observable/catchproto.js on lines 19..41

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

                                                                                                                                                var WithLatestFromSourceObserver = (function (__super__) {
                                                                                                                                                inherits(WithLatestFromSourceObserver, __super__);
                                                                                                                                                function WithLatestFromSourceObserver(o, cb, state) {
                                                                                                                                                this._o = o;
                                                                                                                                                this._cb = cb;
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 1 day to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 3502..3528
                                                                                                                                                src/core/perf/operators/withlatestfrom.js on lines 67..93

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

                                                                                                                                                var ZipIterableObservable = (function(__super__) {
                                                                                                                                                inherits(ZipIterableObservable, __super__);
                                                                                                                                                function ZipIterableObservable(sources, cb) {
                                                                                                                                                this.sources = sources;
                                                                                                                                                this._cb = cb;
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 1 day to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 3661..3693
                                                                                                                                                src/core/linq/observable/zipiterable.js on lines 9..41

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

                                                                                                                                                var OfEnumerable = (function(__super__) {
                                                                                                                                                inherits(OfEnumerable, __super__);
                                                                                                                                                function OfEnumerable(s, fn, thisArg) {
                                                                                                                                                this.s = s;
                                                                                                                                                this.fn = fn ? bindCallback(fn, thisArg, 3) : null;
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 1 day to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 2085..2109
                                                                                                                                                src/core/enumerable.js on lines 153..177

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

                                                                                                                                                var CurrentThreadScheduler = (function (__super__) {
                                                                                                                                                var queue;
                                                                                                                                                 
                                                                                                                                                function runTrampoline () {
                                                                                                                                                while (queue.length > 0) {
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 3 other locations - About 1 day to fix
                                                                                                                                                modules/rx-core/rx.core.js on lines 650..684
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 1064..1098
                                                                                                                                                src/core/concurrency/currentthreadscheduler.js on lines 4..38

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

                                                                                                                                                var ToArrayObservable = (function(__super__) {
                                                                                                                                                inherits(ToArrayObservable, __super__);
                                                                                                                                                function ToArrayObservable(source) {
                                                                                                                                                this.source = source;
                                                                                                                                                __super__.call(this);
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 1 day to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 2115..2138
                                                                                                                                                src/core/perf/operators/toarray.js on lines 1..24

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

                                                                                                                                                var CombineLatestObservable = (function(__super__) {
                                                                                                                                                inherits(CombineLatestObservable, __super__);
                                                                                                                                                function CombineLatestObservable(params, cb) {
                                                                                                                                                this._params = params;
                                                                                                                                                this._cb = cb;
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 1 day to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 2765..2795
                                                                                                                                                src/core/perf/operators/combinelatest.js on lines 8..38

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

                                                                                                                                                var Notification = Rx.Notification = (function () {
                                                                                                                                                function Notification() {
                                                                                                                                                 
                                                                                                                                                }
                                                                                                                                                 
                                                                                                                                                 
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 3 other locations - About 1 day to fix
                                                                                                                                                modules/rx-core-testing/rx.core.testing.js on lines 53..98
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 1431..1476
                                                                                                                                                src/core/notification.js on lines 4..49

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

                                                                                                                                                var TakeLastObserver = (function (__super__) {
                                                                                                                                                inherits(TakeLastObserver, __super__);
                                                                                                                                                function TakeLastObserver(o, c) {
                                                                                                                                                this._o = o;
                                                                                                                                                this._c = c;
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 1 day to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 4429..4453
                                                                                                                                                src/core/linq/observable/takelast.js on lines 1..25

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

                                                                                                                                                var SchedulePeriodicRecursive = Rx.internals.SchedulePeriodicRecursive = (function () {
                                                                                                                                                function createTick(self) {
                                                                                                                                                return function tick(command, recurse) {
                                                                                                                                                recurse(0, self._period);
                                                                                                                                                var state = tryCatch(self._action)(self._state);
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 1 day to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 1102..1131
                                                                                                                                                src/core/concurrency/scheduleperiodicrecursive.js on lines 1..30

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

                                                                                                                                                var SamplerObserver = (function(__super__) {
                                                                                                                                                inherits(SamplerObserver, __super__);
                                                                                                                                                function SamplerObserver(s) {
                                                                                                                                                this._s = s;
                                                                                                                                                __super__.call(this);
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 1 day to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 5852..5872
                                                                                                                                                src/core/linq/observable/sample.js on lines 28..48

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

                                                                                                                                                (!root.CustomEvent || typeof root.CustomEvent === 'object') && (function() {
                                                                                                                                                function CustomEvent (type, params) {
                                                                                                                                                var event;
                                                                                                                                                params = params || { bubbles: false, cancelable: false, detail: undefined };
                                                                                                                                                 
                                                                                                                                                 
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 1 other location - About 1 day to fix
                                                                                                                                                src/core/internal/polyfills.js on lines 325..348

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

                                                                                                                                                var observableMerge = Observable.merge = function () {
                                                                                                                                                var scheduler, sources = [], i, len = arguments.length;
                                                                                                                                                if (!arguments[0]) {
                                                                                                                                                scheduler = immediateScheduler;
                                                                                                                                                for(i = 1; i < len; i++) { sources.push(arguments[i]); }
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 1 day to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 3030..3046
                                                                                                                                                src/core/linq/observable/merge.js on lines 6..22

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

                                                                                                                                                var ZipObservable = (function(__super__) {
                                                                                                                                                inherits(ZipObservable, __super__);
                                                                                                                                                function ZipObservable(sources, resultSelector) {
                                                                                                                                                this._s = sources;
                                                                                                                                                this._cb = resultSelector;
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 1 day to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 3548..3573
                                                                                                                                                src/core/perf/operators/zip.js on lines 4..29

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

                                                                                                                                                function createNodeHandler(o, ctx, selector) {
                                                                                                                                                return function handler () {
                                                                                                                                                var err = arguments[0];
                                                                                                                                                if (err) { return o.onError(err); }
                                                                                                                                                 
                                                                                                                                                 
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 1 day to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 4888..4910
                                                                                                                                                src/core/perf/operators/fromnodecallback.js on lines 10..32

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

                                                                                                                                                var SkipLastObserver = (function (__super__) {
                                                                                                                                                inherits(SkipLastObserver, __super__);
                                                                                                                                                function SkipLastObserver(o, c) {
                                                                                                                                                this._o = o;
                                                                                                                                                this._c = c;
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 1 day to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 4371..4394
                                                                                                                                                src/core/linq/observable/skiplast.js on lines 16..39

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

                                                                                                                                                var PairsObservable = (function(__super__) {
                                                                                                                                                inherits(PairsObservable, __super__);
                                                                                                                                                function PairsObservable(o, scheduler) {
                                                                                                                                                this._o = o;
                                                                                                                                                this._keys = Object.keys(o);
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 1 day to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 2468..2494
                                                                                                                                                src/core/perf/operators/pairs.js on lines 1..27

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

                                                                                                                                                var TransduceObserver = (function (__super__) {
                                                                                                                                                inherits(TransduceObserver, __super__);
                                                                                                                                                function TransduceObserver(o, xform) {
                                                                                                                                                this._o = o;
                                                                                                                                                this._xform = xform;
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 1 day to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 6426..6446
                                                                                                                                                src/core/linq/observable/transduce.js on lines 1..21

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

                                                                                                                                                var SkipUntilObservable = (function(__super__) {
                                                                                                                                                inherits(SkipUntilObservable, __super__);
                                                                                                                                                 
                                                                                                                                                function SkipUntilObservable(source, other) {
                                                                                                                                                this._s = source;
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 1 day to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 3235..3258
                                                                                                                                                src/core/perf/operators/skipuntil.js on lines 1..24

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

                                                                                                                                                priorityProto.heapify = function (index) {
                                                                                                                                                +index || (index = 0);
                                                                                                                                                if (index >= this.length || index < 0) { return; }
                                                                                                                                                var left = 2 * index + 1,
                                                                                                                                                right = 2 * index + 2,
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 3 other locations - About 1 day to fix
                                                                                                                                                modules/rx-core/rx.core.js on lines 932..950
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 1377..1395
                                                                                                                                                src/core/internal/priorityqueue.js on lines 34..52

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

                                                                                                                                                var WithLatestFromOtherObserver = (function (__super__) {
                                                                                                                                                inherits(WithLatestFromOtherObserver, __super__);
                                                                                                                                                function WithLatestFromOtherObserver(o, i, state) {
                                                                                                                                                this._o = o;
                                                                                                                                                this._i = i;
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 1 day to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 3478..3500
                                                                                                                                                src/core/perf/operators/withlatestfrom.js on lines 43..65

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

                                                                                                                                                var EventObservable = (function(__super__) {
                                                                                                                                                inherits(EventObservable, __super__);
                                                                                                                                                function EventObservable(el, name, fn) {
                                                                                                                                                this._el = el;
                                                                                                                                                this._n = name;
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 1 day to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 4973..5001
                                                                                                                                                src/core/linq/observable/fromevent.js on lines 46..74

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

                                                                                                                                                if (!Object.keys) {
                                                                                                                                                Object.keys = (function() {
                                                                                                                                                'use strict';
                                                                                                                                                var hasOwnProperty = Object.prototype.hasOwnProperty,
                                                                                                                                                hasDontEnumBug = !({ toString: null }).propertyIsEnumerable('toString');
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 1 other location - About 1 day to fix
                                                                                                                                                src/core/internal/polyfills.js on lines 141..170

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

                                                                                                                                                var EmptyObservable = (function(__super__) {
                                                                                                                                                inherits(EmptyObservable, __super__);
                                                                                                                                                function EmptyObservable(scheduler) {
                                                                                                                                                this.scheduler = scheduler;
                                                                                                                                                __super__.call(this);
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 1 day to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 2190..2220
                                                                                                                                                src/core/perf/operators/empty.js on lines 1..31

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

                                                                                                                                                var RepeatEnumerable = (function (__super__) {
                                                                                                                                                inherits(RepeatEnumerable, __super__);
                                                                                                                                                function RepeatEnumerable(v, c) {
                                                                                                                                                this.v = v;
                                                                                                                                                this.c = c == null ? -1 : c;
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 1 day to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 2056..2079
                                                                                                                                                src/core/enumerable.js on lines 124..147

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

                                                                                                                                                if (!Array.prototype.map) {
                                                                                                                                                Array.prototype.map = function map(fun /*, thisp*/) {
                                                                                                                                                var object = Object(this),
                                                                                                                                                self = splitString && toString.call(this) === stringClass ?
                                                                                                                                                this.split('') :
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 1 other location - About 1 day to fix
                                                                                                                                                src/core/internal/polyfills.js on lines 62..83

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

                                                                                                                                                var RangeObservable = (function(__super__) {
                                                                                                                                                inherits(RangeObservable, __super__);
                                                                                                                                                function RangeObservable(start, count, scheduler) {
                                                                                                                                                this.start = start;
                                                                                                                                                this.rangeCount = count;
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 1 day to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 2507..2535
                                                                                                                                                src/core/perf/operators/range.js on lines 1..29

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

                                                                                                                                                function createCbHandler(o, ctx, selector) {
                                                                                                                                                return function handler () {
                                                                                                                                                var len = arguments.length, results = new Array(len);
                                                                                                                                                for(var i = 0; i < len; i++) { results[i] = arguments[i]; }
                                                                                                                                                 
                                                                                                                                                 
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 1 day to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 4840..4859
                                                                                                                                                src/core/perf/operators/fromcallback.js on lines 10..29

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

                                                                                                                                                var MaterializeObserver = (function (__super__) {
                                                                                                                                                inherits(MaterializeObserver, __super__);
                                                                                                                                                 
                                                                                                                                                function MaterializeObserver(o) {
                                                                                                                                                this._o = o;
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 1 day to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 4059..4072
                                                                                                                                                src/core/linq/observable/materialize.js on lines 15..28

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

                                                                                                                                                Observable.fromEvent = function (element, eventName, selector, eventListenerOptions) {
                                                                                                                                                // Node.js specific
                                                                                                                                                if (element.addListener) {
                                                                                                                                                return fromEventPattern(
                                                                                                                                                function (h) { element.addListener(eventName, h, eventListenerOptions); },
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 1 day to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 5011..5032
                                                                                                                                                src/core/linq/observable/fromevent.js on lines 84..105

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

                                                                                                                                                if (typeof Object.create !== 'function') {
                                                                                                                                                // Production steps of ECMA-262, Edition 5, 15.2.3.5
                                                                                                                                                // Reference: http://es5.github.io/#x15.2.3.5
                                                                                                                                                Object.create = (function() {
                                                                                                                                                function Temp() {}
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 1 other location - About 1 day to fix
                                                                                                                                                src/core/internal/polyfills.js on lines 172..203

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

                                                                                                                                                var SampleSourceObserver = (function(__super__) {
                                                                                                                                                inherits(SampleSourceObserver, __super__);
                                                                                                                                                function SampleSourceObserver(s) {
                                                                                                                                                this._s = s;
                                                                                                                                                __super__.call(this);
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 1 day to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 5874..5892
                                                                                                                                                src/core/linq/observable/sample.js on lines 50..68

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

                                                                                                                                                var SkipUntilOtherObserver = (function(__super__) {
                                                                                                                                                inherits(SkipUntilOtherObserver, __super__);
                                                                                                                                                function SkipUntilOtherObserver(o, p, r) {
                                                                                                                                                this._o = o;
                                                                                                                                                this._p = p;
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 1 day to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 3283..3306
                                                                                                                                                src/core/perf/operators/skipuntil.js on lines 49..72

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

                                                                                                                                                if (!Array.prototype.every) {
                                                                                                                                                Array.prototype.every = function every(fun /*, thisp */) {
                                                                                                                                                var object = Object(this),
                                                                                                                                                self = splitString && toString.call(this) === stringClass ?
                                                                                                                                                this.split('') :
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 1 other location - About 1 day to fix
                                                                                                                                                src/core/internal/polyfills.js on lines 40..60

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

                                                                                                                                                var AnonymousObserver = Rx.AnonymousObserver = (function (__super__) {
                                                                                                                                                inherits(AnonymousObserver, __super__);
                                                                                                                                                 
                                                                                                                                                /**
                                                                                                                                                * Creates an observer from the specified OnNext, OnError, and OnCompleted actions.
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 3 other locations - About 1 day to fix
                                                                                                                                                modules/rx-core/rx.core.js on lines 1071..1111
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 1657..1697
                                                                                                                                                src/core/anonymousobserver.js on lines 4..44

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

                                                                                                                                                var FromArrayObservable = (function(__super__) {
                                                                                                                                                inherits(FromArrayObservable, __super__);
                                                                                                                                                function FromArrayObservable(args, scheduler) {
                                                                                                                                                this._args = args;
                                                                                                                                                this._scheduler = scheduler;
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 1 other location - About 1 day to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 2381..2406

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

                                                                                                                                                var AnonymousSubject = Rx.AnonymousSubject = (function (__super__) {
                                                                                                                                                inherits(AnonymousSubject, __super__);
                                                                                                                                                function AnonymousSubject(observer, observable) {
                                                                                                                                                this.observer = observer;
                                                                                                                                                this.observable = observable;
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 1 day to fix
                                                                                                                                                modules/rx-core-binding/rx.core.binding.js on lines 410..434
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 6777..6801

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

                                                                                                                                                if (!Array.prototype.forEach) {
                                                                                                                                                Array.prototype.forEach = function (callback, thisArg) {
                                                                                                                                                var T, k;
                                                                                                                                                 
                                                                                                                                                if (this == null) {
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 1 other location - About 1 day to fix
                                                                                                                                                src/core/internal/polyfills.js on lines 7..36

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

                                                                                                                                                var SkipUntilSourceObserver = (function(__super__) {
                                                                                                                                                inherits(SkipUntilSourceObserver, __super__);
                                                                                                                                                function SkipUntilSourceObserver(o, p) {
                                                                                                                                                this._o = o;
                                                                                                                                                this._p = p;
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 1 day to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 3260..3281
                                                                                                                                                src/core/perf/operators/skipuntil.js on lines 26..47

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

                                                                                                                                                var TimestampObserver = (function (__super__) {
                                                                                                                                                inherits(TimestampObserver, __super__);
                                                                                                                                                function TimestampObserver(o, s) {
                                                                                                                                                this._o = o;
                                                                                                                                                this._s = s;
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 1 day to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 5787..5808
                                                                                                                                                src/core/linq/observable/timestamp.js on lines 16..37

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

                                                                                                                                                observableProto.throttle = function (windowDuration, scheduler) {
                                                                                                                                                isScheduler(scheduler) || (scheduler = defaultScheduler);
                                                                                                                                                var duration = +windowDuration || 0;
                                                                                                                                                if (duration <= 0) { throw new RangeError('windowDuration cannot be less or equal zero.'); }
                                                                                                                                                var source = this;
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 1 day to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 6047..6064
                                                                                                                                                src/core/linq/observable/throttle.js on lines 7..24

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

                                                                                                                                                var ConcatObserver = (function(__super__) {
                                                                                                                                                inherits(ConcatObserver, __super__);
                                                                                                                                                function ConcatObserver(s, fn) {
                                                                                                                                                this._s = s;
                                                                                                                                                this._fn = fn;
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 1 day to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 2863..2876
                                                                                                                                                src/core/perf/operators/concat.js on lines 1..14

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

                                                                                                                                                var JustObservable = (function(__super__) {
                                                                                                                                                inherits(JustObservable, __super__);
                                                                                                                                                function JustObservable(value, scheduler) {
                                                                                                                                                this._value = value;
                                                                                                                                                this._scheduler = scheduler;
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 1 day to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 2597..2620
                                                                                                                                                src/core/perf/operators/just.js on lines 1..24

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

                                                                                                                                                function makeStackTraceLong(error, observable) {
                                                                                                                                                // If possible, transform the error stack trace by removing Node and RxJS
                                                                                                                                                // cruft, then concatenating with the stack trace of `observable`.
                                                                                                                                                if (hasStacks &&
                                                                                                                                                observable.stack &&
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 3 other locations - About 7 hrs to fix
                                                                                                                                                modules/rx-core/rx.core.js on lines 103..124
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 93..114
                                                                                                                                                src/core/longstacktraces/longstacktraces.js on lines 3..24

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

                                                                                                                                                var SampleObservable = (function(__super__) {
                                                                                                                                                inherits(SampleObservable, __super__);
                                                                                                                                                function SampleObservable(source, sampler) {
                                                                                                                                                this.source = source;
                                                                                                                                                this._sampler = sampler;
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 7 hrs to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 5825..5850
                                                                                                                                                src/core/linq/observable/sample.js on lines 1..26

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

                                                                                                                                                var ThrowObservable = (function(__super__) {
                                                                                                                                                inherits(ThrowObservable, __super__);
                                                                                                                                                function ThrowObservable(error, scheduler) {
                                                                                                                                                this._error = error;
                                                                                                                                                this._scheduler = scheduler;
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 7 hrs to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 2634..2656
                                                                                                                                                src/core/perf/operators/throw.js on lines 1..23

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

                                                                                                                                                observableProto.zip = function () {
                                                                                                                                                if (arguments.length === 0) { throw new Error('invalid arguments'); }
                                                                                                                                                 
                                                                                                                                                var len = arguments.length, args = new Array(len);
                                                                                                                                                for(var i = 0; i < len; i++) { args[i] = arguments[i]; }
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 1 other location - About 7 hrs to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 3623..3635

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

                                                                                                                                                var ControlledObservable = (function (__super__) {
                                                                                                                                                inherits(ControlledObservable, __super__);
                                                                                                                                                function ControlledObservable (source, enableQueue, scheduler) {
                                                                                                                                                __super__.call(this);
                                                                                                                                                this.subject = new ControlledSubject(enableQueue, scheduler);
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 7 hrs to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 6257..6275
                                                                                                                                                src/core/backpressure/controlled.js on lines 1..19

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

                                                                                                                                                var bindCallback = Rx.internals.bindCallback = function (func, thisArg, argCount) {
                                                                                                                                                if (typeof thisArg === 'undefined') { return func; }
                                                                                                                                                switch(argCount) {
                                                                                                                                                case 0:
                                                                                                                                                return function() {
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 1 other location - About 6 hrs to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 238..262

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

                                                                                                                                                CompositeDisposablePrototype.dispose = function () {
                                                                                                                                                if (!this.isDisposed) {
                                                                                                                                                this.isDisposed = true;
                                                                                                                                                var len = this.disposables.length, currentDisposables = new Array(len);
                                                                                                                                                for(var i = 0; i < len; i++) { currentDisposables[i] = this.disposables[i]; }
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 6 hrs to fix
                                                                                                                                                modules/rx-core/rx.core.js on lines 274..286
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 661..673

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

                                                                                                                                                var DematerializeObserver = (function (__super__) {
                                                                                                                                                inherits(DematerializeObserver, __super__);
                                                                                                                                                 
                                                                                                                                                function DematerializeObserver(o) {
                                                                                                                                                this._o = o;
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 6 hrs to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 3776..3789
                                                                                                                                                src/core/linq/observable/dematerialize.js on lines 15..28

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

                                                                                                                                                Observable.zip = function () {
                                                                                                                                                var len = arguments.length, args = new Array(len);
                                                                                                                                                for(var i = 0; i < len; i++) { args[i] = arguments[i]; }
                                                                                                                                                if (Array.isArray(args[0])) {
                                                                                                                                                args = isFunction(args[1]) ? args[0].concat(args[1]) : args[0];
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 6 hrs to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 3643..3651
                                                                                                                                                src/core/linq/observable/zip.js on lines 7..15

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

                                                                                                                                                observableProto.withLatestFrom = function () {
                                                                                                                                                if (arguments.length === 0) { throw new Error('invalid arguments'); }
                                                                                                                                                 
                                                                                                                                                var len = arguments.length, args = new Array(len);
                                                                                                                                                for(var i = 0; i < len; i++) { args[i] = arguments[i]; }
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 6 hrs to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 3534..3543
                                                                                                                                                src/core/perf/operators/withlatestfrom.js on lines 99..108

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

                                                                                                                                                var observableTimer = Observable.timer = function (dueTime, periodOrScheduler, scheduler) {
                                                                                                                                                var period;
                                                                                                                                                isScheduler(scheduler) || (scheduler = defaultScheduler);
                                                                                                                                                if (periodOrScheduler != null && typeof periodOrScheduler === 'number') {
                                                                                                                                                period = periodOrScheduler;
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 6 hrs to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 5483..5498
                                                                                                                                                src/core/linq/observable/timer.js on lines 8..23

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

                                                                                                                                                var CompositeDisposable = Rx.CompositeDisposable = function () {
                                                                                                                                                var args = [], i, len;
                                                                                                                                                if (Array.isArray(arguments[0])) {
                                                                                                                                                args = arguments[0];
                                                                                                                                                } else {
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 3 other locations - About 6 hrs to fix
                                                                                                                                                modules/rx-core/rx.core.js on lines 223..235
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 610..622
                                                                                                                                                src/core/disposables/compositedisposable.js on lines 5..17

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

                                                                                                                                                var DebounceObservable = (function (__super__) {
                                                                                                                                                inherits(DebounceObservable, __super__);
                                                                                                                                                function DebounceObservable(source, dt, s) {
                                                                                                                                                isScheduler(s) || (s = defaultScheduler);
                                                                                                                                                this.source = source;
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 6 hrs to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 5648..5666
                                                                                                                                                src/core/linq/observable/debounce.js on lines 1..19

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

                                                                                                                                                function observableTimerDateAndPeriod(dueTime, period, scheduler) {
                                                                                                                                                return new AnonymousObservable(function (observer) {
                                                                                                                                                var d = dueTime, p = normalizeTime(period);
                                                                                                                                                return scheduler.scheduleRecursiveFuture(0, d, function (count, self) {
                                                                                                                                                if (p > 0) {
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 6 hrs to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 5433..5446
                                                                                                                                                src/core/linq/observable/_observabletimerdateandperiod.js on lines 1..14

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

                                                                                                                                                var OnErrorNotification = (function (__super__) {
                                                                                                                                                inherits(OnErrorNotification, __super__);
                                                                                                                                                function OnErrorNotification(error) {
                                                                                                                                                this.error = error;
                                                                                                                                                this.kind = 'E';
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 3 other locations - About 6 hrs to fix
                                                                                                                                                modules/rx-core-testing/rx.core.testing.js on lines 122..142
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 1500..1520
                                                                                                                                                src/core/notification.js on lines 73..93

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

                                                                                                                                                var MulticastObservable = (function (__super__) {
                                                                                                                                                inherits(MulticastObservable, __super__);
                                                                                                                                                function MulticastObservable(source, fn1, fn2) {
                                                                                                                                                this.source = source;
                                                                                                                                                this._fn1 = fn1;
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 3 other locations - About 6 hrs to fix
                                                                                                                                                modules/rx-core-binding/rx.core.binding.js on lines 80..95
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 5178..5193
                                                                                                                                                src/core/linq/observable/multicast.js on lines 1..16

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

                                                                                                                                                var OnNextNotification = (function (__super__) {
                                                                                                                                                inherits(OnNextNotification, __super__);
                                                                                                                                                function OnNextNotification(value) {
                                                                                                                                                this.value = value;
                                                                                                                                                this.kind = 'N';
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 3 other locations - About 6 hrs to fix
                                                                                                                                                modules/rx-core-testing/rx.core.testing.js on lines 100..120
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 1478..1498
                                                                                                                                                src/core/notification.js on lines 51..71

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

                                                                                                                                                var MergeDelayErrorObservable = (function(__super__) {
                                                                                                                                                inherits(MergeDelayErrorObservable, __super__);
                                                                                                                                                function MergeDelayErrorObservable(source) {
                                                                                                                                                this.source = source;
                                                                                                                                                __super__.call(this);
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 6 hrs to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 3056..3075
                                                                                                                                                src/core/linq/observable/mergedelayerror.js on lines 9..28

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

                                                                                                                                                observableProto.startWith = function () {
                                                                                                                                                var values, scheduler, start = 0;
                                                                                                                                                if (!!arguments.length && isScheduler(arguments[0])) {
                                                                                                                                                scheduler = arguments[0];
                                                                                                                                                start = 1;
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 6 hrs to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 4417..4427
                                                                                                                                                src/core/linq/observable/startwith.js on lines 9..19

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

                                                                                                                                                var Defer = (function(__super__) {
                                                                                                                                                inherits(Defer, __super__);
                                                                                                                                                function Defer(factory) {
                                                                                                                                                this._f = factory;
                                                                                                                                                __super__.call(this);
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 6 hrs to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 2161..2176
                                                                                                                                                src/core/linq/observable/defer.js on lines 1..16

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

                                                                                                                                                RepeatSink.prototype.run = function () {
                                                                                                                                                var observer = this.observer, value = this.parent.value;
                                                                                                                                                function loopRecursive(i, recurse) {
                                                                                                                                                if (i === -1 || i > 0) {
                                                                                                                                                observer.onNext(value);
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 6 hrs to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 2571..2583
                                                                                                                                                src/core/perf/operators/repeat.js on lines 23..35

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

                                                                                                                                                var CatchObservable = (function (__super__) {
                                                                                                                                                inherits(CatchObservable, __super__);
                                                                                                                                                function CatchObservable(source, fn) {
                                                                                                                                                this.source = source;
                                                                                                                                                this._fn = fn;
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 6 hrs to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 2670..2686
                                                                                                                                                src/core/linq/observable/catchproto.js on lines 1..17

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

                                                                                                                                                observableProto.zipIterable = function () {
                                                                                                                                                if (arguments.length === 0) { throw new Error('invalid arguments'); }
                                                                                                                                                 
                                                                                                                                                var len = arguments.length, args = new Array(len);
                                                                                                                                                for(var i = 0; i < len; i++) { args[i] = arguments[i]; }
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 6 hrs to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 3738..3748
                                                                                                                                                src/core/linq/observable/zipiterable.js on lines 86..96

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

                                                                                                                                                priorityProto.percolate = function (index) {
                                                                                                                                                if (index >= this.length || index < 0) { return; }
                                                                                                                                                var parent = index - 1 >> 1;
                                                                                                                                                if (parent < 0 || parent === index) { return; }
                                                                                                                                                if (this.isHigherPriority(index, parent)) {
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 3 other locations - About 6 hrs to fix
                                                                                                                                                modules/rx-core/rx.core.js on lines 920..930
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 1365..1375
                                                                                                                                                src/core/internal/priorityqueue.js on lines 22..32

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

                                                                                                                                                observableProto.delay = function () {
                                                                                                                                                var firstArg = arguments[0];
                                                                                                                                                if (typeof firstArg === 'number' || firstArg instanceof Date) {
                                                                                                                                                var dueTime = firstArg, scheduler = arguments[1];
                                                                                                                                                isScheduler(scheduler) || (scheduler = defaultScheduler);
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 5 hrs to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 5633..5646
                                                                                                                                                src/core/linq/observable/delay.js on lines 134..147

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

                                                                                                                                                var addProperties = Rx.internals.addProperties = function (obj) {
                                                                                                                                                for(var sources = [], i = 1, len = arguments.length; i < len; i++) { sources.push(arguments[i]); }
                                                                                                                                                for (var idx = 0, ln = sources.length; idx < ln; idx++) {
                                                                                                                                                var source = sources[idx];
                                                                                                                                                for (var prop in source) {
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 3 other locations - About 5 hrs to fix
                                                                                                                                                modules/rx-core/rx.core.js on lines 194..202
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 581..589
                                                                                                                                                src/core/internal/util.js on lines 10..18

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

                                                                                                                                                if (!Array.prototype.filter) {
                                                                                                                                                Array.prototype.filter = function (predicate) {
                                                                                                                                                var results = [], item, t = new Object(this);
                                                                                                                                                for (var i = 0, len = t.length >>> 0; i < len; i++) {
                                                                                                                                                item = t[i];
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 1 other location - About 5 hrs to fix
                                                                                                                                                src/core/internal/polyfills.js on lines 85..96

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

                                                                                                                                                var combineLatest = Observable.combineLatest = function () {
                                                                                                                                                var len = arguments.length, args = new Array(len);
                                                                                                                                                for(var i = 0; i < len; i++) { args[i] = arguments[i]; }
                                                                                                                                                var resultSelector = isFunction(args[len - 1]) ? args.pop() : argumentsToArray;
                                                                                                                                                Array.isArray(args[0]) && (args = args[0]);
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 1 other location - About 5 hrs to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 2845..2851

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

                                                                                                                                                var TakeUntilObserver = (function(__super__) {
                                                                                                                                                inherits(TakeUntilObserver, __super__);
                                                                                                                                                function TakeUntilObserver(o) {
                                                                                                                                                this._o = o;
                                                                                                                                                __super__.call(this);
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 5 hrs to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 3407..3425
                                                                                                                                                src/core/perf/operators/takeuntil.js on lines 20..38

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

                                                                                                                                                var TimerObservable = (function(__super__) {
                                                                                                                                                inherits(TimerObservable, __super__);
                                                                                                                                                function TimerObservable(dt, s) {
                                                                                                                                                this._dt = dt;
                                                                                                                                                this._s = s;
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 5 hrs to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 5409..5427
                                                                                                                                                src/core/linq/observable/_observabletimer.js on lines 1..19

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

                                                                                                                                                var TakeUntilObservable = (function(__super__) {
                                                                                                                                                inherits(TakeUntilObservable, __super__);
                                                                                                                                                 
                                                                                                                                                function TakeUntilObservable(source, other) {
                                                                                                                                                this.source = source;
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 5 hrs to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 3388..3405
                                                                                                                                                src/core/perf/operators/takeuntil.js on lines 1..18

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

                                                                                                                                                var MergeAllObservable = (function (__super__) {
                                                                                                                                                inherits(MergeAllObservable, __super__);
                                                                                                                                                 
                                                                                                                                                function MergeAllObservable(source) {
                                                                                                                                                this.source = source;
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 5 hrs to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 3161..3177
                                                                                                                                                src/core/perf/operators/mergeall.js on lines 1..17

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

                                                                                                                                                var MergeObservable = (function (__super__) {
                                                                                                                                                inherits(MergeObservable, __super__);
                                                                                                                                                 
                                                                                                                                                function MergeObservable(source, maxConcurrent) {
                                                                                                                                                this.source = source;
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 5 hrs to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 2940..2957
                                                                                                                                                src/core/perf/operators/mergeconcat.js on lines 1..18

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

                                                                                                                                                var RepeatObservable = (function(__super__) {
                                                                                                                                                inherits(RepeatObservable, __super__);
                                                                                                                                                function RepeatObservable(value, repeatCount, scheduler) {
                                                                                                                                                this.value = value;
                                                                                                                                                this.repeatCount = repeatCount == null ? -1 : repeatCount;
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 5 hrs to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 2549..2564
                                                                                                                                                src/core/perf/operators/repeat.js on lines 1..16

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

                                                                                                                                                observableProto.combineLatest = function () {
                                                                                                                                                var len = arguments.length, args = new Array(len);
                                                                                                                                                for(var i = 0; i < len; i++) { args[i] = arguments[i]; }
                                                                                                                                                if (Array.isArray(args[0])) {
                                                                                                                                                args[0].unshift(this);
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 5 hrs to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 2747..2756
                                                                                                                                                src/core/linq/observable/combinelatestproto.js on lines 10..19

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

                                                                                                                                                var localTimer = (function () {
                                                                                                                                                var localSetTimeout, localClearTimeout = noop;
                                                                                                                                                if (!!root.setTimeout) {
                                                                                                                                                localSetTimeout = root.setTimeout;
                                                                                                                                                localClearTimeout = root.clearTimeout;
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 3 other locations - About 5 hrs to fix
                                                                                                                                                modules/rx-core/rx.core.js on lines 690..708
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 1135..1153
                                                                                                                                                src/core/concurrency/defaultscheduler.js on lines 3..21

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

                                                                                                                                                var observableCatch = Observable['catch'] = function () {
                                                                                                                                                var items;
                                                                                                                                                if (Array.isArray(arguments[0])) {
                                                                                                                                                items = arguments[0];
                                                                                                                                                } else {
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 1 other location - About 5 hrs to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 2726..2736

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

                                                                                                                                                Observable.mergeDelayError = function() {
                                                                                                                                                var args;
                                                                                                                                                if (Array.isArray(arguments[0])) {
                                                                                                                                                args = arguments[0];
                                                                                                                                                } else {
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 5 hrs to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 3148..3159
                                                                                                                                                src/core/linq/observable/mergedelayerror.js on lines 101..112

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

                                                                                                                                                if (typeof define == 'function' && typeof define.amd == 'object' && define.amd) {
                                                                                                                                                root.Rx = Rx;
                                                                                                                                                 
                                                                                                                                                define(function() {
                                                                                                                                                return Rx;
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 5 hrs to fix
                                                                                                                                                modules/rx-core/rx.core.js on lines 1325..1341
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 7062..7078

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

                                                                                                                                                (function (schedulerProto) {
                                                                                                                                                 
                                                                                                                                                /**
                                                                                                                                                * Schedules a periodic piece of work by dynamically discovering the scheduler's capabilities. The periodic task will be scheduled using window.setInterval for the base implementation.
                                                                                                                                                * @param {Mixed} state Initial state passed to the action upon the first iteration.
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 1 other location - About 4 hrs to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 1027..1043

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

                                                                                                                                                function captureLine() {
                                                                                                                                                if (!hasStacks) { return; }
                                                                                                                                                 
                                                                                                                                                try {
                                                                                                                                                throw new Error();
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 3 other locations - About 4 hrs to fix
                                                                                                                                                modules/rx-core/rx.core.js on lines 155..169
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 145..159
                                                                                                                                                src/core/longstacktraces/longstacktraces.js on lines 55..69

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

                                                                                                                                                var observableConcat = Observable.concat = function () {
                                                                                                                                                var args;
                                                                                                                                                if (Array.isArray(arguments[0])) {
                                                                                                                                                args = arguments[0];
                                                                                                                                                } else {
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 1 other location - About 4 hrs to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 2921..2930

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

                                                                                                                                                var OnCompletedNotification = (function (__super__) {
                                                                                                                                                inherits(OnCompletedNotification, __super__);
                                                                                                                                                function OnCompletedNotification() {
                                                                                                                                                this.kind = 'C';
                                                                                                                                                }
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 3 other locations - About 4 hrs to fix
                                                                                                                                                modules/rx-core-testing/rx.core.testing.js on lines 144..163
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 1522..1541
                                                                                                                                                src/core/notification.js on lines 95..114

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

                                                                                                                                                function toLength(o) {
                                                                                                                                                var len = +o.length;
                                                                                                                                                if (isNaN(len)) { return 0; }
                                                                                                                                                if (len === 0 || !numberIsFinite(len)) { return len; }
                                                                                                                                                len = sign(len) * Math.floor(Math.abs(len));
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 4 hrs to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 2350..2358
                                                                                                                                                src/core/perf/operators/from.js on lines 113..121

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

                                                                                                                                                Rx.Pauser = (function (__super__) {
                                                                                                                                                inherits(Pauser, __super__);
                                                                                                                                                function Pauser() {
                                                                                                                                                __super__.call(this);
                                                                                                                                                }
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 4 hrs to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 7043..7060
                                                                                                                                                src/core/backpressure/pauser.js on lines 4..21

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

                                                                                                                                                function filterStackString(stackString) {
                                                                                                                                                var lines = stackString.split('\n'), desiredLines = [];
                                                                                                                                                for (var i = 0, len = lines.length; i < len; i++) {
                                                                                                                                                var line = lines[i];
                                                                                                                                                 
                                                                                                                                                 
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 3 other locations - About 4 hrs to fix
                                                                                                                                                modules/rx-core/rx.core.js on lines 126..136
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 116..126
                                                                                                                                                src/core/longstacktraces/longstacktraces.js on lines 26..36

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

                                                                                                                                                observableProto.toPromise = function (promiseCtor) {
                                                                                                                                                promiseCtor || (promiseCtor = Rx.config.Promise);
                                                                                                                                                if (!promiseCtor) { throw new NotSupportedError('Promise type not provided nor in Rx.config.Promise'); }
                                                                                                                                                var source = this;
                                                                                                                                                return new promiseCtor(function (resolve, reject) {
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 1 other location - About 4 hrs to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 5152..5165

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

                                                                                                                                                observableProto.timeout = function () {
                                                                                                                                                var firstArg = arguments[0];
                                                                                                                                                if (firstArg instanceof Date || typeof firstArg === 'number') {
                                                                                                                                                return timeout(this, firstArg, arguments[1], arguments[2]);
                                                                                                                                                } else if (Observable.isObservable(firstArg) || isFunction(firstArg)) {
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 1 other location - About 4 hrs to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 6030..6039

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

                                                                                                                                                CompositeDisposablePrototype.remove = function (item) {
                                                                                                                                                var shouldDispose = false;
                                                                                                                                                if (!this.isDisposed) {
                                                                                                                                                var idx = this.disposables.indexOf(item);
                                                                                                                                                if (idx !== -1) {
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 3 other locations - About 4 hrs to fix
                                                                                                                                                modules/rx-core/rx.core.js on lines 257..269
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 644..656
                                                                                                                                                src/core/disposables/compositedisposable.js on lines 39..51

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

                                                                                                                                                NAryDisposable.prototype.dispose = function () {
                                                                                                                                                if (!this.isDisposed) {
                                                                                                                                                this.isDisposed = true;
                                                                                                                                                for (var i = 0, len = this._disposables.length; i < len; i++) {
                                                                                                                                                this._disposables[i].dispose();
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 1 other location - About 4 hrs to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 793..801

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

                                                                                                                                                Observable.fromNodeCallback = function (fn, ctx, selector) {
                                                                                                                                                return function () {
                                                                                                                                                typeof ctx === 'undefined' && (ctx = this);
                                                                                                                                                var len = arguments.length, args = new Array(len);
                                                                                                                                                for(var i = 0; i < len; i++) { args[i] = arguments[i]; }
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 5 other locations - About 3 hrs to fix
                                                                                                                                                modules/rx-lite-compat/rx.lite.compat.js on lines 5218..5226
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 4869..4877
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 4919..4926
                                                                                                                                                src/core/perf/operators/fromcallback.js on lines 39..47
                                                                                                                                                src/core/perf/operators/fromnodecallback.js on lines 41..48

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

                                                                                                                                                Observable.fromCallback = function (fn, ctx, selector) {
                                                                                                                                                return function () {
                                                                                                                                                typeof ctx === 'undefined' && (ctx = this);
                                                                                                                                                 
                                                                                                                                                var len = arguments.length, args = new Array(len)
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 5 other locations - About 3 hrs to fix
                                                                                                                                                modules/rx-lite-compat/rx.lite.compat.js on lines 5268..5275
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 4869..4877
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 4919..4926
                                                                                                                                                src/core/perf/operators/fromcallback.js on lines 39..47
                                                                                                                                                src/core/perf/operators/fromnodecallback.js on lines 41..48

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

                                                                                                                                                var SkipWhileObservable = (function (__super__) {
                                                                                                                                                inherits(SkipWhileObservable, __super__);
                                                                                                                                                function SkipWhileObservable(source, fn) {
                                                                                                                                                this.source = source;
                                                                                                                                                this._fn = fn;
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 5 other locations - About 3 hrs to fix
                                                                                                                                                modules/rx-lite-compat/rx.lite.compat.js on lines 5064..5077
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 4614..4627
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 4715..4728
                                                                                                                                                src/core/linq/observable/skipwhile.js on lines 1..14
                                                                                                                                                src/core/linq/observable/takewhile.js on lines 1..14

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

                                                                                                                                                var TakeWhileObservable = (function (__super__) {
                                                                                                                                                inherits(TakeWhileObservable, __super__);
                                                                                                                                                function TakeWhileObservable(source, fn) {
                                                                                                                                                this.source = source;
                                                                                                                                                this._fn = fn;
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 5 other locations - About 3 hrs to fix
                                                                                                                                                modules/rx-lite-compat/rx.lite.compat.js on lines 4963..4976
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 4614..4627
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 4715..4728
                                                                                                                                                src/core/linq/observable/skipwhile.js on lines 1..14
                                                                                                                                                src/core/linq/observable/takewhile.js on lines 1..14

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

                                                                                                                                                var observableFrom = Observable.from = function (iterable, mapFn, thisArg, scheduler) {
                                                                                                                                                if (iterable == null) {
                                                                                                                                                throw new Error('iterable cannot be null.')
                                                                                                                                                }
                                                                                                                                                if (mapFn && !isFunction(mapFn)) {
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 3 hrs to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 2367..2379
                                                                                                                                                src/core/perf/operators/from.js on lines 130..142

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

                                                                                                                                                observableProto.pluck = function () {
                                                                                                                                                var len = arguments.length, args = new Array(len);
                                                                                                                                                if (len === 0) { throw new Error('List of properties cannot be empty.'); }
                                                                                                                                                for(var i = 0; i < len; i++) { args[i] = arguments[i]; }
                                                                                                                                                return this.map(plucker(args, len));
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 3 hrs to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 4556..4561
                                                                                                                                                src/core/linq/observable/pluck.js on lines 22..27

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

                                                                                                                                                InnerSubscription.prototype.dispose = function () {
                                                                                                                                                if (!this._s.isDisposed && this._o !== null) {
                                                                                                                                                var idx = this._s.observers.indexOf(this._o);
                                                                                                                                                this._s.observers.splice(idx, 1);
                                                                                                                                                this._o = null;
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 3 hrs to fix
                                                                                                                                                modules/rx-core-binding/rx.core.binding.js on lines 304..310
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 6559..6565

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

                                                                                                                                                function observableTimerTimeSpanAndPeriod(dueTime, period, scheduler) {
                                                                                                                                                return dueTime === period ?
                                                                                                                                                new AnonymousObservable(function (observer) {
                                                                                                                                                return scheduler.schedulePeriodic(0, period, function (count) {
                                                                                                                                                observer.onNext(count);
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 1 other location - About 3 hrs to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 5448..5459

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

                                                                                                                                                var ScheduledItem = Rx.internals.ScheduledItem = function (scheduler, state, action, dueTime, comparer) {
                                                                                                                                                this.scheduler = scheduler;
                                                                                                                                                this.state = state;
                                                                                                                                                this.action = action;
                                                                                                                                                this.dueTime = dueTime;
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 3 other locations - About 3 hrs to fix
                                                                                                                                                modules/rx-core/rx.core.js on lines 416..423
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 861..868
                                                                                                                                                src/core/concurrency/scheduleditem.js on lines 1..8

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

                                                                                                                                                var MaterializeObservable = (function (__super__) {
                                                                                                                                                inherits(MaterializeObservable, __super__);
                                                                                                                                                function MaterializeObservable(source, fn) {
                                                                                                                                                this.source = source;
                                                                                                                                                __super__.call(this);
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 3 hrs to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 4045..4057
                                                                                                                                                src/core/linq/observable/materialize.js on lines 1..13

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

                                                                                                                                                SerialDisposable.prototype.setDisposable = function (value) {
                                                                                                                                                var shouldDispose = this.isDisposed;
                                                                                                                                                if (!shouldDispose) {
                                                                                                                                                var old = this.current;
                                                                                                                                                this.current = value;
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 3 other locations - About 3 hrs to fix
                                                                                                                                                modules/rx-core/rx.core.js on lines 365..373
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 752..760
                                                                                                                                                src/core/disposables/booleandisposable.js on lines 32..40

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

                                                                                                                                                observableProto.concat = function () {
                                                                                                                                                for(var args = [], i = 0, len = arguments.length; i < len; i++) { args.push(arguments[i]); }
                                                                                                                                                args.unshift(this);
                                                                                                                                                return observableConcat.apply(null, args);
                                                                                                                                                };
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 2 hrs to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 2857..2861
                                                                                                                                                src/core/linq/observable/concatproto.js on lines 5..9

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

                                                                                                                                                Observable.ofWithScheduler = function (scheduler) {
                                                                                                                                                var len = arguments.length, args = new Array(len - 1);
                                                                                                                                                for(var i = 1; i < len; i++) { args[i - 1] = arguments[i]; }
                                                                                                                                                return new FromArrayObservable(args, scheduler);
                                                                                                                                                };
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 2 hrs to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 2462..2466
                                                                                                                                                src/core/perf/operators/of.js on lines 21..25

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

                                                                                                                                                observableProto.debounce = function () {
                                                                                                                                                if (isFunction (arguments[0])) {
                                                                                                                                                return debounceWithSelector(this, arguments[0]);
                                                                                                                                                } else if (typeof arguments[0] === 'number') {
                                                                                                                                                return new DebounceObservable(this, arguments[0], arguments[1]);
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 2 hrs to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 5762..5770
                                                                                                                                                src/core/linq/observable/debounce.js on lines 115..123

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

                                                                                                                                                Observable.of = function () {
                                                                                                                                                var len = arguments.length, args = new Array(len);
                                                                                                                                                for(var i = 0; i < len; i++) { args[i] = arguments[i]; }
                                                                                                                                                return new FromArrayObservable(args, currentThreadScheduler);
                                                                                                                                                };
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 2 hrs to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 2451..2455
                                                                                                                                                src/core/perf/operators/of.js on lines 10..14

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

                                                                                                                                                priorityProto.remove = function (item) {
                                                                                                                                                for (var i = 0; i < this.length; i++) {
                                                                                                                                                if (this.items[i].value === item) {
                                                                                                                                                this.removeAt(i);
                                                                                                                                                return true;
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 3 other locations - About 2 hrs to fix
                                                                                                                                                modules/rx-core/rx.core.js on lines 972..980
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 1417..1425
                                                                                                                                                src/core/internal/priorityqueue.js on lines 74..82

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

                                                                                                                                                observableProto.map = observableProto.select = function (selector, thisArg) {
                                                                                                                                                var selectorFn = typeof selector === 'function' ? selector : function () { return selector; };
                                                                                                                                                return this instanceof MapObservable ?
                                                                                                                                                this.internalMap(selectorFn, thisArg) :
                                                                                                                                                new MapObservable(this, selectorFn, thisArg);
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 2 hrs to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 4528..4533
                                                                                                                                                src/core/perf/operators/map.js on lines 55..60

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

                                                                                                                                                var ImmediateScheduler = (function (__super__) {
                                                                                                                                                inherits(ImmediateScheduler, __super__);
                                                                                                                                                function ImmediateScheduler() {
                                                                                                                                                __super__.call(this);
                                                                                                                                                }
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 3 other locations - About 2 hrs to fix
                                                                                                                                                modules/rx-core/rx.core.js on lines 632..643
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 1046..1057
                                                                                                                                                src/core/concurrency/immediatescheduler.js on lines 2..13

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

                                                                                                                                                SingleAssignmentDisposable.prototype.dispose = function () {
                                                                                                                                                if (!this.isDisposed) {
                                                                                                                                                this.isDisposed = true;
                                                                                                                                                var old = this.current;
                                                                                                                                                this.current = null;
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 3 other locations - About 2 hrs to fix
                                                                                                                                                modules/rx-core/rx.core.js on lines 348..355
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 735..742
                                                                                                                                                src/core/disposables/booleandisposable.js on lines 15..22

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

                                                                                                                                                SerialDisposable.prototype.dispose = function () {
                                                                                                                                                if (!this.isDisposed) {
                                                                                                                                                this.isDisposed = true;
                                                                                                                                                var old = this.current;
                                                                                                                                                this.current = null;
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 3 other locations - About 2 hrs to fix
                                                                                                                                                modules/rx-core/rx.core.js on lines 374..381
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 761..768
                                                                                                                                                src/core/disposables/booleandisposable.js on lines 41..48

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

                                                                                                                                                observableProto.replay = function (selector, bufferSize, windowSize, scheduler) {
                                                                                                                                                return selector && isFunction(selector) ?
                                                                                                                                                this.multicast(function () { return new ReplaySubject(bufferSize, windowSize, scheduler); }, selector) :
                                                                                                                                                this.multicast(new ReplaySubject(bufferSize, windowSize, scheduler));
                                                                                                                                                };
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 2 hrs to fix
                                                                                                                                                modules/rx-core-binding/rx.core.binding.js on lines 209..213
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 5307..5311

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

                                                                                                                                                observableProto.controlled = function (enableQueue, scheduler) {
                                                                                                                                                 
                                                                                                                                                if (enableQueue && isScheduler(enableQueue)) {
                                                                                                                                                scheduler = enableQueue;
                                                                                                                                                enableQueue = true;
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 1 other location - About 2 hrs to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 6383..6392

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

                                                                                                                                                function isInternalFrame(stackLine) {
                                                                                                                                                var fileNameAndLineNumber = getFileNameAndLineNumber(stackLine);
                                                                                                                                                if (!fileNameAndLineNumber) {
                                                                                                                                                return false;
                                                                                                                                                }
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 3 other locations - About 2 hrs to fix
                                                                                                                                                modules/rx-core/rx.core.js on lines 138..148
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 128..138
                                                                                                                                                src/core/longstacktraces/longstacktraces.js on lines 38..48

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

                                                                                                                                                priorityProto.removeAt = function (index) {
                                                                                                                                                this.items[index] = this.items[--this.length];
                                                                                                                                                this.items[this.length] = undefined;
                                                                                                                                                this.heapify();
                                                                                                                                                };
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 3 other locations - About 2 hrs to fix
                                                                                                                                                modules/rx-core/rx.core.js on lines 954..958
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 1399..1403
                                                                                                                                                src/core/internal/priorityqueue.js on lines 56..60

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

                                                                                                                                                var inherits = Rx.internals.inherits = function (child, parent) {
                                                                                                                                                function __() { this.constructor = child; }
                                                                                                                                                __.prototype = parent.prototype;
                                                                                                                                                child.prototype = new __();
                                                                                                                                                };
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 3 other locations - About 1 hr to fix
                                                                                                                                                modules/rx-core/rx.core.js on lines 188..192
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 575..579
                                                                                                                                                src/core/internal/util.js on lines 4..8

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

                                                                                                                                                observableProto.publishValue = function (initialValueOrSelector, initialValue) {
                                                                                                                                                return arguments.length === 2 ?
                                                                                                                                                this.multicast(function () {
                                                                                                                                                return new BehaviorSubject(initialValue);
                                                                                                                                                }, initialValueOrSelector) :
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 1 hr to fix
                                                                                                                                                modules/rx-core-binding/rx.core.binding.js on lines 175..181
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 5273..5279

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

                                                                                                                                                observableProto.doOnError = observableProto.tapOnError = function (onError, thisArg) {
                                                                                                                                                return this.tap(noop, typeof thisArg !== 'undefined' ? function (e) { onError.call(thisArg, e); } : onError);
                                                                                                                                                };
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 1 hr to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 3935..3937
                                                                                                                                                src/core/perf/operators/tap.js on lines 73..75

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

                                                                                                                                                function transformForObserver(o) {
                                                                                                                                                return {
                                                                                                                                                '@@transducer/init': function() {
                                                                                                                                                return o;
                                                                                                                                                },
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 1 hr to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 6448..6460
                                                                                                                                                src/core/linq/observable/transduce.js on lines 23..35

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

                                                                                                                                                observableProto.doOnNext = observableProto.tapOnNext = function (onNext, thisArg) {
                                                                                                                                                return this.tap(typeof thisArg !== 'undefined' ? function (x) { onNext.call(thisArg, x); } : onNext);
                                                                                                                                                };
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 1 hr to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 3924..3926
                                                                                                                                                src/core/perf/operators/tap.js on lines 62..64

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

                                                                                                                                                observableProto.transduce = function(transducer) {
                                                                                                                                                var source = this;
                                                                                                                                                return new AnonymousObservable(function(o) {
                                                                                                                                                var xform = transducer(transformForObserver(o));
                                                                                                                                                return source.subscribe(new TransduceObserver(o, xform));
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 1 hr to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 6467..6473
                                                                                                                                                src/core/linq/observable/transduce.js on lines 42..48

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

                                                                                                                                                var NeverObservable = (function(__super__) {
                                                                                                                                                inherits(NeverObservable, __super__);
                                                                                                                                                function NeverObservable() {
                                                                                                                                                __super__.call(this);
                                                                                                                                                }
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 1 hr to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 2419..2430
                                                                                                                                                src/core/perf/operators/never.js on lines 1..12

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

                                                                                                                                                CompositeDisposablePrototype.add = function (item) {
                                                                                                                                                if (this.isDisposed) {
                                                                                                                                                item.dispose();
                                                                                                                                                } else {
                                                                                                                                                this.disposables.push(item);
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 3 other locations - About 1 hr to fix
                                                                                                                                                modules/rx-core/rx.core.js on lines 243..250
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 630..637
                                                                                                                                                src/core/disposables/compositedisposable.js on lines 25..32

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

                                                                                                                                                function cloneArray(arr) {
                                                                                                                                                var len = arr.length, a = new Array(len);
                                                                                                                                                for(var i = 0; i < len; i++) { a[i] = arr[i]; }
                                                                                                                                                return a;
                                                                                                                                                }
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 4 other locations - About 1 hr to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 56..60
                                                                                                                                                src/core/headers/basicheader-compat.js on lines 24..28
                                                                                                                                                src/core/headers/liteheader-compat.js on lines 26..30
                                                                                                                                                src/core/headers/liteheader.js on lines 26..30

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

                                                                                                                                                if (!Object.prototype.propertyIsEnumerable) {
                                                                                                                                                Object.prototype.propertyIsEnumerable = function (key) {
                                                                                                                                                for (var k in this) { if (k === key) { return true; } }
                                                                                                                                                return false;
                                                                                                                                                };
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 1 other location - About 1 hr to fix
                                                                                                                                                src/core/internal/polyfills.js on lines 134..139

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

                                                                                                                                                var observerCreate = Observer.create = function (onNext, onError, onCompleted) {
                                                                                                                                                onNext || (onNext = noop);
                                                                                                                                                onError || (onError = defaultError);
                                                                                                                                                onCompleted || (onCompleted = noop);
                                                                                                                                                return new AnonymousObserver(onNext, onError, onCompleted);
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 3 other locations - About 1 hr to fix
                                                                                                                                                modules/rx-core/rx.core.js on lines 995..1000
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 1581..1586
                                                                                                                                                src/core/observer.js on lines 41..46

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

                                                                                                                                                observableProto.publish = function (selector) {
                                                                                                                                                return selector && isFunction(selector) ?
                                                                                                                                                this.multicast(function () { return new Subject(); }, selector) :
                                                                                                                                                this.multicast(new Subject());
                                                                                                                                                };
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 5 other locations - About 1 hr to fix
                                                                                                                                                modules/rx-core-binding/rx.core.binding.js on lines 131..135
                                                                                                                                                modules/rx-core-binding/rx.core.binding.js on lines 157..161
                                                                                                                                                modules/rx-lite-compat/rx.lite.compat.js on lines 5604..5608
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 5229..5233
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 5255..5259

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

                                                                                                                                                observableProto.doOnCompleted = observableProto.tapOnCompleted = function (onCompleted, thisArg) {
                                                                                                                                                return this.tap(noop, null, typeof thisArg !== 'undefined' ? function () { onCompleted.call(thisArg); } : onCompleted);
                                                                                                                                                };
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 1 hr to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 3946..3948
                                                                                                                                                src/core/perf/operators/tap.js on lines 84..86

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

                                                                                                                                                observableProto.publishLast = function (selector) {
                                                                                                                                                return selector && isFunction(selector) ?
                                                                                                                                                this.multicast(function () { return new AsyncSubject(); }, selector) :
                                                                                                                                                this.multicast(new AsyncSubject());
                                                                                                                                                };
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 5 other locations - About 1 hr to fix
                                                                                                                                                modules/rx-core-binding/rx.core.binding.js on lines 131..135
                                                                                                                                                modules/rx-core-binding/rx.core.binding.js on lines 157..161
                                                                                                                                                modules/rx-lite-compat/rx.lite.compat.js on lines 5578..5582
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 5229..5233
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 5255..5259

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

                                                                                                                                                priorityProto.enqueue = function (item) {
                                                                                                                                                var index = this.length++;
                                                                                                                                                this.items[index] = new IndexedItem(PriorityQueue.count++, item);
                                                                                                                                                this.percolate(index);
                                                                                                                                                };
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 3 other locations - About 1 hr to fix
                                                                                                                                                modules/rx-core/rx.core.js on lines 966..970
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 1411..1415
                                                                                                                                                src/core/internal/priorityqueue.js on lines 68..72

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

                                                                                                                                                observableProto.sample = function (intervalOrSampler, scheduler) {
                                                                                                                                                isScheduler(scheduler) || (scheduler = defaultScheduler);
                                                                                                                                                return typeof intervalOrSampler === 'number' ?
                                                                                                                                                new SampleObservable(this, observableinterval(intervalOrSampler, scheduler)) :
                                                                                                                                                new SampleObservable(this, intervalOrSampler);
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 1 hr to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 5906..5911
                                                                                                                                                src/core/linq/observable/sample.js on lines 82..87

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

                                                                                                                                                var addRef = Rx.internals.addRef = function (xs, r) {
                                                                                                                                                return new AnonymousObservable(function (observer) {
                                                                                                                                                return new BinaryDisposable(r.getDisposable(), xs.subscribe(observer));
                                                                                                                                                });
                                                                                                                                                };
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 3 other locations - About 1 hr to fix
                                                                                                                                                modules/rx-core/rx.core.js on lines 205..209
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 592..596
                                                                                                                                                src/core/internal/util.js on lines 21..25

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

                                                                                                                                                function arrayInitialize(count, factory) {
                                                                                                                                                var a = new Array(count);
                                                                                                                                                for (var i = 0; i < count; i++) {
                                                                                                                                                a[i] = factory();
                                                                                                                                                }
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 1 hr to fix
                                                                                                                                                modules/rx-core/rx.core.js on lines 211..217
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 598..604

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

                                                                                                                                                observableProto.take = function (count, scheduler) {
                                                                                                                                                if (count < 0) { throw new ArgumentOutOfRangeError(); }
                                                                                                                                                if (count === 0) { return observableEmpty(scheduler); }
                                                                                                                                                return new TakeObservable(this, count);
                                                                                                                                                };
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 1 hr to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 4709..4713
                                                                                                                                                src/core/perf/operators/take.js on lines 41..45

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

                                                                                                                                                function createNodeObservable(fn, ctx, selector, args) {
                                                                                                                                                var o = new AsyncSubject();
                                                                                                                                                 
                                                                                                                                                args.push(createNodeHandler(o, ctx, selector));
                                                                                                                                                fn.apply(ctx, args);
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 5 other locations - About 1 hr to fix
                                                                                                                                                modules/rx-lite-compat/rx.lite.compat.js on lines 5180..5187
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 4831..4838
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 4879..4886
                                                                                                                                                src/core/perf/operators/fromcallback.js on lines 1..8
                                                                                                                                                src/core/perf/operators/fromnodecallback.js on lines 1..8

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

                                                                                                                                                function createCbObservable(fn, ctx, selector, args) {
                                                                                                                                                var o = new AsyncSubject();
                                                                                                                                                 
                                                                                                                                                args.push(createCbHandler(o, ctx, selector));
                                                                                                                                                fn.apply(ctx, args);
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 5 other locations - About 1 hr to fix
                                                                                                                                                modules/rx-lite-compat/rx.lite.compat.js on lines 5228..5235
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 4831..4838
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 4879..4886
                                                                                                                                                src/core/perf/operators/fromcallback.js on lines 1..8
                                                                                                                                                src/core/perf/operators/fromnodecallback.js on lines 1..8

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

                                                                                                                                                IsDisposedDisposable.prototype.dispose = function () {
                                                                                                                                                if (!this.isDisposed) {
                                                                                                                                                this.isDisposed = true;
                                                                                                                                                this._s.isDisposed = true;
                                                                                                                                                }
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 1 hr to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 1940..1945
                                                                                                                                                src/core/enumerable.js on lines 8..13

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

                                                                                                                                                var TimeoutError = Rx.TimeoutError = function(message) {
                                                                                                                                                this.message = message || 'Timeout has occurred';
                                                                                                                                                this.name = 'TimeoutError';
                                                                                                                                                Error.call(this);
                                                                                                                                                };
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 1 hr to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 5913..5917
                                                                                                                                                src/core/linq/observable/timeout.js on lines 1..5

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

                                                                                                                                                var isObject = Rx.internals.isObject = function(value) {
                                                                                                                                                var type = typeof value;
                                                                                                                                                return !!value && (type === 'object' || type === 'function');
                                                                                                                                                };
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 3 other locations - About 1 hr to fix
                                                                                                                                                modules/rx-core-testing/rx.core.testing.js on lines 346..349
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 419..422
                                                                                                                                                src/core/internal/isequal.js on lines 146..149

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

                                                                                                                                                observableProto.filter = observableProto.where = function (predicate, thisArg) {
                                                                                                                                                return this instanceof FilterObservable ? this.internalFilter(predicate, thisArg) :
                                                                                                                                                new FilterObservable(this, predicate, thisArg);
                                                                                                                                                };
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 1 hr to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 4826..4829
                                                                                                                                                src/core/perf/operators/filter.js on lines 57..60

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

                                                                                                                                                var BinaryDisposable = Rx.BinaryDisposable = function (first, second) {
                                                                                                                                                this._first = first;
                                                                                                                                                this._second = second;
                                                                                                                                                this.isDisposed = false;
                                                                                                                                                };
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 3 other locations - About 1 hr to fix
                                                                                                                                                modules/rx-core/rx.core.js on lines 383..387
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 770..774
                                                                                                                                                src/core/disposables/binarydisposable.js on lines 1..5

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

                                                                                                                                                var observableReturn = Observable['return'] = Observable.just = function (value, scheduler) {
                                                                                                                                                isScheduler(scheduler) || (scheduler = immediateScheduler);
                                                                                                                                                return new JustObservable(value, scheduler);
                                                                                                                                                };
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 1 hr to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 2629..2632
                                                                                                                                                src/core/perf/operators/just.js on lines 33..36

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

                                                                                                                                                var observableEmpty = Observable.empty = function (scheduler) {
                                                                                                                                                isScheduler(scheduler) || (scheduler = immediateScheduler);
                                                                                                                                                return scheduler === immediateScheduler ? EMPTY_OBSERVABLE : new EmptyObservable(scheduler);
                                                                                                                                                };
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 1 hr to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 2233..2236
                                                                                                                                                src/core/perf/operators/empty.js on lines 44..47

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

                                                                                                                                                var CompositeError = Rx.CompositeError = function(errors) {
                                                                                                                                                this.innerErrors = errors;
                                                                                                                                                this.message = 'This contains multiple errors. Check the innerErrors';
                                                                                                                                                Error.call(this);
                                                                                                                                                };
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 55 mins to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 3048..3052
                                                                                                                                                src/core/linq/observable/mergedelayerror.js on lines 1..5

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

                                                                                                                                                observableProto.flatMap = observableProto.selectMany = observableProto.mergeMap = function(selector, resultSelector, thisArg) {
                                                                                                                                                return new FlatMapObservable(this, selector, resultSelector, thisArg).mergeAll();
                                                                                                                                                };
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 50 mins to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 4563..4565
                                                                                                                                                src/core/perf/operators/flatmap.js on lines 1..3

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

                                                                                                                                                function repeat(value) {
                                                                                                                                                return {
                                                                                                                                                '@@iterator': function () {
                                                                                                                                                return {
                                                                                                                                                next: function () {
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 9 other locations - About 50 mins to fix
                                                                                                                                                modules/rx-lite-compat/rx.lite.compat.js on lines 4543..4553
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 4105..4115
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 4194..4204
                                                                                                                                                src/core/linq/observable/repeatwhen.js on lines 1..11
                                                                                                                                                src/core/linq/observable/retrywhen.js on lines 1..11
                                                                                                                                                src/modular/dist/rx.all.js on lines 11710..11720
                                                                                                                                                src/modular/dist/rx.all.js on lines 12098..12108
                                                                                                                                                src/modular/observable/repeatwhen.js on lines 16..26
                                                                                                                                                src/modular/observable/retrywhen.js on lines 16..26

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

                                                                                                                                                function repeat(value) {
                                                                                                                                                return {
                                                                                                                                                '@@iterator': function () {
                                                                                                                                                return {
                                                                                                                                                next: function () {
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 9 other locations - About 50 mins to fix
                                                                                                                                                modules/rx-lite-compat/rx.lite.compat.js on lines 4454..4464
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 4105..4115
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 4194..4204
                                                                                                                                                src/core/linq/observable/repeatwhen.js on lines 1..11
                                                                                                                                                src/core/linq/observable/retrywhen.js on lines 1..11
                                                                                                                                                src/modular/dist/rx.all.js on lines 11710..11720
                                                                                                                                                src/modular/dist/rx.all.js on lines 12098..12108
                                                                                                                                                src/modular/observable/repeatwhen.js on lines 16..26
                                                                                                                                                src/modular/observable/retrywhen.js on lines 16..26

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

                                                                                                                                                var Disposable = Rx.Disposable = function (action) {
                                                                                                                                                this.isDisposed = false;
                                                                                                                                                this.action = action || noop;
                                                                                                                                                };
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 3 other locations - About 50 mins to fix
                                                                                                                                                modules/rx-core/rx.core.js on lines 292..295
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 679..682
                                                                                                                                                src/core/disposables/disposable.js on lines 5..8

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

                                                                                                                                                var PriorityQueue = Rx.internals.PriorityQueue = function (capacity) {
                                                                                                                                                this.items = new Array(capacity);
                                                                                                                                                this.length = 0;
                                                                                                                                                };
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 3 other locations - About 50 mins to fix
                                                                                                                                                modules/rx-core/rx.core.js on lines 910..913
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 1355..1358
                                                                                                                                                src/core/internal/priorityqueue.js on lines 12..15

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

                                                                                                                                                priorityProto.isHigherPriority = function (left, right) {
                                                                                                                                                return this.items[left].compareTo(this.items[right]) < 0;
                                                                                                                                                };
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 3 other locations - About 40 mins to fix
                                                                                                                                                modules/rx-core/rx.core.js on lines 916..918
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 1361..1363
                                                                                                                                                src/core/internal/priorityqueue.js on lines 18..20

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

                                                                                                                                                observableProto['do'] = observableProto.tap = observableProto.doAction = function (observerOrOnNext, onError, onCompleted) {
                                                                                                                                                return new TapObservable(this, observerOrOnNext, onError, onCompleted);
                                                                                                                                                };
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 40 mins to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 3913..3915
                                                                                                                                                src/core/perf/operators/tap.js on lines 51..53

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

                                                                                                                                                var fromEventPattern = Observable.fromEventPattern = function (addHandler, removeHandler, selector) {
                                                                                                                                                return new EventPatternObservable(addHandler, removeHandler, selector).publish().refCount();
                                                                                                                                                };
                                                                                                                                                Severity: Minor
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 40 mins to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 5084..5086
                                                                                                                                                src/core/linq/observable/fromeventpattern.js on lines 51..53

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

                                                                                                                                                var NotSupportedError = Rx.NotSupportedError = function (message) {
                                                                                                                                                this.message = message || 'This operation is not supported';
                                                                                                                                                Error.call(this);
                                                                                                                                                };
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 9 other locations - About 35 mins to fix
                                                                                                                                                modules/rx-core/rx.core.js on lines 52..55
                                                                                                                                                modules/rx-core/rx.core.js on lines 58..61
                                                                                                                                                modules/rx-lite-compat/rx.lite.compat.js on lines 552..555
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 196..199
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 203..206
                                                                                                                                                src/core/headers/coreheader.js on lines 22..25
                                                                                                                                                src/core/headers/coreheader.js on lines 28..31
                                                                                                                                                src/core/internal/errors.js on lines 22..25
                                                                                                                                                src/core/internal/errors.js on lines 29..32

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

                                                                                                                                                var NotImplementedError = Rx.NotImplementedError = function (message) {
                                                                                                                                                this.message = message || 'This operation is not implemented';
                                                                                                                                                Error.call(this);
                                                                                                                                                };
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 9 other locations - About 35 mins to fix
                                                                                                                                                modules/rx-core/rx.core.js on lines 52..55
                                                                                                                                                modules/rx-core/rx.core.js on lines 58..61
                                                                                                                                                modules/rx-lite-compat/rx.lite.compat.js on lines 545..548
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 196..199
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 203..206
                                                                                                                                                src/core/headers/coreheader.js on lines 22..25
                                                                                                                                                src/core/headers/coreheader.js on lines 28..31
                                                                                                                                                src/core/internal/errors.js on lines 22..25
                                                                                                                                                src/core/internal/errors.js on lines 29..32

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

                                                                                                                                                var observableThrow = Observable['throw'] = function (error, scheduler) {
                                                                                                                                                isScheduler(scheduler) || (scheduler = immediateScheduler);
                                                                                                                                                return new ThrowObservable(error, scheduler);
                                                                                                                                                };
                                                                                                                                                Severity: Minor
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 35 mins to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 2665..2668
                                                                                                                                                src/core/perf/operators/throw.js on lines 32..35

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

                                                                                                                                                var observableFromArray = Observable.fromArray = function (array, scheduler) {
                                                                                                                                                isScheduler(scheduler) || (scheduler = currentThreadScheduler);
                                                                                                                                                return new FromArrayObservable(array, scheduler)
                                                                                                                                                };
                                                                                                                                                Severity: Minor
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 35 mins to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 2414..2417
                                                                                                                                                src/core/perf/operators/fromarray.js on lines 7..10

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

                                                                                                                                                var root = freeGlobal || ((freeWindow !== (thisGlobal && thisGlobal.window)) && freeWindow) || freeSelf || thisGlobal || Function('return this')();
                                                                                                                                                Severity: Minor
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 35 mins to fix
                                                                                                                                                modules/rx-core/rx.core.js on lines 21..21
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 21..21

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

                                                                                                                                                observableProto.skipLast = function (count) {
                                                                                                                                                if (count < 0) { throw new ArgumentOutOfRangeError(); }
                                                                                                                                                return new SkipLastObservable(this, count);
                                                                                                                                                };
                                                                                                                                                Severity: Minor
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 1 other location - About 35 mins to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 4404..4407

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

                                                                                                                                                observableProto.merge = function (maxConcurrentOrOther) {
                                                                                                                                                return typeof maxConcurrentOrOther !== 'number' ?
                                                                                                                                                observableMerge(this, maxConcurrentOrOther) :
                                                                                                                                                new MergeObservable(this, maxConcurrentOrOther);
                                                                                                                                                };
                                                                                                                                                Severity: Minor
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 1 other location - About 35 mins to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 3019..3023

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

                                                                                                                                                observableProto.multicast = function (subjectOrSubjectSelector, selector) {
                                                                                                                                                return isFunction(subjectOrSubjectSelector) ?
                                                                                                                                                new MulticastObservable(this, subjectOrSubjectSelector, selector) :
                                                                                                                                                new ConnectableObservable(this, subjectOrSubjectSelector);
                                                                                                                                                };
                                                                                                                                                Severity: Minor
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 35 mins to fix
                                                                                                                                                modules/rx-core-binding/rx.core.binding.js on lines 114..118
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 5212..5216

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

                                                                                                                                                ScheduledItem.prototype.invokeCore = function () {
                                                                                                                                                return disposableFixup(this.action(this.scheduler, this.state));
                                                                                                                                                };
                                                                                                                                                Severity: Minor
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 35 mins to fix
                                                                                                                                                modules/rx-core/rx.core.js on lines 437..439
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 882..884

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

                                                                                                                                                observableProto['catch'] = function (handlerOrSecond) {
                                                                                                                                                return isFunction(handlerOrSecond) ? new CatchObservable(this, handlerOrSecond) : observableCatch([this, handlerOrSecond]);
                                                                                                                                                };
                                                                                                                                                Severity: Minor
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 1 other location - About 35 mins to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 2717..2719

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

                                                                                                                                                Observable.repeat = function (value, repeatCount, scheduler) {
                                                                                                                                                isScheduler(scheduler) || (scheduler = currentThreadScheduler);
                                                                                                                                                return new RepeatObservable(value, repeatCount, scheduler);
                                                                                                                                                };
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 5 other locations - About 30 mins to fix
                                                                                                                                                modules/rx-lite-compat/rx.lite.compat.js on lines 2893..2896
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 2544..2547
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 2592..2595
                                                                                                                                                src/core/perf/operators/range.js on lines 38..41
                                                                                                                                                src/core/perf/operators/repeat.js on lines 44..47

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

                                                                                                                                                Observable.range = function (start, count, scheduler) {
                                                                                                                                                isScheduler(scheduler) || (scheduler = currentThreadScheduler);
                                                                                                                                                return new RangeObservable(start, count, scheduler);
                                                                                                                                                };
                                                                                                                                                Severity: Major
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 5 other locations - About 30 mins to fix
                                                                                                                                                modules/rx-lite-compat/rx.lite.compat.js on lines 2941..2944
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 2544..2547
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 2592..2595
                                                                                                                                                src/core/perf/operators/range.js on lines 38..41
                                                                                                                                                src/core/perf/operators/repeat.js on lines 44..47

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

                                                                                                                                                observableProto.flatMapConcat = observableProto.concatMap = function(selector, resultSelector, thisArg) {
                                                                                                                                                return new FlatMapObservable(this, selector, resultSelector, thisArg).merge(1);
                                                                                                                                                };
                                                                                                                                                Severity: Minor
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 2 other locations - About 30 mins to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 4471..4473
                                                                                                                                                src/core/perf/operators/concatmap.js on lines 1..3

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

                                                                                                                                                var observableinterval = Observable.interval = function (period, scheduler) {
                                                                                                                                                return observableTimerTimeSpanAndPeriod(period, period, isScheduler(scheduler) ? scheduler : defaultScheduler);
                                                                                                                                                };
                                                                                                                                                Severity: Minor
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 1 other location - About 30 mins to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 5472..5474

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

                                                                                                                                                if (!Array.isArray) {
                                                                                                                                                Array.isArray = function (arg) {
                                                                                                                                                return toString.call(arg) === arrayClass;
                                                                                                                                                };
                                                                                                                                                }
                                                                                                                                                Severity: Minor
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 1 other location - About 30 mins to fix
                                                                                                                                                src/core/internal/polyfills.js on lines 98..102

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

                                                                                                                                                var observableFromPromise = Observable.fromPromise = function (promise, scheduler) {
                                                                                                                                                scheduler || (scheduler = defaultScheduler);
                                                                                                                                                return new FromPromiseObservable(promise, scheduler);
                                                                                                                                                };
                                                                                                                                                Severity: Minor
                                                                                                                                                Found in modules/rx-lite-compat/rx.lite.compat.js and 1 other location - About 30 mins to fix
                                                                                                                                                modules/rx-lite/rx.lite.js on lines 5136..5139
                                                                                                                                                Category
                                                                                                                                                Status