Reactive-Extensions/RxJS

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

Summary

Maintainability
F
3 wks
Test Coverage

Showing 6 of 6 total issues

File rx.lite.testing.js has 312 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: Minor
Found in modules/rx-lite-testing/rx.lite.testing.js - About 3 hrs to fix

    Function TestScheduler has 71 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    Rx.TestScheduler = (function (__super__) {
    inherits(TestScheduler, __super__);
     
    function baseComparer(x, y) {
    return x > y ? 1 : (x < y ? -1 : 0);
    Severity: Major
    Found in modules/rx-lite-testing/rx.lite.testing.js - About 2 hrs to fix

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

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

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

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

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

          MockPromise.prototype.then = function (onResolved, onRejected) {
          var self = this;
           
          this.subscriptions.push(new Subscription(this.scheduler.clock));
          var index = this.subscriptions.length - 1;
          Severity: Minor
          Found in modules/rx-lite-testing/rx.lite.testing.js - About 1 hr 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-testing/rx.lite.testing.js and 1 other location - About 3 wks to fix
            modules/rx-lite-testing-compat/rx.lite.testing.compat.js on lines 3..508

            There are no issues that match your filters.

            Category
            Status