eiriksm/msg2svg

View on GitHub

Showing 537 of 537 total issues

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

      if ((y1 - y0) > (x1 - x0)) {
        var yk = (y0 * valueRight + y1 * valueLeft) / value;
        partition(i, k, valueLeft, x0, y0, x1, yk);
        partition(k, j, valueRight, x0, yk, x1, y1);
      } else {
Severity: Minor
Found in out.js and 1 other location - About 50 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 52.

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

        q.push({i: i - 4, x: interpolateNumber(xa, xb)}, {i: i - 2, x: interpolateNumber(ya, yb)});
Severity: Minor
Found in out.js and 1 other location - About 50 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 52.

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

                b = [x = Math.max(clipMin, Math.min(clipMax, x)), y = Math.max(clipMin, Math.min(clipMax, y))];
Severity: Minor
Found in out.js and 1 other location - About 50 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 52.

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 (children) for (i = 0, n = children.length; i < n; ++i) {
          next.push(children[i]);
        }
Severity: Minor
Found in out.js and 1 other location - About 50 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 51.

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 (children) for (i = 0, n = children.length; i < n; ++i) {
        nodes.push(children[i]);
      }
Severity: Minor
Found in out.js and 1 other location - About 50 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 51.

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

  function circleStream(stream, radius, delta, direction, t0, t1) {
Severity: Minor
Found in out.js - About 45 mins to fix

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

        bezierCurveTo: function(x1, y1, x2, y2, x, y) { this._context.bezierCurveTo(y1, x1, y2, x2, y, x); }
    Severity: Minor
    Found in out.js - About 45 mins to fix

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

          function scale(xa, ya, xb, yb, s, q) {
      Severity: Minor
      Found in out.js - About 45 mins to fix

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

            bezierCurveTo: function(x1, y1, x2, y2, x, y) {
        Severity: Minor
        Found in out.js - About 45 mins to fix

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

            function schedule(node, name, id, index, group, timing) {
          Severity: Minor
          Found in out.js - About 45 mins to fix

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

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

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

                function decompose(a, b, c, d, e, f) {
              Severity: Minor
              Found in out.js - About 45 mins to fix

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

                  function bindIndex(parent, group, enter, update, exit, data) {
                Severity: Minor
                Found in out.js - About 45 mins to fix

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

                    function clipLine(a, b, x0, y0, x1, y1) {
                  Severity: Minor
                  Found in out.js - About 45 mins to fix

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

                        function translate(xa, ya, xb, yb, s, q) {
                    Severity: Minor
                    Found in out.js - About 45 mins to fix

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

                          arc: function(x, y, r, a0, a1, ccw) {
                      Severity: Minor
                      Found in out.js - About 45 mins to fix

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

                          function Quadtree(x, y, x0, y0, x1, y1) {
                        Severity: Minor
                        Found in out.js - About 45 mins to fix

                          Avoid deeply nested control flow statements.
                          Open

                                      if (t > v) break;
                          Severity: Major
                          Found in out.js - About 45 mins to fix

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

                              function lab(l, a, b, opacity) {
                                return arguments.length === 1 ? labConvert(l) : new Lab(l, a, b, opacity == null ? 1 : opacity);
                              }
                            Severity: Major
                            Found in out.js and 4 other locations - About 45 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 50.

                            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

                            Avoid deeply nested control flow statements.
                            Open

                                        if (t < u) continue;
                            Severity: Major
                            Found in out.js - About 45 mins to fix
                              Severity
                              Category
                              Status
                              Source
                              Language