dhgwilliam/google-voice-stats

View on GitHub

Showing 371 of 371 total issues

Avoid deeply nested control flow statements.
Open

                                    if ( xhr.readyState !== 4 ) {
                                        xhr.abort();
                                    }
Severity: Major
Found in public/js/jquery.js - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

                                        if ( !status && s.isLocal && !s.crossDomain ) {
                                            status = responses.text ? 200 : 404;
                                        // IE - #1450: sometimes returns 1223 when it should be 204
                                        } else if ( status === 1223 ) {
                                            status = 204;
    Severity: Major
    Found in public/js/jquery.js - About 45 mins to fix

      Function insert has 6 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          function insert(n, p, x1, y1, x2, y2) {
      Severity: Minor
      Found in public/js/d3.v2.js - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

                            if ( !match ) {
                                anyFound = found = true;
        
                            } else if ( match === true ) {
                                continue;
        Severity: Major
        Found in public/js/jquery.js - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Open

                              if ( !inplace ) {
                                  curLoop = result;
                              }
          Severity: Major
          Found in public/js/jquery.js - About 45 mins to fix

            Avoid deeply nested control flow statements.
            Open

                            } else if ( copy !== undefined ) {
                                target[ name ] = copy;
                            }
            Severity: Major
            Found in public/js/jquery.js - About 45 mins to fix

              Avoid deeply nested control flow statements.
              Open

                                              if ( firing ) {
                                                  if ( i <= firingLength ) {
                                                      firingLength--;
                                                      if ( i <= firingIndex ) {
                                                          firingIndex--;
              Severity: Major
              Found in public/js/jquery.js - About 45 mins to fix

                Avoid deeply nested control flow statements.
                Open

                                        if ( elem.id !== match[2] ) {
                                            return rootjQuery.find( selector );
                                        }
                Severity: Major
                Found in public/js/jquery.js - About 45 mins to fix

                  Avoid deeply nested control flow statements.
                  Open

                                      if ( copyIsArray ) {
                                          copyIsArray = false;
                                          clone = src && jQuery.isArray(src) ? src : [];
                  
                                      } else {
                  Severity: Major
                  Found in public/js/jquery.js - About 45 mins to fix

                    Avoid deeply nested control flow statements.
                    Open

                                            if ( !old ) {
                                                oldContext.removeAttribute( "id" );
                                            }
                    Severity: Major
                    Found in public/js/jquery.js - About 45 mins to fix

                      Avoid deeply nested control flow statements.
                      Open

                                                          if ( xml && xml.documentElement /* #4958 */ ) {
                                                              responses.xml = xml;
                                                          }
                      Severity: Major
                      Found in public/js/jquery.js - About 45 mins to fix

                        Avoid deeply nested control flow statements.
                        Open

                                    for (j = i + 1; j < n; ++j) q[j].i -= 2;
                        Severity: Major
                        Found in public/js/d3.v2.js - About 45 mins to fix

                          Avoid deeply nested control flow statements.
                          Open

                                    while (++i < n) if (!d3_selection_classedRe(name[i]).test(value)) return false;
                          Severity: Major
                          Found in public/js/d3.v2.js - About 45 mins to fix

                            Avoid deeply nested control flow statements.
                            Open

                                      while (++i < n) if (!value.contains(name[i])) return false;
                            Severity: Major
                            Found in public/js/d3.v2.js - About 45 mins to fix

                              Avoid deeply nested control flow statements.
                              Open

                                          if (s1 < s2 || s1 == s2 && b.r < a.r) d3_layout_packSplice(a, b = j); else d3_layout_packSplice(a = k, b);
                              Severity: Major
                              Found in public/js/d3.v2.js - About 45 mins to fix

                                Avoid deeply nested control flow statements.
                                Open

                                            if (d3_layout_packIntersects(j, c)) {
                                              isect = 1;
                                              break;
                                            }
                                Severity: Major
                                Found in public/js/d3.v2.js - About 45 mins to fix

                                  Avoid deeply nested control flow statements.
                                  Open

                                              for (j = i + 1; j < n; ++j) q[j].i--;
                                  Severity: Major
                                  Found in public/js/d3.v2.js - About 45 mins to fix

                                    Avoid deeply nested control flow statements.
                                    Open

                                                for (j = i + 1; j < n; ++j) q[j].i--;
                                    Severity: Major
                                    Found in public/js/d3.v2.js - About 45 mins to fix

                                      Avoid deeply nested control flow statements.
                                      Open

                                                  for (k = a._pack_prev; k !== j._pack_prev; k = k._pack_prev, s2++) {
                                                    if (d3_layout_packIntersects(k, c)) {
                                                      break;
                                                    }
                                                  }
                                      Severity: Major
                                      Found in public/js/d3.v2.js - About 45 mins to fix

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

                                        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

                                        Severity
                                        Category
                                        Status
                                        Source
                                        Language