levent/agileista

View on GitHub

Showing 317 of 317 total issues

Avoid deeply nested control flow statements.
Open

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

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

      function d3_geom_quadtreeVisit(f, node, x1, y1, x2, y2) {
    Severity: Minor
    Found in app/assets/javascripts/d3.v3/d3.v3.js - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

                    if (angle(λ, λ1) > angle(λ0, λ1)) λ0 = λ;
      Severity: Major
      Found in app/assets/javascripts/d3.v3/d3.v3.js - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

                    if (subnode = subnodes[k]) d3_transitionNode(subnode, k, id, transition);
        Severity: Major
        Found in app/assets/javascripts/d3.v3/d3.v3.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 app/assets/javascripts/d3.v3/d3.v3.js - About 45 mins to fix

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

                  for (var group = this[j], i = 0, n = group.length; i < n; i++) {
                    if ((node = group[i]) && filter.call(node, node.__data__, i, j)) {
                      subgroup.push(node);
                    }
                  }
            Severity: Minor
            Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 40 mins to fix
            app/assets/javascripts/d3.v3/d3.v3.js on lines 845..849

            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

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

                        if (angle(b[0], a[1]) > angle(a[0], a[1])) a[0] = b[0];
            Severity: Minor
            Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 40 mins to fix
            app/assets/javascripts/d3.v3/d3.v3.js on lines 3029..3029

            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

            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 app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 40 mins to fix
            app/assets/javascripts/d3.v3/d3.v3.js on lines 8197..8197

            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

            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 app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 40 mins to fix
            app/assets/javascripts/d3.v3/d3.v3.js on lines 7905..7905

            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

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

                        if (angle(a[0], b[1]) > angle(a[0], a[1])) a[1] = b[1];
            Severity: Minor
            Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 40 mins to fix
            app/assets/javascripts/d3.v3/d3.v3.js on lines 3030..3030

            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

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

                  for (var i = 0, n = group.length; i < n; i++) {
                    if ((node = group[i]) && filter.call(node, node.__data__, i, j)) {
                      subgroup.push(node);
                    }
                  }
            Severity: Minor
            Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 40 mins to fix
            app/assets/javascripts/d3.v3/d3.v3.js on lines 8431..8435

            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

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

                        if (dn < chargeDistance2) {
                          var k = quad.charge / dn;
                          node.px -= dx * k;
                          node.py -= dy * k;
                        }
            Severity: Minor
            Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 40 mins to fix
            app/assets/javascripts/d3.v3/d3.v3.js on lines 6123..6127

            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

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

                      if (quad.point && dn && dn < chargeDistance2) {
                        var k = quad.pointCharge / dn;
                        node.px -= dx * k;
                        node.py -= dy * k;
                      }
            Severity: Minor
            Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 40 mins to fix
            app/assets/javascripts/d3.v3/d3.v3.js on lines 6116..6120

            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 (abs(x3 - x2) > ε || abs(y3 - y2) > ε) {
                      halfEdges.splice(iHalfEdge, 0, new d3_geom_voronoiHalfEdge(d3_geom_voronoiCreateBorderEdge(cell.site, end, abs(x3 - x0) < ε && y1 - y3 > ε ? {
                        x: x0,
                        y: abs(x2 - x0) < ε ? y2 : y1
                      } : abs(y3 - y1) < ε && x1 - x3 > ε ? {
            Severity: Major
            Found in app/assets/javascripts/d3.v3/d3.v3.js - About 40 mins to fix

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

                    mySVG.append("g")
                        .attr("class", "y axis")
                        .call(yAxis)
                      .append("text")
                        .attr("transform", "rotate(-90)")
              Severity: Minor
              Found in app/assets/javascripts/agileista_graphs.js and 1 other location - About 40 mins to fix
              app/assets/javascripts/agileista_graphs.js on lines 90..95

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

              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

                    mySVG.append("g")
                        .attr("class", "y axis")
                        .call(yAxis)
                      .append("text")
                        .attr("transform", "rotate(-90)")
              Severity: Minor
              Found in app/assets/javascripts/agileista_graphs.js and 1 other location - About 40 mins to fix
              app/assets/javascripts/agileista_graphs.js on lines 184..189

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

              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 updateTaskCard has 5 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                  updateTaskCard = function(container, task_card, hours, devs, me) {
              Severity: Minor
              Found in app/assets/javascripts/task_board.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 app/assets/javascripts/d3.v3/d3.v3.js - About 35 mins to fix

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

                      drawBurndown = function(startDate, endDate, spRemaining, spComplete, spHours) {
                  Severity: Minor
                  Found in app/assets/javascripts/agileista_graphs.js - About 35 mins to fix

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

                      function d3_geo_clipPolygon(segments, compare, clipStartInside, interpolate, listener) {
                    Severity: Minor
                    Found in app/assets/javascripts/d3.v3/d3.v3.js - About 35 mins to fix
                      Severity
                      Category
                      Status
                      Source
                      Language