Reactive-Extensions/RxJS

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

Summary

Maintainability
F
1 mo
Test Coverage

Showing 11 of 11 total issues

File rx.lite.time.js has 563 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-time/rx.lite.time.js - About 1 day to fix

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

    observableProto.windowWithTime = observableProto.windowTime = function (timeSpan, timeShiftOrScheduler, scheduler) {
    var source = this, timeShift;
    timeShiftOrScheduler == null && (timeShift = timeSpan);
    isScheduler(scheduler) || (scheduler = defaultScheduler);
    if (typeof timeShiftOrScheduler === 'number') {
    Severity: Major
    Found in modules/rx-lite-time/rx.lite.time.js - About 2 hrs to fix

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

      observableProto.windowWithTimeOrCount = observableProto.windowTimeOrCount = function (timeSpan, count, scheduler) {
      var source = this;
      isScheduler(scheduler) || (scheduler = defaultScheduler);
      return new AnonymousObservable(function (observer) {
      var timerD = new SerialDisposable(),
      Severity: Minor
      Found in modules/rx-lite-time/rx.lite.time.js - About 1 hr to fix

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

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

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

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

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

            function createTimer () {
            var m = new SingleAssignmentDisposable(),
            isSpan = false,
            isShift = false;
            timerD.setDisposable(m);
            Severity: Minor
            Found in modules/rx-lite-time/rx.lite.time.js - About 1 hr to fix

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

              function GenerateRelativeObservable(state, cndFn, itrFn, resFn, timeFn, s) {
              Severity: Minor
              Found in modules/rx-lite-time/rx.lite.time.js - About 45 mins to fix

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

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

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

                  function GenerateAbsoluteObservable(state, cndFn, itrFn, resFn, timeFn, s) {
                  Severity: Minor
                  Found in modules/rx-lite-time/rx.lite.time.js - About 45 mins to fix

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

                    Observable.generateWithRelativeTime = function (initialState, condition, iterate, resultSelector, timeSelector, scheduler) {
                    Severity: Minor
                    Found in modules/rx-lite-time/rx.lite.time.js - About 45 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-time/rx.lite.time.js and 1 other location - About 1 mo to fix
                      modules/rx-lite-time-compat/rx.lite.time.compat.js on lines 3..815

                      There are no issues that match your filters.

                      Category
                      Status