levent/agileista

View on GitHub

Showing 317 of 317 total issues

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

  function d3_time_parseHour24(date, string, i) {
    d3_time_numberRe.lastIndex = 0;
    var n = d3_time_numberRe.exec(string.substring(i, i + 2));
    return n ? (date.H = +n[0], i + n[0].length) : -1;
  }
Severity: Major
Found in app/assets/javascripts/d3.v3/d3.v3.js and 7 other locations - About 2 hrs to fix
app/assets/javascripts/d3.v3/d3.v3.js on lines 2654..2658
app/assets/javascripts/d3.v3/d3.v3.js on lines 2669..2673
app/assets/javascripts/d3.v3/d3.v3.js on lines 2691..2695
app/assets/javascripts/d3.v3/d3.v3.js on lines 2696..2700
app/assets/javascripts/d3.v3/d3.v3.js on lines 2706..2710
app/assets/javascripts/d3.v3/d3.v3.js on lines 2711..2715
app/assets/javascripts/d3.v3/d3.v3.js on lines 2716..2720

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

  function d3_time_parseSeconds(date, string, i) {
    d3_time_numberRe.lastIndex = 0;
    var n = d3_time_numberRe.exec(string.substring(i, i + 2));
    return n ? (date.S = +n[0], i + n[0].length) : -1;
  }
Severity: Major
Found in app/assets/javascripts/d3.v3/d3.v3.js and 7 other locations - About 2 hrs to fix
app/assets/javascripts/d3.v3/d3.v3.js on lines 2654..2658
app/assets/javascripts/d3.v3/d3.v3.js on lines 2669..2673
app/assets/javascripts/d3.v3/d3.v3.js on lines 2691..2695
app/assets/javascripts/d3.v3/d3.v3.js on lines 2696..2700
app/assets/javascripts/d3.v3/d3.v3.js on lines 2701..2705
app/assets/javascripts/d3.v3/d3.v3.js on lines 2706..2710
app/assets/javascripts/d3.v3/d3.v3.js on lines 2716..2720

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

  function d3_time_parseDayOfYear(date, string, i) {
    d3_time_numberRe.lastIndex = 0;
    var n = d3_time_numberRe.exec(string.substring(i, i + 3));
    return n ? (date.j = +n[0], i + n[0].length) : -1;
  }
Severity: Major
Found in app/assets/javascripts/d3.v3/d3.v3.js and 7 other locations - About 2 hrs to fix
app/assets/javascripts/d3.v3/d3.v3.js on lines 2654..2658
app/assets/javascripts/d3.v3/d3.v3.js on lines 2669..2673
app/assets/javascripts/d3.v3/d3.v3.js on lines 2691..2695
app/assets/javascripts/d3.v3/d3.v3.js on lines 2701..2705
app/assets/javascripts/d3.v3/d3.v3.js on lines 2706..2710
app/assets/javascripts/d3.v3/d3.v3.js on lines 2711..2715
app/assets/javascripts/d3.v3/d3.v3.js on lines 2716..2720

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

  function d3_time_parseFullYear(date, string, i) {
    d3_time_numberRe.lastIndex = 0;
    var n = d3_time_numberRe.exec(string.substring(i, i + 4));
    return n ? (date.y = +n[0], i + n[0].length) : -1;
  }
Severity: Major
Found in app/assets/javascripts/d3.v3/d3.v3.js and 7 other locations - About 2 hrs to fix
app/assets/javascripts/d3.v3/d3.v3.js on lines 2654..2658
app/assets/javascripts/d3.v3/d3.v3.js on lines 2691..2695
app/assets/javascripts/d3.v3/d3.v3.js on lines 2696..2700
app/assets/javascripts/d3.v3/d3.v3.js on lines 2701..2705
app/assets/javascripts/d3.v3/d3.v3.js on lines 2706..2710
app/assets/javascripts/d3.v3/d3.v3.js on lines 2711..2715
app/assets/javascripts/d3.v3/d3.v3.js on lines 2716..2720

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

  function d3_time_parseDay(date, string, i) {
    d3_time_numberRe.lastIndex = 0;
    var n = d3_time_numberRe.exec(string.substring(i, i + 2));
    return n ? (date.d = +n[0], i + n[0].length) : -1;
  }
Severity: Major
Found in app/assets/javascripts/d3.v3/d3.v3.js and 7 other locations - About 2 hrs to fix
app/assets/javascripts/d3.v3/d3.v3.js on lines 2654..2658
app/assets/javascripts/d3.v3/d3.v3.js on lines 2669..2673
app/assets/javascripts/d3.v3/d3.v3.js on lines 2696..2700
app/assets/javascripts/d3.v3/d3.v3.js on lines 2701..2705
app/assets/javascripts/d3.v3/d3.v3.js on lines 2706..2710
app/assets/javascripts/d3.v3/d3.v3.js on lines 2711..2715
app/assets/javascripts/d3.v3/d3.v3.js on lines 2716..2720

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

    function axis(g) {
      g.each(function() {
        var g = d3.select(this);
        var scale0 = this.__chart__ || scale, scale1 = this.__chart__ = scale.copy();
        var ticks = tickValues == null ? scale1.ticks ? scale1.ticks.apply(scale1, tickArguments_) : scale1.domain() : tickValues, tickFormat = tickFormat_ == null ? scale1.tickFormat ? scale1.tickFormat.apply(scale1, tickArguments_) : d3_identity : tickFormat_, tick = g.selectAll(".tick").data(ticks, scale1), tickEnter = tick.enter().insert("g", ".domain").attr("class", "tick").style("opacity", ε), tickExit = d3.transition(tick.exit()).style("opacity", ε).remove(), tickUpdate = d3.transition(tick).style("opacity", 1), tickTransform;
Severity: Major
Found in app/assets/javascripts/d3.v3/d3.v3.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;
            node.N = after.N;
    Severity: Major
    Found in app/assets/javascripts/d3.v3/d3.v3.js - About 2 hrs to fix

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

          function touchstarted() {
            var target = this, event_ = event.of(target, arguments), locations0 = {}, distance0 = 0, scale0, eventId = d3.event.changedTouches[0].identifier, touchmove = "touchmove.zoom-" + eventId, touchend = "touchend.zoom-" + eventId, w = d3.select(d3_window).on(touchmove, moved).on(touchend, ended), t = d3.select(target).on(mousedown, null).on(touchstart, started), dragRestore = d3_event_dragSuppress();
            d3_selection_interrupt.call(target);
            started();
            zoomstarted(event_);
      Severity: Major
      Found in app/assets/javascripts/d3.v3/d3.v3.js - About 2 hrs to fix

        Function relayout has 64 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            function relayout() {
              var subgroups = {}, groupSums = [], groupIndex = d3.range(n), subgroupIndex = [], k, x, x0, i, j;
              chords = [];
              groups = [];
              k = 0, i = -1;
        Severity: Major
        Found in app/assets/javascripts/d3.v3/d3.v3.js - About 2 hrs to fix

          Function voronoi has 64 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

            d3.geom.voronoi = function(points) {
              var x = d3_geom_pointX, y = d3_geom_pointY, fx = x, fy = y, clipExtent = d3_geom_voronoiClipExtent;
              if (points) return voronoi(points);
              function voronoi(data) {
                var polygons = new Array(data.length), x0 = clipExtent[0][0], y0 = clipExtent[0][1], x1 = clipExtent[1][0], y1 = clipExtent[1][1];
          Severity: Major
          Found in app/assets/javascripts/d3.v3/d3.v3.js - About 2 hrs to fix

            Function d3_interpolateString has 63 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

              function d3_interpolateString(a, b) {
                var m, i, j, s0 = 0, s1 = 0, s = [], q = [], n, o;
                a = a + "", b = b + "";
                d3_interpolate_number.lastIndex = 0;
                for (i = 0; m = d3_interpolate_number.exec(b); ++i) {
            Severity: Major
            Found in app/assets/javascripts/d3.v3/d3.v3.js - About 2 hrs to fix

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

                    if (typeof linkDistance === "function") for (i = 0; i < m; ++i) distances[i] = +linkDistance.call(this, links[i], i); else for (i = 0; i < m; ++i) distances[i] = linkDistance;
              Severity: Major
              Found in app/assets/javascripts/d3.v3/d3.v3.js and 2 other locations - About 2 hrs to fix
              app/assets/javascripts/d3.v3/d3.v3.js on lines 6280..6280
              app/assets/javascripts/d3.v3/d3.v3.js on lines 6282..6282

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

              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 d3_time_parseWeekNumberSunday(date, string, i) {
                  d3_time_numberRe.lastIndex = 0;
                  var n = d3_time_numberRe.exec(string.substring(i));
                  return n ? (date.U = +n[0], i + n[0].length) : -1;
                }
              Severity: Major
              Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 2 hrs to fix
              app/assets/javascripts/d3.v3/d3.v3.js on lines 2664..2668

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

              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 d3_time_parseWeekNumberMonday(date, string, i) {
                  d3_time_numberRe.lastIndex = 0;
                  var n = d3_time_numberRe.exec(string.substring(i));
                  return n ? (date.W = +n[0], i + n[0].length) : -1;
                }
              Severity: Major
              Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 2 hrs to fix
              app/assets/javascripts/d3.v3/d3.v3.js on lines 2659..2663

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

              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

                    if (typeof charge === "function") for (i = 0; i < n; ++i) charges[i] = +charge.call(this, nodes[i], i); else for (i = 0; i < n; ++i) charges[i] = charge;
              Severity: Major
              Found in app/assets/javascripts/d3.v3/d3.v3.js and 2 other locations - About 2 hrs to fix
              app/assets/javascripts/d3.v3/d3.v3.js on lines 6278..6278
              app/assets/javascripts/d3.v3/d3.v3.js on lines 6280..6280

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

              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

                    if (typeof linkStrength === "function") for (i = 0; i < m; ++i) strengths[i] = +linkStrength.call(this, links[i], i); else for (i = 0; i < m; ++i) strengths[i] = linkStrength;
              Severity: Major
              Found in app/assets/javascripts/d3.v3/d3.v3.js and 2 other locations - About 2 hrs to fix
              app/assets/javascripts/d3.v3/d3.v3.js on lines 6278..6278
              app/assets/javascripts/d3.v3/d3.v3.js on lines 6282..6282

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

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

                function d3_layout_packSiblings(node) {
                  if (!(nodes = node.children) || !(n = nodes.length)) return;
                  var nodes, xMin = Infinity, xMax = -Infinity, yMin = Infinity, yMax = -Infinity, a, b, c, i, j, k, n;
                  function bound(node) {
                    xMin = Math.min(node.x - node.r, xMin);
              Severity: Major
              Found in app/assets/javascripts/d3.v3/d3.v3.js - About 2 hrs to fix

                Function nest has 61 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                  d3.nest = function() {
                    var nest = {}, keys = [], sortKeys = [], sortValues, rollup;
                    function map(mapType, array, depth) {
                      if (depth >= keys.length) return rollup ? rollup.call(nest, array) : sortValues ? array.sort(sortValues) : array;
                      var i = -1, n = array.length, key = keys[depth++], keyValue, object, setter, valuesByKey = new d3_Map(), values;
                Severity: Major
                Found in app/assets/javascripts/d3.v3/d3.v3.js - About 2 hrs to fix

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

                        path += "Q" + (p[0] + t[0] * 2 / 3) + "," + (p[1] + t[1] * 2 / 3) + "," + lp[0] + "," + lp[1];
                  Severity: Major
                  Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 2 hrs to fix
                  app/assets/javascripts/d3.v3/d3.v3.js on lines 7975..7975

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

                  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

                        path += "Q" + (p[0] - t0[0] * 2 / 3) + "," + (p[1] - t0[1] * 2 / 3) + "," + p[0] + "," + p[1];
                  Severity: Major
                  Found in app/assets/javascripts/d3.v3/d3.v3.js and 1 other location - About 2 hrs to fix
                  app/assets/javascripts/d3.v3/d3.v3.js on lines 7992..7992

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

                  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