Reactive-Extensions/RxJS

View on GitHub

Showing 1,013 of 2,890 total issues

Function stroke has 143 lines of code (exceeds 25 allowed). Consider refactoring.
Open

contextPrototype.stroke = function(aFill) {
var lineStr = [];
var lineOpen = false;
var a = processStyle(aFill ? this.fillStyle : this.strokeStyle);
var color = a.color;
Severity: Major
Found in examples/canvaspaint/excanvas_src.js - About 5 hrs to fix

    Function d3_geo_clipExtent has 132 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function d3_geo_clipExtent(x0, y0, x1, y1) {
    return function(listener) {
    var listener_ = listener, bufferListener = d3_geo_clipBufferListener(), clipLine = d3_geom_clipLine(x0, y0, x1, y1), segments, polygon, ring;
    var clip = {
    point: point,
    Severity: Major
    Found in examples/assets/d3/d3.js - About 5 hrs to fix

      Function bounds has 126 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      d3.geo.bounds = function() {
      var λ0, φ0, λ1, φ1, λ_, λ__, φ__, p0, dλSum, ranges, range;
      var bound = {
      point: point,
      lineStart: lineStart,
      Severity: Major
      Found in examples/assets/d3/d3.js - About 5 hrs to fix

        Function equiv has 126 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        QUnit.equiv = (function() {
         
        // Call the o related callback with the given arguments.
        function bindCallbacks( o, callbacks, args ) {
        var prop = QUnit.objectType( o );
        Severity: Major
        Found in examples/testing/qunit/qunit.js - About 5 hrs to fix

          Function axis has 122 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          d3.svg.axis = function() {
          var scale = d3.scale.linear(), orient = d3_svg_axisDefaultOrient, innerTickSize = 6, outerTickSize = 6, tickPadding = 3, tickArguments_ = [ 10 ], tickValues = null, tickFormat_;
          function axis(g) {
          g.each(function() {
          var g = d3.select(this);
          Severity: Major
          Found in examples/assets/d3/d3.js - About 4 hrs to fix

            Function ReporterView has 119 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            jasmine.HtmlReporter.ReporterView = function(dom) {
            this.startedAt = new Date();
            this.runningSpecCount = 0;
            this.completeSpecCount = 0;
            this.passedCount = 0;
            Severity: Major
            Found in examples/testing/jasmine/lib/jasmine-1.3.1/jasmine-html.js - About 4 hrs to fix

              Function ReporterView has a Cognitive Complexity of 32 (exceeds 5 allowed). Consider refactoring.
              Open

              jasmine.HtmlReporter.ReporterView = function(dom) {
              this.startedAt = new Date();
              this.runningSpecCount = 0;
              this.completeSpecCount = 0;
              this.passedCount = 0;
              Severity: Minor
              Found in examples/testing/jasmine/lib/jasmine-1.3.1/jasmine-html.js - About 4 hrs to fix

              Expression has 36 functions (exceeds 20 allowed). Consider refactoring.
              Open

              class Expression {
              nodeType: ExpressionType;
               
              constructor(nodeType: ExpressionType) {
              this.nodeType = nodeType;
              Severity: Minor
              Found in src/core/expressions/compiler.ts - About 4 hrs to fix

                Function ControlledSubject has a Cognitive Complexity of 31 (exceeds 5 allowed). Consider refactoring.
                Open

                var ControlledSubject = (function (__super__) {
                inherits(ControlledSubject, __super__);
                function ControlledSubject(enableQueue, scheduler) {
                enableQueue == null && (enableQueue = true);
                 
                 
                Severity: Minor
                Found in src/core/backpressure/controlled.js - About 4 hrs to fix

                Function tree has 114 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                d3.layout.tree = function() {
                var hierarchy = d3.layout.hierarchy().sort(null).value(null), separation = d3_layout_treeSeparation, size = [ 1, 1 ], nodeSize = null;
                function tree(d, i) {
                var nodes = hierarchy.call(this, d, i), root0 = nodes[0], root1 = wrapTree(root0);
                d3_layout_hierarchyVisitAfter(root1, firstWalk), root1.parent.m = -root1.z;
                Severity: Major
                Found in examples/assets/d3/d3.js - About 4 hrs to fix

                  Function diff has 114 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  QUnit.diff = (function() {
                  function diff( o, n ) {
                  var i,
                  ns = {},
                  os = {};
                  Severity: Major
                  Found in examples/testing/qunit/qunit.js - About 4 hrs to fix

                    Function WebGLRenderer has 113 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    ut.WebGLRenderer = function(view) {
                    "use strict";
                    this.view = view;
                    this.canvas = document.createElement("canvas");
                    // Try to fetch the context
                    Severity: Major
                    Found in examples/pacman-unicode/unicodetiles/ut.WebGLRenderer.js - About 4 hrs to fix

                      Function chord has 111 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      d3.layout.chord = function() {
                      var chord = {}, chords, groups, matrix, n, padding = 0, sortGroups, sortSubgroups, sortChords;
                      function relayout() {
                      var subgroups = {}, groupSums = [], groupIndex = d3.range(n), subgroupIndex = [], k, x, x0, i, j;
                      chords = [];
                      Severity: Major
                      Found in examples/assets/d3/d3.js - About 4 hrs to fix

                        Function HtmlReporter has a Cognitive Complexity of 30 (exceeds 5 allowed). Consider refactoring.
                        Open

                        jasmine.HtmlReporter = function(_doc) {
                        var self = this;
                        var doc = _doc || window.document;
                         
                        var reporterView;
                        Severity: Minor
                        Found in examples/testing/jasmine/lib/jasmine-1.3.1/jasmine-html.js - About 4 hrs to fix

                        Function HtmlReporter has 107 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        jasmine.HtmlReporter = function(_doc) {
                        var self = this;
                        var doc = _doc || window.document;
                         
                        var reporterView;
                        Severity: Major
                        Found in examples/testing/jasmine/lib/jasmine-1.3.1/jasmine-html.js - About 4 hrs to fix

                          Function Expression has 107 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          var Expression = (function () {
                          function Expression(nodeType) {
                          this.nodeType = nodeType;
                          }
                          Expression.prototype.accept = function (visitor) {
                          Severity: Major
                          Found in src/core/expressions/compiler.js - About 4 hrs to fix

                            Function update has a Cognitive Complexity of 29 (exceeds 5 allowed). Consider refactoring.
                            Open

                            ut.Engine.prototype.update = function(x, y) {
                            "use strict";
                            x = x || 0;
                            y = y || 0;
                            // World coords of upper left corner of the viewport
                            Severity: Minor
                            Found in examples/pacman-unicode/unicodetiles/unicodetiles.js - About 4 hrs to fix

                            Function next_ has a Cognitive Complexity of 29 (exceeds 5 allowed). Consider refactoring.
                            Open

                            jasmine.Queue.prototype.next_ = function() {
                            var self = this;
                            var goAgain = true;
                             
                            while (goAgain) {
                            Severity: Minor
                            Found in examples/testing/jasmine/lib/jasmine-1.3.1/jasmine.js - About 4 hrs to fix

                            Function brushstart has 106 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            function brushstart() {
                            var target = this, eventTarget = d3.select(d3.event.target), event_ = event.of(target, arguments), g = d3.select(target), resizing = eventTarget.datum(), resizingX = !/^(n|s)$/.test(resizing) && x, resizingY = !/^(e|w)$/.test(resizing) && y, dragging = eventTarget.classed("extent"), dragRestore = d3_event_dragSuppress(), center, origin = d3.mouse(target), offset;
                            var w = d3.select(d3_window).on("keydown.brush", keydown).on("keyup.brush", keyup);
                            if (d3.event.changedTouches) {
                            w.on("touchmove.brush", brushmove).on("touchend.brush", brushend);
                            Severity: Major
                            Found in examples/assets/d3/d3.js - About 4 hrs to fix

                              Function render has a Cognitive Complexity of 28 (exceeds 5 allowed). Consider refactoring.
                              Open

                              ut.WebGLRenderer.prototype.render = function() {
                              "use strict";
                              var gl = this.gl;
                              gl.clear(gl.COLOR_BUFFER_BIT);
                              var attribs = this.attribs;
                              Severity: Minor
                              Found in examples/pacman-unicode/unicodetiles/ut.WebGLRenderer.js - About 4 hrs to fix
                              Severity
                              Category
                              Status
                              Source
                              Language