Reactive-Extensions/RxJS

View on GitHub

Showing 1,013 of 2,890 total issues

Function LambdaCompiler has a Cognitive Complexity of 25 (exceeds 5 allowed). Consider refactoring.
Open

var LambdaCompiler = (function (_super) {
__extends(LambdaCompiler, _super);
function LambdaCompiler() {
_super.call(this);
this._stack = new Array();
Severity: Minor
Found in src/core/expressions/compiler.js - About 3 hrs to fix

File binding.js has 314 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/**
* Inspired by Knockout.js and RxJS-Splash
*/
(function (root, factory) {
var freeExports = typeof exports == 'object' && exports,
Severity: Minor
Found in examples/databinding/binding.js - About 3 hrs to fix

    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

      File rx.lite.testing.compat.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-compat/rx.lite.testing.compat.js - About 3 hrs to fix

        Function remove has 87 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        remove: function(node) {
        if (node.N) node.N.P = node.P;
        if (node.P) node.P.N = node.N;
        node.N = node.P = null;
        var parent = node.U, sibling, left = node.L, right = node.R, next, red;
        Severity: Major
        Found in examples/assets/d3/d3.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 src/core/backpressure/controlled.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 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/rx.lite.js - About 3 hrs to fix

                Function finish has 82 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                finish: function() {
                config.current = this;
                if ( config.requireExpects && this.expected == null ) {
                QUnit.pushFailure( "Expected number of assertions to be defined, but expect() was not called.", this.stack );
                } else if ( this.expected != null && this.expected != this.assertions.length ) {
                Severity: Major
                Found in examples/testing/qunit/qunit.js - About 3 hrs to fix

                  Function AsciiGraphic has 80 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  function AsciiGraphic(data, blockSize, wall, position) {
                  wall || (wall = blockSize);
                  position || (position = new Game.Point(0, 0));
                  var width = data[0].length,
                  height = data.length,
                  Severity: Major
                  Found in examples/worzone/asciigraphic.js - About 3 hrs to fix

                    Function data has 80 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    d3_selectionPrototype.data = function(value, key) {
                    var i = -1, n = this.length, group, node;
                    if (!arguments.length) {
                    value = new Array(n = (group = this[0]).length);
                    while (++i < n) {
                    Severity: Major
                    Found in examples/assets/d3/d3.js - About 3 hrs to fix

                      Function drawImage has 77 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      contextPrototype.drawImage = function(image, var_args) {
                      var dx, dy, dw, dh, sx, sy, sw, sh;
                       
                      // to find the original width we overide the width and height
                      var oldRuntimeWidth = image.runtimeStyle.width;
                      Severity: Major
                      Found in examples/canvaspaint/excanvas_src.js - About 3 hrs to fix

                        Function albersUsa has 76 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        d3.geo.albersUsa = function() {
                        var lower48 = d3.geo.albers();
                        var alaska = d3.geo.conicEqualArea().rotate([ 154, 0 ]).center([ -2, 58.5 ]).parallels([ 55, 65 ]);
                        var hawaii = d3.geo.conicEqualArea().rotate([ 157, 0 ]).center([ -3, 19.9 ]).parallels([ 8, 18 ]);
                        var point, pointStream = {
                        Severity: Major
                        Found in examples/assets/d3/d3.js - About 3 hrs to fix

                          Function d3_geo_resample has 76 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          function d3_geo_resample(project) {
                          var δ2 = .5, cosMinDistance = Math.cos(30 * d3_radians), maxDepth = 16;
                          function resample(stream) {
                          return (maxDepth ? resampleRecursive : resampleNone)(stream);
                          }
                          Severity: Major
                          Found in examples/assets/d3/d3.js - About 3 hrs to fix

                            Function d3_scale_ordinal has 74 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            function d3_scale_ordinal(domain, ranger) {
                            var index, range, rangeBand;
                            function scale(x) {
                            return range[((index.get(x) || (ranger.t === "range" ? index.set(x, domain.push(x)) : NaN)) - 1) % range.length];
                            }
                            Severity: Major
                            Found in examples/assets/d3/d3.js - About 2 hrs to fix

                              Function d3_locale_numberFormat has 74 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                              function d3_locale_numberFormat(locale) {
                              var locale_decimal = locale.decimal, locale_thousands = locale.thousands, locale_grouping = locale.grouping, locale_currency = locale.currency, formatGroup = locale_grouping ? function(value) {
                              var i = value.length, t = [], j = 0, g = locale_grouping[0];
                              while (i > 0 && g > 0) {
                              t.push(value.substring(i -= g, i + g));
                              Severity: Major
                              Found in examples/assets/d3/d3.js - About 2 hrs to fix

                                Function groupJoin has 74 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                observableProto.groupJoin = function (right, leftDurationSelector, rightDurationSelector, resultSelector) {
                                var left = this;
                                return new AnonymousObservable(function (o) {
                                var group = new CompositeDisposable();
                                var r = new RefCountDisposable(group);
                                Severity: Major
                                Found in src/core/linq/observable/groupjoin.js - About 2 hrs to fix

                                  Function groupJoin has 74 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  observableProto.groupJoin = function (right, leftDurationSelector, rightDurationSelector, resultSelector) {
                                  var left = this;
                                  return new AnonymousObservable(function (o) {
                                  var group = new CompositeDisposable();
                                  var r = new RefCountDisposable(group);
                                  Severity: Major
                                  Found in modules/rx-lite-coincidence-compat/rx.lite.coincidence.compat.js - About 2 hrs to fix

                                    Function groupJoin has 74 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                    observableProto.groupJoin = function (right, leftDurationSelector, rightDurationSelector, resultSelector) {
                                    var left = this;
                                    return new AnonymousObservable(function (o) {
                                    var group = new CompositeDisposable();
                                    var r = new RefCountDisposable(group);
                                    Severity: Major
                                    Found in modules/rx-lite-coincidence/rx.lite.coincidence.js - About 2 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 src/core/subjects/asyncsubject.js - About 2 hrs to fix
                                        Severity
                                        Category
                                        Status
                                        Source
                                        Language