dhgwilliam/google-voice-stats

View on GitHub

Showing 371 of 371 total issues

Function circle has 100 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  d3.geo.circle = function() {
    function circle() {}
    function visible(point) {
      return arc.distance(point) < radians;
    }
Severity: Major
Found in public/js/d3.v2.js - About 4 hrs to fix

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

      d3.layout.tree = function() {
        function tree(d, i) {
          function firstWalk(node, previousSibling) {
            var children = node.children, layout = node._tree;
            if (children && (n = children.length)) {
    Severity: Major
    Found in public/js/d3.v2.js - About 3 hrs to fix

      Function trigger has 94 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          trigger: function( event, data, elem, onlyHandlers ) {
              // Don't do events on text and comment nodes
              if ( elem && (elem.nodeType === 3 || elem.nodeType === 8) ) {
                  return;
              }
      Severity: Major
      Found in public/js/jquery.js - About 3 hrs to fix

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

          d3.time.minute = d3_time_interval(function(date) {
            return new d3_time(Math.floor(date / 6e4) * 6e4);
          }, function(date, offset) {
            date.setTime(date.getTime() + Math.floor(offset) * 6e4);
          }, function(date) {
        Severity: Major
        Found in public/js/d3.v2.js and 1 other location - About 3 hrs to fix
        public/js/d3.v2.js on lines 6892..6898

        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 107.

        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.time.second = d3_time_interval(function(date) {
            return new d3_time(Math.floor(date / 1e3) * 1e3);
          }, function(date, offset) {
            date.setTime(date.getTime() + Math.floor(offset) * 1e3);
          }, function(date) {
        Severity: Major
        Found in public/js/d3.v2.js and 1 other location - About 3 hrs to fix
        public/js/d3.v2.js on lines 6901..6907

        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 107.

        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 send has 86 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                        send: function( headers, complete ) {
        
                            // Get a new xhr
                            var xhr = s.xhr(),
                                handle,
        Severity: Major
        Found in public/js/jquery.js - About 3 hrs to fix

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

            d3_selectionPrototype.data = function(value, key) {
              function bind(group, groupData) {
                var i, n = group.length, m = groupData.length, n0 = Math.min(n, m), n1 = Math.max(n, m), updateNodes = [], enterNodes = [], exitNodes = [], node, nodeData;
                if (key) {
                  var nodeByKeyValue = new d3_Map, keyValues = [], keyValue, j = groupData.length;
          Severity: Major
          Found in public/js/d3.v2.js - About 3 hrs to fix

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

                function tree(d, i) {
                  function firstWalk(node, previousSibling) {
                    var children = node.children, layout = node._tree;
                    if (children && (n = children.length)) {
                      var n, firstChild = children[0], previousChild, ancestor = firstChild, child, i = -1;
            Severity: Major
            Found in public/js/d3.v2.js - About 3 hrs to fix

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

                function d3_svg_lineStepAfter(points) {
                  var i = 0, n = points.length, p = points[0], path = [ p[0], ",", p[1] ];
                  while (++i < n) path.push("H", (p = points[i])[0], "V", p[1]);
                  return path.join("");
                }
              Severity: Major
              Found in public/js/d3.v2.js and 1 other location - About 3 hrs to fix
              public/js/d3.v2.js on lines 1116..1120

              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 102.

              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

                function d3_svg_lineStepBefore(points) {
                  var i = 0, n = points.length, p = points[0], path = [ p[0], ",", p[1] ];
                  while (++i < n) path.push("V", (p = points[i])[1], "H", p[0]);
                  return path.join("");
                }
              Severity: Major
              Found in public/js/d3.v2.js and 1 other location - About 3 hrs to fix
              public/js/d3.v2.js on lines 1121..1125

              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 102.

              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 animate has 83 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  animate: function( prop, speed, easing, callback ) {
                      var optall = jQuery.speed( speed, easing, callback );
              
                      if ( jQuery.isEmptyObject( prop ) ) {
                          return this.each( optall.complete, [ false ] );
              Severity: Major
              Found in public/js/jquery.js - About 3 hrs to fix

                Function clean has 83 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    clean: function( elems, context, fragment, scripts ) {
                        var checkScriptType;
                
                        context = context || document;
                
                
                Severity: Major
                Found in public/js/jquery.js - About 3 hrs to fix

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

                      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_;
                          var subticks = d3_svg_axisSubdivide(scale, ticks, tickSubdivide), subtick = g.selectAll(".minor").data(subticks, String), subtickEnter = subtick.enter().insert("line", "g").attr("class", "tick minor").style("opacity", 1e-6), subtickExit = d3.transition(subtick.exit()).style("opacity", 1e-6).remove(), subtickUpdate = d3.transition(subtick).style("opacity", 1);
                  Severity: Major
                  Found in public/js/d3.v2.js - About 3 hrs to fix

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

                      function d3_time_parseMonthAbbrev(date, string, i) {
                        d3_time_monthAbbrevRe.lastIndex = 0;
                        var n = d3_time_monthAbbrevRe.exec(string.substring(i));
                        return n ? (date.m = d3_time_monthAbbrevLookup.get(n[0].toLowerCase()), i += n[0].length) : -1;
                      }
                    Severity: Major
                    Found in public/js/d3.v2.js and 1 other location - About 3 hrs to fix
                    public/js/d3.v2.js on lines 2365..2369

                    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 98.

                    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

                      function d3_time_parseMonth(date, string, i) {
                        d3_time_monthRe.lastIndex = 0;
                        var n = d3_time_monthRe.exec(string.substring(i));
                        return n ? (date.m = d3_time_monthLookup.get(n[0].toLowerCase()), i += n[0].length) : -1;
                      }
                    Severity: Major
                    Found in public/js/d3.v2.js and 1 other location - About 3 hrs to fix
                    public/js/d3.v2.js on lines 2360..2364

                    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 98.

                    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

                            "": function(checkSet, part, isXML){
                                var nodeCheck,
                                    doneName = done++,
                                    checkFn = dirCheck;
                    
                    
                    Severity: Major
                    Found in public/js/jquery.js and 1 other location - About 3 hrs to fix
                    public/js/jquery.js on lines 4311..4323

                    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 97.

                    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

                            "~": function( checkSet, part, isXML ) {
                                var nodeCheck,
                                    doneName = done++,
                                    checkFn = dirCheck;
                    
                    
                    Severity: Major
                    Found in public/js/jquery.js and 1 other location - About 3 hrs to fix
                    public/js/jquery.js on lines 4297..4309

                    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 97.

                    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 Deferred has 77 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        Deferred: function( func ) {
                            var doneList = jQuery.Callbacks( "once memory" ),
                                failList = jQuery.Callbacks( "once memory" ),
                                progressList = jQuery.Callbacks( "memory" ),
                                state = "pending",
                    Severity: Major
                    Found in public/js/jquery.js - About 3 hrs to fix

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

                        function d3_dsv(delimiter, mimeType) {
                          function dsv(url, callback) {
                            d3.text(url, mimeType, function(text) {
                              callback(text && dsv.parse(text));
                            });
                      Severity: Major
                      Found in public/js/d3.v2.js - About 3 hrs to fix

                        Consider simplifying this complex logical expression.
                        Open

                        if ( "getBoundingClientRect" in document.documentElement ) {
                            jQuery.fn.offset = function( options ) {
                                var elem = this[0], box;
                        
                                if ( options ) {
                        Severity: Critical
                        Found in public/js/jquery.js - About 3 hrs to fix
                          Severity
                          Category
                          Status
                          Source
                          Language