eiriksm/msg2svg

View on GitHub

Showing 537 of 537 total issues

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

      return value0 === value1 ? null
          : value0 === value00 && value1 === value10 ? interpolate0
          : interpolate0 = interpolate(value00 = value0, value10 = value1);
Severity: Major
Found in out.js and 3 other locations - About 40 mins to fix

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

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

            if (a1 <= y1) { if (b1 > y1 && (b0 - a0) * (y1 - a1) > (b1 - a1) * (x0 - a0)) ++winding; }
Severity: Minor
Found in out.js and 1 other location - About 40 mins to fix

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

  function Quad(node, x0, y0, x1, y1) {
Severity: Minor
Found in out.js - About 35 mins to fix

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

      function treemapDice(parent, x0, y0, x1, y1) {
    Severity: Minor
    Found in out.js - About 35 mins to fix

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

          function squarify(parent, x0, y0, x1, y1) {
      Severity: Minor
      Found in out.js - About 35 mins to fix

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

          function clipPolygon(segments, compareIntersection, startInside, interpolate, stream) {
        Severity: Minor
        Found in out.js - About 35 mins to fix

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

            function sliceDice(parent, x0, y0, x1, y1) {
          Severity: Minor
          Found in out.js - About 35 mins to fix

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

              function connectEdge(edge, x0, y0, x1, y1) {
            Severity: Minor
            Found in out.js - About 35 mins to fix

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

                function binary(parent, x0, y0, x1, y1) {
              Severity: Minor
              Found in out.js - About 35 mins to fix

                Function basis$1 has 5 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                  function basis$1(t1, v0, v1, v2, v3) {
                Severity: Minor
                Found in out.js - About 35 mins to fix

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

                    function clipEdge(edge, x0, y0, x1, y1) {
                  Severity: Minor
                  Found in out.js - About 35 mins to fix

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

                          function apply(quad, x0, y0, x1, y1) {
                    Severity: Minor
                    Found in out.js - About 35 mins to fix

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

                          function resquarify(parent, x0, y0, x1, y1) {
                      Severity: Minor
                      Found in out.js - About 35 mins to fix

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

                            arcTo: function(x1, y1, x2, y2, r) {
                        Severity: Minor
                        Found in out.js - About 35 mins to fix

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

                            function treemapSlice(parent, x0, y0, x1, y1) {
                          Severity: Minor
                          Found in out.js - About 35 mins to fix

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

                                function beforestart(id, container, point, that, args) {
                            Severity: Minor
                            Found in out.js - About 35 mins to fix

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

                                      if (this.touch0 && key !== "touch") this.touch0[1] = transform.invert(this.touch0[0]);
                              Severity: Minor
                              Found in out.js and 2 other locations - About 35 mins to fix

                              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 3 locations. Consider refactoring.
                              Open

                                  ribbon.context = function(_) {
                                    return arguments.length ? ((context = _ == null ? null : _), ribbon) : context;
                                  };
                              Severity: Minor
                              Found in out.js and 2 other locations - About 35 mins to fix

                              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

                                    y1 = (y1 * a - that._y0 * that._l12_2a + that._y2 * that._l01_2a) / n;
                              Severity: Minor
                              Found in out.js and 1 other location - About 35 mins to fix

                              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

                                function translateX(scale0, scale1, d) {
                                  var x = scale0(d);
                                  return "translate(" + (isFinite(x) ? x : scale1(d)) + ",0)";
                                }
                              Severity: Minor
                              Found in out.js and 1 other location - About 35 mins to fix

                              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

                              Severity
                              Category
                              Status
                              Source
                              Language