eiriksm/msg2svg

View on GitHub

Showing 537 of 537 total issues

Function manyBody has 83 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function manyBody() {
    var nodes,
        node,
        alpha,
        strength = constant$6(-30),
Severity: Major
Found in out.js - About 3 hrs to fix

    Function area$1 has 83 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      function area$1() {
        var x0 = x,
            x1 = null,
            y0 = constant$1(0),
            y1 = y,
    Severity: Major
    Found in out.js - About 3 hrs to fix

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

            this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 =
            this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN;
      Severity: Major
      Found in out.js and 1 other location - About 3 hrs 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 99.

      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

            this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 =
            this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN;
      Severity: Major
      Found in out.js and 1 other location - About 3 hrs 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 99.

      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 graticule has 74 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        function graticule() {
          var x1, x0, X1, X0,
              y1, y0, Y1, Y0,
              dx = 10, dy = dx, DX = 90, DY = 360,
              x, y, X, Y,
      Severity: Major
      Found in out.js - About 2 hrs to fix

        Function index$1 has 74 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          function index$1() {
            var tile = squarify,
                round = false,
                dx = 1,
                dy = 1,
        Severity: Major
        Found in out.js - About 2 hrs to fix

          Function log has 73 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

            function log() {
              var scale = continuous(deinterpolate$1, reinterpolate).domain([1, 10]),
                  domain = scale.domain,
                  base = 10,
                  logs = logp(10),
          Severity: Major
          Found in out.js - About 2 hrs to fix

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

                  if (this._point) {
                    var x23 = this._x2 - x,
                        y23 = this._y2 - y;
                    this._l23_a = Math.sqrt(this._l23_2a = Math.pow(x23 * x23 + y23 * y23, this._alpha));
                  }
            Severity: Major
            Found in out.js and 2 other locations - About 2 hrs 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 91.

            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 resample$1 has 70 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

              function resample$1(project, delta2) {
            
                function resampleLineTo(x0, y0, lambda0, a0, b0, c0, x1, y1, lambda1, a1, b1, c1, depth, stream) {
                  var dx = x1 - x0,
                      dy = y1 - y0,
            Severity: Major
            Found in out.js - About 2 hrs to fix

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

                    if (this._point) {
                      var x23 = this._x2 - x,
                          y23 = this._y2 - y;
                      this._l23_a = Math.sqrt(this._l23_2a = Math.pow(x23 * x23 + y23 * y23, this._alpha));
                    }
              Severity: Major
              Found in out.js and 2 other locations - About 2 hrs 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 91.

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

                    if (this._point) {
                      var x23 = this._x2 - x,
                          y23 = this._y2 - y;
                      this._l23_a = Math.sqrt(this._l23_2a = Math.pow(x23 * x23 + y23 * y23, this._alpha));
                    }
              Severity: Major
              Found in out.js and 2 other locations - About 2 hrs 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 91.

              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 clipCells has 69 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                function clipCells(x0, y0, x1, y1) {
                  var nCells = cells.length,
                      iCell,
                      cell,
                      site,
              Severity: Major
              Found in out.js - About 2 hrs to fix

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

                        if (e1 < w1) {
                          signX *= -1;
                          t = w0, w0 = e0, e0 = t;
                          t = w1, w1 = e1, e1 = t;
                          if (type in flipX) overlay.attr("cursor", cursors[type = flipX[type]]);
                Severity: Major
                Found in out.js and 1 other location - About 2 hrs 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 90.

                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 (s1 < n1) {
                          signY *= -1;
                          t = n0, n0 = s0, s0 = t;
                          t = n1, n1 = s1, s1 = t;
                          if (type in flipY) overlay.attr("cursor", cursors[type = flipY[type]]);
                Severity: Major
                Found in out.js and 1 other location - About 2 hrs 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 90.

                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 newFormat has 68 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    function newFormat(specifier) {
                      specifier = formatSpecifier(specifier);
                
                      var fill = specifier.fill,
                          align = specifier.align,
                Severity: Major
                Found in out.js - About 2 hrs to fix

                  Function clipLine has 68 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      function clipLine(stream) {
                        var point0, // previous point
                            c0, // code for previous point
                            v0, // visibility of previous point
                            v00, // visibility of first point
                  Severity: Major
                  Found in out.js - About 2 hrs to fix

                    Function collide has 67 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                      function collide(radius) {
                        var nodes,
                            radii,
                            strength = 1,
                            iterations = 1;
                    Severity: Major
                    Found in out.js - About 2 hrs to fix

                      Function insert has 67 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          insert: function(after, node) {
                            var parent, grandpa, uncle;
                      
                            if (after) {
                              node.P = after;
                      Severity: Major
                      Found in out.js - About 2 hrs to fix

                        Function addBeach has 67 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                          function addBeach(site) {
                            var x = site[0],
                                directrix = site[1],
                                lArc,
                                rArc,
                        Severity: Major
                        Found in out.js - About 2 hrs to fix

                          Function chord has 66 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              function chord(matrix) {
                                var n = matrix.length,
                                    groupSums = [],
                                    groupIndex = range(n),
                                    subgroupIndex = [],
                          Severity: Major
                          Found in out.js - About 2 hrs to fix
                            Severity
                            Category
                            Status
                            Source
                            Language