zktest/src/main/webapp/js/d3.js

Summary

Maintainability
F
1 mo
Test Coverage

File d3.js has 3443 lines of code (exceeds 250 allowed). Consider refactoring.
Open

(function(){if (!Date.now) Date.now = function() {
  return +new Date;
};
try {
  document.createElement("div").style.setProperty("opacity", 0, "");
Severity: Major
Found in zktest/src/main/webapp/js/d3.js - About 1 wk to fix

    Function axis has 126 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    d3.svg.axis = function() {
      var scale = d3.scale.linear(),
          orient = "bottom",
          tickMajorSize = 6,
          tickMinorSize = 6,
    Severity: Major
    Found in zktest/src/main/webapp/js/d3.js - About 5 hrs to fix

      Function data has 93 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      d3_selectionPrototype.data = function(data, join) {
        var enter = [],
            update = [],
            exit = [];
      
      
      Severity: Major
      Found in zktest/src/main/webapp/js/d3.js - About 3 hrs to fix

        Function axis has 76 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          function axis(selection) {
            selection.each(function(d, i, j) {
              var g = d3.select(this);
        
              // If selection is a transition, create subtransitions.
        Severity: Major
        Found in zktest/src/main/webapp/js/d3.js - About 3 hrs to fix

          Function bind has 72 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

            function bind(group, groupData) {
              var i,
                  n = group.length,
                  m = groupData.length,
                  n0 = Math.min(n, m),
          Severity: Major
          Found in zktest/src/main/webapp/js/d3.js - About 2 hrs to fix

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

            function d3_transition(groups, id, time) {
              d3_arraySubclass(groups, d3_transitionPrototype);
            
              var tweens = {},
                  event = d3.dispatch("start", "end"),
            Severity: Major
            Found in zktest/src/main/webapp/js/d3.js - About 2 hrs to fix

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

              d3.svg.arc = function() {
                var innerRadius = d3_svg_arcInnerRadius,
                    outerRadius = d3_svg_arcOuterRadius,
                    startAngle = d3_svg_arcStartAngle,
                    endAngle = d3_svg_arcEndAngle;
              Severity: Major
              Found in zktest/src/main/webapp/js/d3.js - About 2 hrs to fix

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

                d3.nest = function() {
                  var nest = {},
                      keys = [],
                      sortKeys = [],
                      sortValues,
                Severity: Major
                Found in zktest/src/main/webapp/js/d3.js - About 2 hrs to fix

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

                  d3.svg.chord = function() {
                    var source = d3_svg_chordSource,
                        target = d3_svg_chordTarget,
                        radius = d3_svg_chordRadius,
                        startAngle = d3_svg_arcStartAngle,
                  Severity: Major
                  Found in zktest/src/main/webapp/js/d3.js - About 2 hrs to fix

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

                    d3.interpolateString = function(a, b) {
                      var m, // current match
                          i, // current index
                          j, // current index (for coallescing)
                          s0 = 0, // start index of current string prefix
                    Severity: Major
                    Found in zktest/src/main/webapp/js/d3.js - About 2 hrs to fix

                      Function d3_scale_ordinal has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      function d3_scale_ordinal(domain, ranger) {
                        var index,
                            range,
                            rangeBand;
                      
                      
                      Severity: Major
                      Found in zktest/src/main/webapp/js/d3.js - About 2 hrs to fix

                        Function d3_svg_area has 58 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        function d3_svg_area(projection) {
                          var x0 = d3_svg_lineX,
                              x1 = d3_svg_lineX,
                              y0 = 0,
                              y1 = d3_svg_lineY,
                        Severity: Major
                        Found in zktest/src/main/webapp/js/d3.js - About 2 hrs to fix

                          Function zoom has 55 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          d3.behavior.zoom = function() {
                            var xyz = [0, 0, 0],
                                event = d3.dispatch("zoom");
                          
                            function zoom() {
                          Severity: Major
                          Found in zktest/src/main/webapp/js/d3.js - About 2 hrs to fix

                            Function d3_scale_log has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            function d3_scale_log(linear, log) {
                              var pow = log.pow;
                            
                              function scale(x) {
                                return linear(log(x));
                            Severity: Major
                            Found in zktest/src/main/webapp/js/d3.js - About 2 hrs to fix

                              Function d3_scale_linear has 52 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                              function d3_scale_linear(domain, range, interpolate, clamp) {
                                var output,
                                    input;
                              
                                function rescale() {
                              Severity: Major
                              Found in zktest/src/main/webapp/js/d3.js - About 2 hrs to fix

                                Function format has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                d3.format = function(specifier) {
                                  var match = d3_format_re.exec(specifier),
                                      fill = match[1] || " ",
                                      sign = match[3] || "",
                                      zfill = match[5],
                                Severity: Minor
                                Found in zktest/src/main/webapp/js/d3.js - About 2 hrs to fix

                                  Function d3_rgb_parse has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  function d3_rgb_parse(format, rgb, hsl) {
                                    var r = 0, // red channel; int in [0, 255]
                                        g = 0, // green channel; int in [0, 255]
                                        b = 0, // blue channel; int in [0, 255]
                                        m1, // CSS color specification match
                                  Severity: Minor
                                  Found in zktest/src/main/webapp/js/d3.js - About 1 hr to fix

                                    Function d3_selection_classed has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                    function d3_selection_classed(name, value) {
                                      var re = new RegExp("(^|\\s+)" + d3.requote(name) + "(\\s+|$)", "g");
                                    
                                      // If no value is specified, return the first value.
                                      if (arguments.length < 2) {
                                    Severity: Minor
                                    Found in zktest/src/main/webapp/js/d3.js - About 1 hr to fix

                                      Function d3_svg_lineHermite has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                      function d3_svg_lineHermite(points, tangents) {
                                        if (tangents.length < 1
                                            || (points.length != tangents.length
                                            && points.length != tangents.length + 2)) {
                                          return d3_svg_lineLinear(points);
                                      Severity: Minor
                                      Found in zktest/src/main/webapp/js/d3.js - About 1 hr to fix

                                        Function arc has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                          function arc() {
                                            var r0 = innerRadius.apply(this, arguments),
                                                r1 = outerRadius.apply(this, arguments),
                                                a0 = startAngle.apply(this, arguments) + d3_svg_arcOffset,
                                                a1 = endAngle.apply(this, arguments) + d3_svg_arcOffset,
                                        Severity: Minor
                                        Found in zktest/src/main/webapp/js/d3.js - About 1 hr to fix

                                          Function d3_scale_pow has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                                          Open

                                          function d3_scale_pow(linear, exponent) {
                                            var powp = d3_scale_powPow(exponent),
                                                powb = d3_scale_powPow(1 / exponent);
                                          
                                            function scale(x) {
                                          Severity: Minor
                                          Found in zktest/src/main/webapp/js/d3.js - About 1 hr to fix

                                            Function attr has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                                            Open

                                            d3_selectionPrototype.attr = function(name, value) {
                                              name = d3.ns.qualify(name);
                                            
                                              // If no value is specified, return the first value.
                                              if (arguments.length < 2) {
                                            Severity: Minor
                                            Found in zktest/src/main/webapp/js/d3.js - About 1 hr to fix

                                              Function d3_scale_quantile has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                              Open

                                              function d3_scale_quantile(domain, range) {
                                                var thresholds;
                                              
                                                function rescale() {
                                                  var k = 0,
                                              Severity: Minor
                                              Found in zktest/src/main/webapp/js/d3.js - About 1 hr to fix

                                                Function timer has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                                Open

                                                d3.timer = function(callback, delay, then) {
                                                  var found = false,
                                                      t0,
                                                      t1 = d3_timer_queue;
                                                
                                                
                                                Severity: Minor
                                                Found in zktest/src/main/webapp/js/d3.js - About 1 hr to fix

                                                  Function d3_svg_lineMonotoneTangents has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                                  Open

                                                  function d3_svg_lineMonotoneTangents(points) {
                                                    var tangents = [],
                                                        d,
                                                        a,
                                                        b,
                                                  Severity: Minor
                                                  Found in zktest/src/main/webapp/js/d3.js - About 1 hr to fix

                                                    Function d3_svg_line has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                                    Open

                                                    function d3_svg_line(projection) {
                                                      var x = d3_svg_lineX,
                                                          y = d3_svg_lineY,
                                                          interpolate = "linear",
                                                          interpolator = d3_svg_lineInterpolators[interpolate],
                                                    Severity: Minor
                                                    Found in zktest/src/main/webapp/js/d3.js - About 1 hr to fix

                                                      Function d3_dispatch has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                                      Open

                                                      function d3_dispatch(type) {
                                                        var dispatch = {},
                                                            listeners = [];
                                                      
                                                        dispatch.add = function(listener) {
                                                      Severity: Minor
                                                      Found in zktest/src/main/webapp/js/d3.js - About 1 hr to fix

                                                        Function drag has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                                        Open

                                                        d3.behavior.drag = function() {
                                                          var event = d3.dispatch("drag", "dragstart", "dragend");
                                                        
                                                          function drag() {
                                                            this
                                                        Severity: Minor
                                                        Found in zktest/src/main/webapp/js/d3.js - About 1 hr to fix

                                                          Function diagonal has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                                          Open

                                                          d3.svg.diagonal = function() {
                                                            var source = d3_svg_chordSource,
                                                                target = d3_svg_chordTarget,
                                                                projection = d3_svg_diagonalProjection;
                                                          
                                                          
                                                          Severity: Minor
                                                          Found in zktest/src/main/webapp/js/d3.js - About 1 hr to fix

                                                            Avoid deeply nested control flow statements.
                                                            Open

                                                                      for (j = i + 1; j < n; ++j) q[j].i -= 2;
                                                            Severity: Major
                                                            Found in zktest/src/main/webapp/js/d3.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 zktest/src/main/webapp/js/d3.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 zktest/src/main/webapp/js/d3.js - About 45 mins to fix

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

                                                                  d3.min = function(array, f) {
                                                                    var i = -1,
                                                                        n = array.length,
                                                                        a,
                                                                        b;
                                                                  Severity: Major
                                                                  Found in zktest/src/main/webapp/js/d3.js and 1 other location - About 1 day to fix
                                                                  zktest/src/main/webapp/js/d3.js on lines 94..107

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

                                                                  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

                                                                  d3.max = function(array, f) {
                                                                    var i = -1,
                                                                        n = array.length,
                                                                        a,
                                                                        b;
                                                                  Severity: Major
                                                                  Found in zktest/src/main/webapp/js/d3.js and 1 other location - About 1 day to fix
                                                                  zktest/src/main/webapp/js/d3.js on lines 80..93

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

                                                                  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

                                                                  d3.first = function(array, f) {
                                                                    var i = 0,
                                                                        n = array.length,
                                                                        a = array[0],
                                                                        b;
                                                                  Severity: Major
                                                                  Found in zktest/src/main/webapp/js/d3.js and 1 other location - About 4 hrs to fix
                                                                  zktest/src/main/webapp/js/d3.js on lines 197..209

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

                                                                  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

                                                                  d3_transitionPrototype.duration = function(value) {
                                                                    var groups = this;
                                                                    return groups.each(typeof value === "function"
                                                                        ? function(d, i, j) { groups[j][i].duration = +value.apply(this, arguments); }
                                                                        : (value = +value, function(d, i, j) { groups[j][i].duration = value; }));
                                                                  Severity: Major
                                                                  Found in zktest/src/main/webapp/js/d3.js and 1 other location - About 4 hrs to fix
                                                                  zktest/src/main/webapp/js/d3.js on lines 2065..2070

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

                                                                  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

                                                                  d3_transitionPrototype.delay = function(value) {
                                                                    var groups = this;
                                                                    return groups.each(typeof value === "function"
                                                                        ? function(d, i, j) { groups[j][i].delay = +value.apply(this, arguments); }
                                                                        : (value = +value, function(d, i, j) { groups[j][i].delay = value; }));
                                                                  Severity: Major
                                                                  Found in zktest/src/main/webapp/js/d3.js and 1 other location - About 4 hrs to fix
                                                                  zktest/src/main/webapp/js/d3.js on lines 2071..2076

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

                                                                  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

                                                                  d3.last = function(array, f) {
                                                                    var i = 0,
                                                                        n = array.length,
                                                                        a = array[0],
                                                                        b;
                                                                  Severity: Major
                                                                  Found in zktest/src/main/webapp/js/d3.js and 1 other location - About 4 hrs to fix
                                                                  zktest/src/main/webapp/js/d3.js on lines 184..196

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

                                                                  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

                                                                  function d3_svg_lineStepBefore(points) {
                                                                    var i = 0,
                                                                        n = points.length,
                                                                        p = points[0],
                                                                        path = [p[0], ",", p[1]];
                                                                  Severity: Major
                                                                  Found in zktest/src/main/webapp/js/d3.js and 2 other locations - About 3 hrs to fix
                                                                  zktest/src/main/webapp/js/d3.js on lines 2901..2908
                                                                  zktest/src/main/webapp/js/d3.js on lines 2921..2928

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

                                                                  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

                                                                  function d3_svg_lineLinear(points) {
                                                                    var i = 0,
                                                                        n = points.length,
                                                                        p = points[0],
                                                                        path = [p[0], ",", p[1]];
                                                                  Severity: Major
                                                                  Found in zktest/src/main/webapp/js/d3.js and 2 other locations - About 3 hrs to fix
                                                                  zktest/src/main/webapp/js/d3.js on lines 2911..2918
                                                                  zktest/src/main/webapp/js/d3.js on lines 2921..2928

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

                                                                  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

                                                                  function d3_svg_lineStepAfter(points) {
                                                                    var i = 0,
                                                                        n = points.length,
                                                                        p = points[0],
                                                                        path = [p[0], ",", p[1]];
                                                                  Severity: Major
                                                                  Found in zktest/src/main/webapp/js/d3.js and 2 other locations - About 3 hrs to fix
                                                                  zktest/src/main/webapp/js/d3.js on lines 2901..2908
                                                                  zktest/src/main/webapp/js/d3.js on lines 2911..2918

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

                                                                  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

                                                                  d3_selectionPrototype.text = function(value) {
                                                                    return arguments.length < 1 ? this.node().textContent
                                                                        : (this.each(typeof value === "function"
                                                                        ? function() { this.textContent = value.apply(this, arguments); }
                                                                        : function() { this.textContent = value; }));
                                                                  Severity: Major
                                                                  Found in zktest/src/main/webapp/js/d3.js and 1 other location - About 3 hrs to fix
                                                                  zktest/src/main/webapp/js/d3.js on lines 1509..1514

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

                                                                  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

                                                                  d3_selectionPrototype.html = function(value) {
                                                                    return arguments.length < 1 ? this.node().innerHTML
                                                                        : (this.each(typeof value === "function"
                                                                        ? function() { this.innerHTML = value.apply(this, arguments); }
                                                                        : function() { this.innerHTML = value; }));
                                                                  Severity: Major
                                                                  Found in zktest/src/main/webapp/js/d3.js and 1 other location - About 3 hrs to fix
                                                                  zktest/src/main/webapp/js/d3.js on lines 1503..1508

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

                                                                  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

                                                                          if (node) {
                                                                            node.__data__ = nodeData;
                                                                            updateNodes[i] = node;
                                                                            enterNodes[i] = exitNodes[i] = null;
                                                                          } else {
                                                                  Severity: Major
                                                                  Found in zktest/src/main/webapp/js/d3.js and 1 other location - About 2 hrs to fix
                                                                  zktest/src/main/webapp/js/d3.js on lines 1615..1622

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

                                                                  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

                                                                          if (node) {
                                                                            node.__data__ = nodeData;
                                                                            updateNodes[i] = node;
                                                                            enterNodes[i] = exitNodes[i] = null;
                                                                          } else {
                                                                  Severity: Major
                                                                  Found in zktest/src/main/webapp/js/d3.js and 1 other location - About 2 hrs to fix
                                                                  zktest/src/main/webapp/js/d3.js on lines 1595..1602

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

                                                                  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

                                                                  d3.xml = function(url, mime, callback) {
                                                                    function ready(req) {
                                                                      callback(req && req.responseXML);
                                                                    }
                                                                    if (arguments.length < 3) {
                                                                  Severity: Major
                                                                  Found in zktest/src/main/webapp/js/d3.js and 1 other location - About 2 hrs to fix
                                                                  zktest/src/main/webapp/js/d3.js on lines 387..396

                                                                  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

                                                                  d3.text = function(url, mime, callback) {
                                                                    function ready(req) {
                                                                      callback(req && req.responseText);
                                                                    }
                                                                    if (arguments.length < 3) {
                                                                  Severity: Major
                                                                  Found in zktest/src/main/webapp/js/d3.js and 1 other location - About 2 hrs to fix
                                                                  zktest/src/main/webapp/js/d3.js on lines 412..421

                                                                  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

                                                                      path += "Q" + (p[0] - t0[0] * 2 / 3) + "," + (p[1] - t0[1] * 2 / 3)
                                                                          + "," + p[0] + "," + p[1];
                                                                  Severity: Major
                                                                  Found in zktest/src/main/webapp/js/d3.js and 1 other location - About 2 hrs to fix
                                                                  zktest/src/main/webapp/js/d3.js on lines 2995..2996

                                                                  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

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

                                                                    while (++i < n) {
                                                                      pi = points[i];
                                                                      px.shift(); px.push(pi[0]);
                                                                      py.shift(); py.push(pi[1]);
                                                                      d3_svg_lineBasisBezier(path, px, py);
                                                                  Severity: Major
                                                                  Found in zktest/src/main/webapp/js/d3.js and 1 other location - About 2 hrs to fix
                                                                  zktest/src/main/webapp/js/d3.js on lines 3063..3068

                                                                  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

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

                                                                    --i; while (++i < n) {
                                                                      pi = points[i];
                                                                      px.shift(); px.push(pi[0]);
                                                                      py.shift(); py.push(pi[1]);
                                                                      d3_svg_lineBasisBezier(path, px, py);
                                                                  Severity: Major
                                                                  Found in zktest/src/main/webapp/js/d3.js and 1 other location - About 2 hrs to fix
                                                                  zktest/src/main/webapp/js/d3.js on lines 3032..3037

                                                                  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] + t[0] * 2 / 3) + "," + (p[1] + t[1] * 2 / 3)
                                                                          + "," + lp[0] + "," + lp[1];
                                                                  Severity: Major
                                                                  Found in zktest/src/main/webapp/js/d3.js and 1 other location - About 2 hrs to fix
                                                                  zktest/src/main/webapp/js/d3.js on lines 2972..2973

                                                                  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

                                                                        ? "M" + r1 * c0 + "," + r1 * s0
                                                                        + "A" + r1 + "," + r1 + " 0 " + df + ",1 " + r1 * c1 + "," + r1 * s1
                                                                        + "L" + r0 * c1 + "," + r0 * s1
                                                                  Severity: Major
                                                                  Found in zktest/src/main/webapp/js/d3.js and 1 other location - About 1 hr to fix
                                                                  zktest/src/main/webapp/js/d3.js on lines 2748..2751

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

                                                                  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

                                                                        : "M" + r1 * c0 + "," + r1 * s0
                                                                        + "A" + r1 + "," + r1 + " 0 " + df + ",1 " + r1 * c1 + "," + r1 * s1
                                                                        + "L0,0"
                                                                        + "Z");
                                                                  Severity: Major
                                                                  Found in zktest/src/main/webapp/js/d3.js and 1 other location - About 1 hr to fix
                                                                  zktest/src/main/webapp/js/d3.js on lines 2743..2745

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

                                                                  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

                                                                    var ar = a.r,
                                                                        ag = a.g,
                                                                        ab = a.b,
                                                                        br = b.r - ar,
                                                                        bg = b.g - ag,
                                                                  Severity: Major
                                                                  Found in zktest/src/main/webapp/js/d3.js and 1 other location - About 1 hr to fix
                                                                  zktest/src/main/webapp/js/d3.js on lines 850..855

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

                                                                  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

                                                                    var h0 = a.h,
                                                                        s0 = a.s,
                                                                        l0 = a.l,
                                                                        h1 = b.h - h0,
                                                                        s1 = b.s - s0,
                                                                  Severity: Major
                                                                  Found in zktest/src/main/webapp/js/d3.js and 1 other location - About 1 hr to fix
                                                                  zktest/src/main/webapp/js/d3.js on lines 832..837

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

                                                                  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

                                                                        : "M0," + r1
                                                                        + "A" + r1 + "," + r1 + " 0 1,1 0," + (-r1)
                                                                        + "A" + r1 + "," + r1 + " 0 1,1 0," + r1
                                                                        + "Z")
                                                                  Severity: Major
                                                                  Found in zktest/src/main/webapp/js/d3.js and 2 other locations - About 1 hr to fix
                                                                  zktest/src/main/webapp/js/d3.js on lines 2731..2734
                                                                  zktest/src/main/webapp/js/d3.js on lines 3577..3580

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

                                                                  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

                                                                      return "M0," + r
                                                                          + "A" + r + "," + r + " 0 1,1 0," + (-r)
                                                                          + "A" + r + "," + r + " 0 1,1 0," + r
                                                                          + "Z";
                                                                  Severity: Major
                                                                  Found in zktest/src/main/webapp/js/d3.js and 2 other locations - About 1 hr to fix
                                                                  zktest/src/main/webapp/js/d3.js on lines 2731..2734
                                                                  zktest/src/main/webapp/js/d3.js on lines 2738..2741

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

                                                                  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

                                                                        ? "M0," + r1
                                                                        + "A" + r1 + "," + r1 + " 0 1,1 0," + (-r1)
                                                                        + "A" + r1 + "," + r1 + " 0 1,1 0," + r1
                                                                        + "M0," + r0
                                                                  Severity: Major
                                                                  Found in zktest/src/main/webapp/js/d3.js and 2 other locations - About 1 hr to fix
                                                                  zktest/src/main/webapp/js/d3.js on lines 2738..2741
                                                                  zktest/src/main/webapp/js/d3.js on lines 3577..3580

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

                                                                  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

                                                                  d3.ascending = function(a, b) {
                                                                    return a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN;
                                                                  };
                                                                  Severity: Minor
                                                                  Found in zktest/src/main/webapp/js/d3.js and 1 other location - About 55 mins to fix
                                                                  zktest/src/main/webapp/js/d3.js on lines 59..61

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

                                                                  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

                                                                  d3.descending = function(a, b) {
                                                                    return b < a ? -1 : b > a ? 1 : b >= a ? 0 : NaN;
                                                                  };
                                                                  Severity: Minor
                                                                  Found in zktest/src/main/webapp/js/d3.js and 1 other location - About 55 mins to fix
                                                                  zktest/src/main/webapp/js/d3.js on lines 56..58

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

                                                                  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

                                                                    symbol.type = function(x) {
                                                                      if (!arguments.length) return type;
                                                                      type = d3.functor(x);
                                                                      return symbol;
                                                                    };
                                                                  Severity: Minor
                                                                  Found in zktest/src/main/webapp/js/d3.js and 1 other location - About 45 mins to fix
                                                                  zktest/src/main/webapp/js/d3.layout.js on lines 345..349

                                                                  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

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

                                                                    chord.radius = function(v) {
                                                                      if (!arguments.length) return radius;
                                                                      radius = d3.functor(v);
                                                                      return chord;
                                                                    };
                                                                  Severity: Major
                                                                  Found in zktest/src/main/webapp/js/d3.js and 11 other locations - About 40 mins to fix
                                                                  zktest/src/main/webapp/js/d3.js on lines 2754..2758
                                                                  zktest/src/main/webapp/js/d3.js on lines 2760..2764
                                                                  zktest/src/main/webapp/js/d3.js on lines 2766..2770
                                                                  zktest/src/main/webapp/js/d3.js on lines 2772..2776
                                                                  zktest/src/main/webapp/js/d3.js on lines 3396..3400
                                                                  zktest/src/main/webapp/js/d3.js on lines 3402..3406
                                                                  zktest/src/main/webapp/js/d3.js on lines 3408..3412
                                                                  zktest/src/main/webapp/js/d3.js on lines 3414..3418
                                                                  zktest/src/main/webapp/js/d3.js on lines 3456..3460
                                                                  zktest/src/main/webapp/js/d3.js on lines 3462..3466
                                                                  zktest/src/main/webapp/js/d3.layout.js on lines 354..358

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

                                                                    arc.innerRadius = function(v) {
                                                                      if (!arguments.length) return innerRadius;
                                                                      innerRadius = d3.functor(v);
                                                                      return arc;
                                                                    };
                                                                  Severity: Major
                                                                  Found in zktest/src/main/webapp/js/d3.js and 11 other locations - About 40 mins to fix
                                                                  zktest/src/main/webapp/js/d3.js on lines 2760..2764
                                                                  zktest/src/main/webapp/js/d3.js on lines 2766..2770
                                                                  zktest/src/main/webapp/js/d3.js on lines 2772..2776
                                                                  zktest/src/main/webapp/js/d3.js on lines 3390..3394
                                                                  zktest/src/main/webapp/js/d3.js on lines 3396..3400
                                                                  zktest/src/main/webapp/js/d3.js on lines 3402..3406
                                                                  zktest/src/main/webapp/js/d3.js on lines 3408..3412
                                                                  zktest/src/main/webapp/js/d3.js on lines 3414..3418
                                                                  zktest/src/main/webapp/js/d3.js on lines 3456..3460
                                                                  zktest/src/main/webapp/js/d3.js on lines 3462..3466
                                                                  zktest/src/main/webapp/js/d3.layout.js on lines 354..358

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

                                                                    arc.outerRadius = function(v) {
                                                                      if (!arguments.length) return outerRadius;
                                                                      outerRadius = d3.functor(v);
                                                                      return arc;
                                                                    };
                                                                  Severity: Major
                                                                  Found in zktest/src/main/webapp/js/d3.js and 11 other locations - About 40 mins to fix
                                                                  zktest/src/main/webapp/js/d3.js on lines 2754..2758
                                                                  zktest/src/main/webapp/js/d3.js on lines 2766..2770
                                                                  zktest/src/main/webapp/js/d3.js on lines 2772..2776
                                                                  zktest/src/main/webapp/js/d3.js on lines 3390..3394
                                                                  zktest/src/main/webapp/js/d3.js on lines 3396..3400
                                                                  zktest/src/main/webapp/js/d3.js on lines 3402..3406
                                                                  zktest/src/main/webapp/js/d3.js on lines 3408..3412
                                                                  zktest/src/main/webapp/js/d3.js on lines 3414..3418
                                                                  zktest/src/main/webapp/js/d3.js on lines 3456..3460
                                                                  zktest/src/main/webapp/js/d3.js on lines 3462..3466
                                                                  zktest/src/main/webapp/js/d3.layout.js on lines 354..358

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

                                                                    chord.endAngle = function(v) {
                                                                      if (!arguments.length) return endAngle;
                                                                      endAngle = d3.functor(v);
                                                                      return chord;
                                                                    };
                                                                  Severity: Major
                                                                  Found in zktest/src/main/webapp/js/d3.js and 11 other locations - About 40 mins to fix
                                                                  zktest/src/main/webapp/js/d3.js on lines 2754..2758
                                                                  zktest/src/main/webapp/js/d3.js on lines 2760..2764
                                                                  zktest/src/main/webapp/js/d3.js on lines 2766..2770
                                                                  zktest/src/main/webapp/js/d3.js on lines 2772..2776
                                                                  zktest/src/main/webapp/js/d3.js on lines 3390..3394
                                                                  zktest/src/main/webapp/js/d3.js on lines 3396..3400
                                                                  zktest/src/main/webapp/js/d3.js on lines 3402..3406
                                                                  zktest/src/main/webapp/js/d3.js on lines 3408..3412
                                                                  zktest/src/main/webapp/js/d3.js on lines 3456..3460
                                                                  zktest/src/main/webapp/js/d3.js on lines 3462..3466
                                                                  zktest/src/main/webapp/js/d3.layout.js on lines 354..358

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

                                                                    chord.source = function(v) {
                                                                      if (!arguments.length) return source;
                                                                      source = d3.functor(v);
                                                                      return chord;
                                                                    };
                                                                  Severity: Major
                                                                  Found in zktest/src/main/webapp/js/d3.js and 11 other locations - About 40 mins to fix
                                                                  zktest/src/main/webapp/js/d3.js on lines 2754..2758
                                                                  zktest/src/main/webapp/js/d3.js on lines 2760..2764
                                                                  zktest/src/main/webapp/js/d3.js on lines 2766..2770
                                                                  zktest/src/main/webapp/js/d3.js on lines 2772..2776
                                                                  zktest/src/main/webapp/js/d3.js on lines 3390..3394
                                                                  zktest/src/main/webapp/js/d3.js on lines 3402..3406
                                                                  zktest/src/main/webapp/js/d3.js on lines 3408..3412
                                                                  zktest/src/main/webapp/js/d3.js on lines 3414..3418
                                                                  zktest/src/main/webapp/js/d3.js on lines 3456..3460
                                                                  zktest/src/main/webapp/js/d3.js on lines 3462..3466
                                                                  zktest/src/main/webapp/js/d3.layout.js on lines 354..358

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

                                                                    chord.target = function(v) {
                                                                      if (!arguments.length) return target;
                                                                      target = d3.functor(v);
                                                                      return chord;
                                                                    };
                                                                  Severity: Major
                                                                  Found in zktest/src/main/webapp/js/d3.js and 11 other locations - About 40 mins to fix
                                                                  zktest/src/main/webapp/js/d3.js on lines 2754..2758
                                                                  zktest/src/main/webapp/js/d3.js on lines 2760..2764
                                                                  zktest/src/main/webapp/js/d3.js on lines 2766..2770
                                                                  zktest/src/main/webapp/js/d3.js on lines 2772..2776
                                                                  zktest/src/main/webapp/js/d3.js on lines 3390..3394
                                                                  zktest/src/main/webapp/js/d3.js on lines 3396..3400
                                                                  zktest/src/main/webapp/js/d3.js on lines 3408..3412
                                                                  zktest/src/main/webapp/js/d3.js on lines 3414..3418
                                                                  zktest/src/main/webapp/js/d3.js on lines 3456..3460
                                                                  zktest/src/main/webapp/js/d3.js on lines 3462..3466
                                                                  zktest/src/main/webapp/js/d3.layout.js on lines 354..358

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

                                                                    diagonal.source = function(x) {
                                                                      if (!arguments.length) return source;
                                                                      source = d3.functor(x);
                                                                      return diagonal;
                                                                    };
                                                                  Severity: Major
                                                                  Found in zktest/src/main/webapp/js/d3.js and 11 other locations - About 40 mins to fix
                                                                  zktest/src/main/webapp/js/d3.js on lines 2754..2758
                                                                  zktest/src/main/webapp/js/d3.js on lines 2760..2764
                                                                  zktest/src/main/webapp/js/d3.js on lines 2766..2770
                                                                  zktest/src/main/webapp/js/d3.js on lines 2772..2776
                                                                  zktest/src/main/webapp/js/d3.js on lines 3390..3394
                                                                  zktest/src/main/webapp/js/d3.js on lines 3396..3400
                                                                  zktest/src/main/webapp/js/d3.js on lines 3402..3406
                                                                  zktest/src/main/webapp/js/d3.js on lines 3408..3412
                                                                  zktest/src/main/webapp/js/d3.js on lines 3414..3418
                                                                  zktest/src/main/webapp/js/d3.js on lines 3462..3466
                                                                  zktest/src/main/webapp/js/d3.layout.js on lines 354..358

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

                                                                    arc.endAngle = function(v) {
                                                                      if (!arguments.length) return endAngle;
                                                                      endAngle = d3.functor(v);
                                                                      return arc;
                                                                    };
                                                                  Severity: Major
                                                                  Found in zktest/src/main/webapp/js/d3.js and 11 other locations - About 40 mins to fix
                                                                  zktest/src/main/webapp/js/d3.js on lines 2754..2758
                                                                  zktest/src/main/webapp/js/d3.js on lines 2760..2764
                                                                  zktest/src/main/webapp/js/d3.js on lines 2766..2770
                                                                  zktest/src/main/webapp/js/d3.js on lines 3390..3394
                                                                  zktest/src/main/webapp/js/d3.js on lines 3396..3400
                                                                  zktest/src/main/webapp/js/d3.js on lines 3402..3406
                                                                  zktest/src/main/webapp/js/d3.js on lines 3408..3412
                                                                  zktest/src/main/webapp/js/d3.js on lines 3414..3418
                                                                  zktest/src/main/webapp/js/d3.js on lines 3456..3460
                                                                  zktest/src/main/webapp/js/d3.js on lines 3462..3466
                                                                  zktest/src/main/webapp/js/d3.layout.js on lines 354..358

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

                                                                    chord.startAngle = function(v) {
                                                                      if (!arguments.length) return startAngle;
                                                                      startAngle = d3.functor(v);
                                                                      return chord;
                                                                    };
                                                                  Severity: Major
                                                                  Found in zktest/src/main/webapp/js/d3.js and 11 other locations - About 40 mins to fix
                                                                  zktest/src/main/webapp/js/d3.js on lines 2754..2758
                                                                  zktest/src/main/webapp/js/d3.js on lines 2760..2764
                                                                  zktest/src/main/webapp/js/d3.js on lines 2766..2770
                                                                  zktest/src/main/webapp/js/d3.js on lines 2772..2776
                                                                  zktest/src/main/webapp/js/d3.js on lines 3390..3394
                                                                  zktest/src/main/webapp/js/d3.js on lines 3396..3400
                                                                  zktest/src/main/webapp/js/d3.js on lines 3402..3406
                                                                  zktest/src/main/webapp/js/d3.js on lines 3414..3418
                                                                  zktest/src/main/webapp/js/d3.js on lines 3456..3460
                                                                  zktest/src/main/webapp/js/d3.js on lines 3462..3466
                                                                  zktest/src/main/webapp/js/d3.layout.js on lines 354..358

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

                                                                    diagonal.target = function(x) {
                                                                      if (!arguments.length) return target;
                                                                      target = d3.functor(x);
                                                                      return diagonal;
                                                                    };
                                                                  Severity: Major
                                                                  Found in zktest/src/main/webapp/js/d3.js and 11 other locations - About 40 mins to fix
                                                                  zktest/src/main/webapp/js/d3.js on lines 2754..2758
                                                                  zktest/src/main/webapp/js/d3.js on lines 2760..2764
                                                                  zktest/src/main/webapp/js/d3.js on lines 2766..2770
                                                                  zktest/src/main/webapp/js/d3.js on lines 2772..2776
                                                                  zktest/src/main/webapp/js/d3.js on lines 3390..3394
                                                                  zktest/src/main/webapp/js/d3.js on lines 3396..3400
                                                                  zktest/src/main/webapp/js/d3.js on lines 3402..3406
                                                                  zktest/src/main/webapp/js/d3.js on lines 3408..3412
                                                                  zktest/src/main/webapp/js/d3.js on lines 3414..3418
                                                                  zktest/src/main/webapp/js/d3.js on lines 3456..3460
                                                                  zktest/src/main/webapp/js/d3.layout.js on lines 354..358

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

                                                                    arc.startAngle = function(v) {
                                                                      if (!arguments.length) return startAngle;
                                                                      startAngle = d3.functor(v);
                                                                      return arc;
                                                                    };
                                                                  Severity: Major
                                                                  Found in zktest/src/main/webapp/js/d3.js and 11 other locations - About 40 mins to fix
                                                                  zktest/src/main/webapp/js/d3.js on lines 2754..2758
                                                                  zktest/src/main/webapp/js/d3.js on lines 2760..2764
                                                                  zktest/src/main/webapp/js/d3.js on lines 2772..2776
                                                                  zktest/src/main/webapp/js/d3.js on lines 3390..3394
                                                                  zktest/src/main/webapp/js/d3.js on lines 3396..3400
                                                                  zktest/src/main/webapp/js/d3.js on lines 3402..3406
                                                                  zktest/src/main/webapp/js/d3.js on lines 3408..3412
                                                                  zktest/src/main/webapp/js/d3.js on lines 3414..3418
                                                                  zktest/src/main/webapp/js/d3.js on lines 3456..3460
                                                                  zktest/src/main/webapp/js/d3.js on lines 3462..3466
                                                                  zktest/src/main/webapp/js/d3.layout.js on lines 354..358

                                                                  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

                                                                  There are no issues that match your filters.

                                                                  Category
                                                                  Status