dhgwilliam/google-voice-stats

View on GitHub

Showing 371 of 371 total issues

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

      if (typeof _ === "function") interpolateKey = interpolate = _; else interpolateKey = (interpolate = d3_svg_lineInterpolators.get(_) || d3_svg_lineLinear).key;
Severity: Minor
Found in public/js/d3.v2.js and 1 other location - About 40 mins to fix
public/js/d3.v2.js on lines 1094..1094

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

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

Consider simplifying this complex logical expression.
Open

        if ( s.crossDomain == null ) {
            parts = rurl.exec( s.url.toLowerCase() );
            s.crossDomain = !!( parts &&
                ( parts[ 1 ] != ajaxLocParts[ 1 ] || parts[ 2 ] != ajaxLocParts[ 2 ] ||
                    ( parts[ 3 ] || ( parts[ 1 ] === "http:" ? 80 : 443 ) ) !=
Severity: Major
Found in public/js/jquery.js - About 40 mins to fix

    Consider simplifying this complex logical expression.
    Open

            if ( !seed && parts.length > 1 && context.nodeType === 9 && !contextXML &&
                    Expr.match.ID.test(parts[0]) && !Expr.match.ID.test(parts[parts.length - 1]) ) {
    
                ret = Sizzle.find( parts.shift(), context, contextXML );
                context = ret.expr ?
    Severity: Major
    Found in public/js/jquery.js - About 40 mins to fix

      Consider simplifying this complex logical expression.
      Open

      if ( !jQuery.support.opacity ) {
          jQuery.cssHooks.opacity = {
              get: function( elem, computed ) {
                  // IE uses filters for opacity
                  return ropacity.test( (computed && elem.currentStyle ? elem.currentStyle.filter : elem.style.filter) || "" ) ?
      Severity: Major
      Found in public/js/jquery.js - About 40 mins to fix

        Consider simplifying this complex logical expression.
        Open

                } else if ( typeof value === "string" && !rnoInnerhtml.test( value ) &&
                    (jQuery.support.leadingWhitespace || !rleadingWhitespace.test( value )) &&
                    !wrapMap[ (rtagName.exec( value ) || ["", ""])[1].toLowerCase() ] ) {
        
                    value = value.replace(rxhtmlTag, "<$1></$2>");
        Severity: Major
        Found in public/js/jquery.js - About 40 mins to fix

          Consider simplifying this complex logical expression.
          Open

                  if ( delegateCount && !event.target.disabled && !(event.button && event.type === "click") ) {
          
                      // Pregenerate a single jQuery object for reuse with .is()
                      jqcur = jQuery(this);
                      jqcur.context = this.ownerDocument || this;
          Severity: Major
          Found in public/js/jquery.js - About 40 mins to fix

            Consider simplifying this complex logical expression.
            Open

                            if ( ontype && elem[ type ] && ((type !== "focus" && type !== "blur") || event.target.offsetWidth !== 0) && !jQuery.isWindow( elem ) ) {
            
                                // Don't re-trigger an onFOO event when we call its FOO() method
                                old = elem[ ontype ];
            
            
            Severity: Major
            Found in public/js/jquery.js - About 40 mins to fix

              Function remove has 5 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                  remove: function( elem, types, handler, selector, mappedTypes ) {
              Severity: Minor
              Found in public/js/jquery.js - About 35 mins to fix

                Function add has 5 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                    add: function( elem, types, handler, data, selector ) {
                Severity: Minor
                Found in public/js/jquery.js - About 35 mins to fix

                  Function on has 5 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                      on: function( types, selector, data, fn, /*INTERNAL*/ one ) {
                  Severity: Minor
                  Found in public/js/jquery.js - About 35 mins to fix

                    Function PSEUDO has 5 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                            PSEUDO: function( match, curLoop, inplace, result, not ) {
                    Severity: Minor
                    Found in public/js/jquery.js - About 35 mins to fix

                      Function quadtree has 5 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                        d3.geom.quadtree = function(points, x1, y1, x2, y2) {
                      Severity: Minor
                      Found in public/js/d3.v2.js - About 35 mins to fix

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

                            var hierarchy = d3.layout.hierarchy().sort(null).value(null), separation = d3_layout_treeSeparation, size = [ 1, 1 ];
                        Severity: Minor
                        Found in public/js/d3.v2.js and 1 other location - About 35 mins to fix
                        public/js/d3.v2.js on lines 5630..5630

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

                        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

                                    for ( key in elems ) {
                                        value = callback( elems[ key ], key, arg );
                        
                                        if ( value != null ) {
                                            ret[ ret.length ] = value;
                        Severity: Minor
                        Found in public/js/jquery.js and 1 other location - About 35 mins to fix
                        public/js/jquery.js on lines 756..762

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

                        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

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

                            var hierarchy = d3.layout.hierarchy().sort(null).value(null), separation = d3_layout_treeSeparation, size = [ 1, 1 ];
                        Severity: Minor
                        Found in public/js/d3.v2.js and 1 other location - About 35 mins to fix
                        public/js/d3.v2.js on lines 5731..5731

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

                        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

                                    for ( ; i < length; i++ ) {
                                        value = callback( elems[ i ], i, arg );
                        
                                        if ( value != null ) {
                                            ret[ ret.length ] = value;
                        Severity: Minor
                        Found in public/js/jquery.js and 1 other location - About 35 mins to fix
                        public/js/jquery.js on lines 766..772

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

                        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

                            treemap.sticky = function(x) {
                              if (!arguments.length) return sticky;
                              sticky = x;
                              stickies = null;
                              return treemap;
                        Severity: Minor
                        Found in public/js/d3.v2.js and 1 other location - About 35 mins to fix
                        public/js/d3.v2.js on lines 5026..5031

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

                        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

                            chord.sortSubgroups = function(x) {
                              if (!arguments.length) return sortSubgroups;
                              sortSubgroups = x;
                              chords = null;
                              return chord;
                        Severity: Minor
                        Found in public/js/d3.v2.js and 1 other location - About 35 mins to fix
                        public/js/d3.v2.js on lines 5873..5878

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

                        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

                            zoom.translate = function(x) {
                              if (!arguments.length) return translate;
                              translate = x.map(Number);
                              return zoom;
                            };
                        Severity: Minor
                        Found in public/js/d3.v2.js and 1 other location - About 35 mins to fix
                        public/js/d3.v2.js on lines 1031..1035

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

                        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

                            identity.domain = identity.range = function(x) {
                              if (!arguments.length) return domain;
                              domain = x.map(identity);
                              return identity;
                            };
                        Severity: Minor
                        Found in public/js/d3.v2.js and 1 other location - About 35 mins to fix
                        public/js/d3.v2.js on lines 4897..4901

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

                        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