Reactive-Extensions/RxJS

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

Summary

Maintainability
F
1 mo
Test Coverage

Showing 8 of 8 total issues

File rx.lite.extras.js has 572 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 (factory) {
var objectTypes = {
'function': true,
Severity: Major
Found in modules/rx-lite-extras/rx.lite.extras.js - About 1 day to fix

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

    observableProto.amb = function (rightSource) {
    var leftSource = this;
    return new AnonymousObservable(function (observer) {
    var choice,
    leftChoice = 'L', rightChoice = 'R',
    Severity: Major
    Found in modules/rx-lite-extras/rx.lite.extras.js - About 2 hrs to fix

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

      var GenerateObservable = (function (__super__) {
      inherits(GenerateObservable, __super__);
      function GenerateObservable(state, cndFn, itrFn, resFn, s) {
      this._initialState = state;
      this._cndFn = cndFn;
      Severity: Minor
      Found in modules/rx-lite-extras/rx.lite.extras.js - About 1 hr to fix

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

        observableProto.windowWithCount = observableProto.windowCount = function (count, skip) {
        var source = this;
        +count || (count = 0);
        Math.abs(count) === Infinity && (count = 0);
        if (count <= 0) { throw new ArgumentOutOfRangeError(); }
        Severity: Minor
        Found in modules/rx-lite-extras/rx.lite.extras.js - About 1 hr to fix

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

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

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

            function GenerateObservable(state, cndFn, itrFn, resFn, s) {
            Severity: Minor
            Found in modules/rx-lite-extras/rx.lite.extras.js - About 35 mins to fix

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

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

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

                ;(function (factory) {
                var objectTypes = {
                'function': true,
                'object': true
                };
                Severity: Major
                Found in modules/rx-lite-extras/rx.lite.extras.js and 1 other location - About 1 mo to fix
                modules/rx-lite-extras-compat/rx.lite.extras.compat.js on lines 3..806
                Category
                Status