dhgwilliam/google-voice-stats

View on GitHub

Showing 371 of 371 total issues

Function support has 159 lines of code (exceeds 25 allowed). Consider refactoring.
Open

jQuery.support = (function() {

    var support,
        all,
        a,
Severity: Major
Found in public/js/jquery.js - About 6 hrs to fix

    Function path has 151 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      d3.geo.path = function() {
        function path(d, i) {
          if (typeof pointRadius === "function") pointCircle = d3_path_circle(pointRadius.apply(this, arguments));
          pathType(d);
          var result = buffer.length ? buffer.join("") : null;
    Severity: Major
    Found in public/js/d3.v2.js - About 6 hrs to fix

      Function Callbacks has 148 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      jQuery.Callbacks = function( flags ) {
      
          // Convert flags from String-formatted to Object-formatted
          // (we check in cache first)
          flags = flags ? ( flagsCache[ flags ] || createFlags( flags ) ) : {};
      Severity: Major
      Found in public/js/jquery.js - About 5 hrs to fix

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

          d3_selectionPrototype.html = function(value) {
            return arguments.length < 1 ? this.node().innerHTML : this.each(typeof value === "function" ? function() {
              var v = value.apply(this, arguments);
              this.innerHTML = v == null ? "" : v;
            } : value == null ? function() {
        Severity: Major
        Found in public/js/d3.v2.js and 1 other location - About 5 hrs to fix
        public/js/d3.v2.js on lines 3679..3688

        Duplicated Code

        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

        Tuning

        This issue has a mass of 149.

        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

        Refactorings

        Further Reading

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

          d3_selectionPrototype.text = function(value) {
            return arguments.length < 1 ? this.node().textContent : this.each(typeof value === "function" ? function() {
              var v = value.apply(this, arguments);
              this.textContent = v == null ? "" : v;
            } : value == null ? function() {
        Severity: Major
        Found in public/js/d3.v2.js and 1 other location - About 5 hrs to fix
        public/js/d3.v2.js on lines 3689..3698

        Duplicated Code

        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

        Tuning

        This issue has a mass of 149.

        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

        Refactorings

        Further Reading

        Function treemap has 140 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          d3.layout.treemap = function() {
            function scale(children, k) {
              var i = -1, n = children.length, child, area;
              while (++i < n) {
                area = (child = children[i]).value * (k < 0 ? 0 : k);
        Severity: Major
        Found in public/js/d3.v2.js - About 5 hrs to fix

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

                  if (x) {
                    x0 = z[0][0], x1 = z[1][0];
                    if (!extentDomain) {
                      x0 = extent[0][0], x1 = extent[1][0];
                      if (x.invert) x0 = x.invert(x0), x1 = x.invert(x1);
          Severity: Major
          Found in public/js/d3.v2.js and 1 other location - About 5 hrs to fix
          public/js/d3.v2.js on lines 4689..4696

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 141.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

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

                  if (y) {
                    y0 = z[0][1], y1 = z[1][1];
                    if (!extentDomain) {
                      y0 = extent[0][1], y1 = extent[1][1];
                      if (y.invert) y0 = y.invert(y0), y1 = y.invert(y1);
          Severity: Major
          Found in public/js/d3.v2.js and 1 other location - About 5 hrs to fix
          public/js/d3.v2.js on lines 4681..4688

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 141.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

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

            d3.svg.axis = function() {
              function axis(g) {
                g.each(function() {
                  var g = d3.select(this);
                  var ticks = tickValues == null ? scale.ticks ? scale.ticks.apply(scale, tickArguments_) : scale.domain() : tickValues, tickFormat = tickFormat_ == null ? scale.tickFormat ? scale.tickFormat.apply(scale, tickArguments_) : String : tickFormat_;
          Severity: Major
          Found in public/js/d3.v2.js - About 5 hrs to fix

            Consider simplifying this complex logical expression.
            Open

                        if ( event.pageX == null && original.clientX != null ) {
                            eventDoc = event.target.ownerDocument || document;
                            doc = eventDoc.documentElement;
                            body = eventDoc.body;
            
            
            Severity: Critical
            Found in public/js/jquery.js - About 5 hrs to fix

              Function zoom has 124 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                d3.behavior.zoom = function() {
                  function zoom() {
                    this.on("mousedown.zoom", mousedown).on("mousewheel.zoom", mousewheel).on("mousemove.zoom", mousemove).on("DOMMouseScroll.zoom", mousewheel).on("dblclick.zoom", dblclick).on("touchstart.zoom", touchstart).on("touchmove.zoom", touchmove).on("touchend.zoom", touchstart);
                  }
                  function location(p) {
              Severity: Major
              Found in public/js/d3.v2.js - About 4 hrs to fix

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

                    interpolate.source = function(_) {
                      var cx0 = Math.cos(x0 = _[0] * d3_geo_radians), sx0 = Math.sin(x0);
                      cy0 = Math.cos(y0 = _[1] * d3_geo_radians);
                      sy0 = Math.sin(y0);
                      kx0 = cy0 * cx0;
                Severity: Major
                Found in public/js/d3.v2.js and 1 other location - About 4 hrs to fix
                public/js/d3.v2.js on lines 1979..1987

                Duplicated Code

                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                Tuning

                This issue has a mass of 131.

                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                Refactorings

                Further Reading

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

                    interpolate.target = function(_) {
                      var cx1 = Math.cos(x1 = _[0] * d3_geo_radians), sx1 = Math.sin(x1);
                      cy1 = Math.cos(y1 = _[1] * d3_geo_radians);
                      sy1 = Math.sin(y1);
                      kx1 = cy1 * cx1;
                Severity: Major
                Found in public/js/d3.v2.js and 1 other location - About 4 hrs to fix
                public/js/d3.v2.js on lines 1970..1978

                Duplicated Code

                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                Tuning

                This issue has a mass of 131.

                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                Refactorings

                Further Reading

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

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

                  Function Sizzle has 108 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  var Sizzle = function( selector, context, results, seed ) {
                      results = results || [];
                      context = context || document;
                  
                      var origContext = context;
                  Severity: Major
                  Found in public/js/jquery.js - About 4 hrs to fix

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

                      d3.last = function(array, f) {
                        var i = 0, n = array.length, a = array[0], b;
                        if (arguments.length === 1) f = d3.ascending;
                        while (++i < n) {
                          if (f.call(array, a, b = array[i]) <= 0) {
                    Severity: Major
                    Found in public/js/d3.v2.js and 1 other location - About 4 hrs to fix
                    public/js/d3.v2.js on lines 2788..2797

                    Duplicated Code

                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                    Tuning

                    This issue has a mass of 121.

                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                    Refactorings

                    Further Reading

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

                      d3.first = function(array, f) {
                        var i = 0, n = array.length, a = array[0], b;
                        if (arguments.length === 1) f = d3.ascending;
                        while (++i < n) {
                          if (f.call(array, a, b = array[i]) > 0) {
                    Severity: Major
                    Found in public/js/d3.v2.js and 1 other location - About 4 hrs to fix
                    public/js/d3.v2.js on lines 2798..2807

                    Duplicated Code

                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                    Tuning

                    This issue has a mass of 121.

                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                    Refactorings

                    Further Reading

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

                        function brushstart() {
                          function mouse() {
                            var touches = d3.event.changedTouches;
                            return touches ? d3.touches(target, touches)[0] : d3.mouse(target);
                          }
                    Severity: Major
                    Found in public/js/d3.v2.js - About 4 hrs to fix

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

                                while (++j < m) {
                                  subsubcoordinates = subcoordinates[j];
                                  k = -1;
                                  if ((p = subsubcoordinates.length - 1) > 0) {
                                    buffer.push("M");
                      Severity: Major
                      Found in public/js/d3.v2.js and 1 other location - About 4 hrs to fix
                      public/js/d3.v2.js on lines 6153..6161

                      Duplicated Code

                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                      Tuning

                      This issue has a mass of 116.

                      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                      Refactorings

                      Further Reading

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

                              while (++i < n) {
                                subcoordinates = coordinates[i];
                                j = -1;
                                if ((m = subcoordinates.length - 1) > 0) {
                                  buffer.push("M");
                      Severity: Major
                      Found in public/js/d3.v2.js and 1 other location - About 4 hrs to fix
                      public/js/d3.v2.js on lines 6169..6177

                      Duplicated Code

                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                      Tuning

                      This issue has a mass of 116.

                      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                      Refactorings

                      Further Reading

                      Severity
                      Category
                      Status
                      Source
                      Language