backlogs/redmine_backlogs

View on GitHub
assets/javascripts/jquery/jquery.jqplot/plugins/jqplot.cursor.js

Summary

Maintainability
F
2 wks
Test Coverage

File jqplot.cursor.js has 864 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/**
 * jqPlot
 * Pure JavaScript plotting plugin using jQuery
 *
 * Version: 1.0.0
Severity: Major
Found in assets/javascripts/jquery/jquery.jqplot/plugins/jqplot.cursor.js - About 2 days to fix

    Function doZoom has 81 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        $.jqplot.Cursor.prototype.doZoom = function (gridpos, datapos, plot, cursor) {
            var c = cursor;
            var axes = plot.axes;
            var zaxes = c._zoom.axes;
            var start = zaxes.start;
    Severity: Major
    Found in assets/javascripts/jquery/jquery.jqplot/plugins/jqplot.cursor.js - About 3 hrs to fix

      Function updateTooltip has 65 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          function updateTooltip(gridpos, datapos, plot) {
              var c = plot.plugins.cursor;
              var s = '';
              var addbr = false;
              if (c.showTooltipGridPosition) {
      Severity: Major
      Found in assets/javascripts/jquery/jquery.jqplot/plugins/jqplot.cursor.js - About 2 hrs to fix

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

            $.jqplot.CursorLegendRenderer.prototype.draw = function() {
                if (this._elem) {
                    this._elem.emptyForce();
                    this._elem = null;
                }
        Severity: Major
        Found in assets/javascripts/jquery/jquery.jqplot/plugins/jqplot.cursor.js - About 2 hrs to fix

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

              function positionTooltip(plot) { 
                  // fake a grid for positioning
                  var grid = plot._gridPadding; 
                  var c = plot.plugins.cursor;
                  var elem = c._tooltipElem;  
          Severity: Major
          Found in assets/javascripts/jquery/jquery.jqplot/plugins/jqplot.cursor.js - About 2 hrs to fix

            Function postDraw has 51 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                $.jqplot.Cursor.postDraw = function() {
                    var c = this.plugins.cursor;
                    
                    // Memory Leaks patch
                    if (c.zoomCanvas) {
            Severity: Major
            Found in assets/javascripts/jquery/jquery.jqplot/plugins/jqplot.cursor.js - About 2 hrs to fix

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

                  function handleMouseUp(ev) {
                      var plot = ev.data.plot;
                      var c = plot.plugins.cursor;
                      if (c.zoom && c._zoom.zooming && !c.zoomTarget) {
                          var xpos = c._zoom.gridpos.x;
              Severity: Minor
              Found in assets/javascripts/jquery/jquery.jqplot/plugins/jqplot.cursor.js - About 2 hrs to fix

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

                    $.jqplot.Cursor.init = function (target, data, opts){
                        // add a cursor attribute to the plot
                        var options = opts || {};
                        this.plugins.cursor = new $.jqplot.Cursor(options.cursor);
                        var c = this.plugins.cursor;
                Severity: Minor
                Found in assets/javascripts/jquery/jquery.jqplot/plugins/jqplot.cursor.js - About 2 hrs to fix

                  Function handleMouseDown has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      function handleMouseDown(ev, gridpos, datapos, neighbor, plot) {
                          var c = plot.plugins.cursor;
                          if(plot.plugins.mobile){
                              $(document).one('vmouseup.jqplot_cursor', {plot:plot}, handleMouseUp);
                          } else {
                  Severity: Minor
                  Found in assets/javascripts/jquery/jquery.jqplot/plugins/jqplot.cursor.js - About 1 hr to fix

                    Function moveTooltip has 43 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        function moveTooltip(gridpos, plot) {
                            var c = plot.plugins.cursor;  
                            var elem = c._tooltipElem;
                            switch (c.tooltipLocation) {
                                case 'nw':
                    Severity: Minor
                    Found in assets/javascripts/jquery/jquery.jqplot/plugins/jqplot.cursor.js - About 1 hr to fix

                      Function moveLine has 43 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          function moveLine(gridpos, plot) {
                              var c = plot.plugins.cursor;
                              var ctx = c.cursorCanvas._ctx;
                              ctx.clearRect(0,0,ctx.canvas.width, ctx.canvas.height);
                              if (c.showVerticalLine) {
                      Severity: Minor
                      Found in assets/javascripts/jquery/jquery.jqplot/plugins/jqplot.cursor.js - About 1 hr to fix

                        Function handleZoomMove has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            function handleZoomMove(ev) {
                                var plot = ev.data.plot;
                                var c = plot.plugins.cursor;
                                // don't do anything if not on grid.
                                if (c.show && c.zoom && c._zoom.started && !c.zoomTarget) {
                        Severity: Minor
                        Found in assets/javascripts/jquery/jquery.jqplot/plugins/jqplot.cursor.js - About 1 hr to fix

                          Function Cursor has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              $.jqplot.Cursor = function(options) {
                                  // Group: Properties
                                  //
                                  // prop: style
                                  // CSS spec for cursor style
                          Severity: Minor
                          Found in assets/javascripts/jquery/jquery.jqplot/plugins/jqplot.cursor.js - About 1 hr to fix

                            Function handleMouseLeave has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                function handleMouseLeave(ev, gridpos, datapos, neighbor, plot) {
                                    var c = plot.plugins.cursor;
                                    c.onGrid = false;
                                    if (c.show) {
                                        $(ev.target).css('cursor', c.previousCursor);
                            Severity: Minor
                            Found in assets/javascripts/jquery/jquery.jqplot/plugins/jqplot.cursor.js - About 1 hr to fix

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

                                  function drawZoomBox() {
                                      var start = this._zoom.start;
                                      var end = this._zoom.end;
                                      var ctx = this.zoomCanvas._ctx;
                                      var l, t, h, w;
                              Severity: Minor
                              Found in assets/javascripts/jquery/jquery.jqplot/plugins/jqplot.cursor.js - About 1 hr to fix

                                Consider simplifying this complex logical expression.
                                Open

                                        if ((c.constrainZoomTo == 'none' && Math.abs(gridpos.x - c._zoom.start[0]) > 6 && Math.abs(gridpos.y - c._zoom.start[1]) > 6) || (c.constrainZoomTo == 'x' && Math.abs(gridpos.x - c._zoom.start[0]) > 6) ||  (c.constrainZoomTo == 'y' && Math.abs(gridpos.y - c._zoom.start[1]) > 6)) {
                                            if (!plot.plugins.cursor.zoomProxy) {
                                                for (var ax in datapos) {
                                                    // make a copy of the original axes to revert back.
                                                    if (c._zoom.axes[ax] == undefined) {
                                Severity: Major
                                Found in assets/javascripts/jquery/jquery.jqplot/plugins/jqplot.cursor.js - About 1 hr to fix

                                  Avoid deeply nested control flow statements.
                                  Open

                                                          if (axis.charAt(0) == 'x') {
                                                              datapos[axis] = axes[axis].series_p2u(xpos);
                                                          }
                                                          else {
                                                              datapos[axis] = axes[axis].series_p2u(ypos);
                                  Severity: Major
                                  Found in assets/javascripts/jquery/jquery.jqplot/plugins/jqplot.cursor.js - About 45 mins to fix

                                    Avoid deeply nested control flow statements.
                                    Open

                                                            if (addbr) {
                                                                s += '<br />';
                                                            }
                                    Severity: Major
                                    Found in assets/javascripts/jquery/jquery.jqplot/plugins/jqplot.cursor.js - About 45 mins to fix

                                      Avoid deeply nested control flow statements.
                                      Open

                                                              if (c.useAxesFormatters) {
                                                                  var xf = series[i]._xaxis._ticks[0].formatter;
                                                                  var yf = series[i]._yaxis._ticks[0].formatter;
                                                                  var xfstr = series[i]._xaxis._ticks[0].formatString;
                                                                  var yfstr = series[i]._yaxis._ticks[0].formatString;
                                      Severity: Major
                                      Found in assets/javascripts/jquery/jquery.jqplot/plugins/jqplot.cursor.js - About 45 mins to fix

                                        Avoid deeply nested control flow statements.
                                        Open

                                                                if (Math.abs(x-p[0]) <= threshold) {
                                                                    ret.indices.push(i);
                                                                    ret.data.push({seriesIndex: i, pointIndex:j, gridData:p, data:s.data[j]});
                                                                }
                                        Severity: Major
                                        Found in assets/javascripts/jquery/jquery.jqplot/plugins/jqplot.cursor.js - About 45 mins to fix

                                          Avoid deeply nested control flow statements.
                                          Open

                                                                  if (item) {
                                                                      addrow.call(this, item.label, item.color, pad);
                                                                      pad = true;
                                                                  } 
                                          Severity: Major
                                          Found in assets/javascripts/jquery/jquery.jqplot/plugins/jqplot.cursor.js - About 45 mins to fix

                                            Avoid deeply nested control flow statements.
                                            Open

                                                                    if (dp != null) {           
                                                                        if (dp > start[ax]) { 
                                                                            newmin = start[ax];
                                                                            newmax = dp;
                                                                        }
                                            Severity: Major
                                            Found in assets/javascripts/jquery/jquery.jqplot/plugins/jqplot.cursor.js - About 45 mins to fix

                                              Avoid deeply nested control flow statements.
                                              Open

                                                                      if (j) {
                                                                          s += ', ';
                                                                      }
                                              Severity: Major
                                              Found in assets/javascripts/jquery/jquery.jqplot/plugins/jqplot.cursor.js - About 45 mins to fix

                                                Avoid deeply nested control flow statements.
                                                Open

                                                                        if (s._stack && !s.fill) {
                                                                            color = '';
                                                                        }
                                                Severity: Major
                                                Found in assets/javascripts/jquery/jquery.jqplot/plugins/jqplot.cursor.js - About 45 mins to fix

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

                                                      function handleClick (ev, gridpos, datapos, neighbor, plot) {
                                                  Severity: Minor
                                                  Found in assets/javascripts/jquery/jquery.jqplot/plugins/jqplot.cursor.js - About 35 mins to fix

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

                                                        function handleDblClick (ev, gridpos, datapos, neighbor, plot) {
                                                    Severity: Minor
                                                    Found in assets/javascripts/jquery/jquery.jqplot/plugins/jqplot.cursor.js - About 35 mins to fix

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

                                                              function plotZoom(ev, gridpos, datapos, plot, cursor) {
                                                      Severity: Minor
                                                      Found in assets/javascripts/jquery/jquery.jqplot/plugins/jqplot.cursor.js - About 35 mins to fix

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

                                                            function handleMouseEnter(ev, gridpos, datapos, neighbor, plot) {
                                                        Severity: Minor
                                                        Found in assets/javascripts/jquery/jquery.jqplot/plugins/jqplot.cursor.js - About 35 mins to fix

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

                                                              function handleMouseLeave(ev, gridpos, datapos, neighbor, plot) {
                                                          Severity: Minor
                                                          Found in assets/javascripts/jquery/jquery.jqplot/plugins/jqplot.cursor.js - About 35 mins to fix

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

                                                                function handleMouseDown(ev, gridpos, datapos, neighbor, plot) {
                                                            Severity: Minor
                                                            Found in assets/javascripts/jquery/jquery.jqplot/plugins/jqplot.cursor.js - About 35 mins to fix

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

                                                                  function handleMouseMove(ev, gridpos, datapos, neighbor, plot) {
                                                              Severity: Minor
                                                              Found in assets/javascripts/jquery/jquery.jqplot/plugins/jqplot.cursor.js - About 35 mins to fix

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

                                                                    function handleClick (ev, gridpos, datapos, neighbor, plot) {
                                                                        ev.preventDefault();
                                                                        ev.stopImmediatePropagation();
                                                                        var c = plot.plugins.cursor;
                                                                        if (c.clickReset) {
                                                                assets/javascripts/jquery/jquery.jqplot/plugins/jqplot.cursor.js on lines 735..751

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

                                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                Refactorings

                                                                Further Reading

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

                                                                    function handleDblClick (ev, gridpos, datapos, neighbor, plot) {
                                                                        ev.preventDefault();
                                                                        ev.stopImmediatePropagation();
                                                                        var c = plot.plugins.cursor;
                                                                        if (c.dblClickReset) {
                                                                assets/javascripts/jquery/jquery.jqplot/plugins/jqplot.cursor.js on lines 717..733

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

                                                                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

                                                                            case 'w':
                                                                                var a = grid.left + c.tooltipOffset;
                                                                                var b = (grid.top + (plot._plotDimensions.height - grid.bottom))/2 - elem.outerHeight(true)/2;
                                                                                elem.css({left:a, top:b});
                                                                                break;
                                                                assets/javascripts/jquery/jquery.jqplot/plugins/jqplot.cursor.js on lines 683..687

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

                                                                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

                                                                            case 'e':
                                                                                var a = grid.right + c.tooltipOffset;
                                                                                var b = (grid.top + (plot._plotDimensions.height - grid.bottom))/2 - elem.outerHeight(true)/2;
                                                                                elem.css({right:a, top:b});
                                                                                break;
                                                                assets/javascripts/jquery/jquery.jqplot/plugins/jqplot.cursor.js on lines 703..707

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

                                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                Refactorings

                                                                Further Reading

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

                                                                                if (plot.legend.escapeHtml) {
                                                                                    $(cells[i]).text($.jqplot.sprintf(c.cursorLegendFormatString, label, sx, sy));
                                                                                }
                                                                                else {
                                                                                    $(cells[i]).html($.jqplot.sprintf(c.cursorLegendFormatString, label, sx, sy));
                                                                assets/javascripts/jquery/jquery.jqplot/plugins/jqplot.cursor.js on lines 777..782

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

                                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                Refactorings

                                                                Further Reading

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

                                                                                    if (plot.legend.escapeHtml) {
                                                                                        $(cells[i]).text($.jqplot.sprintf(c.cursorLegendFormatString, label, undefined, undefined));
                                                                                    }
                                                                                    else {
                                                                                        $(cells[i]).html($.jqplot.sprintf(c.cursorLegendFormatString, label, undefined, undefined));
                                                                assets/javascripts/jquery/jquery.jqplot/plugins/jqplot.cursor.js on lines 574..579

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

                                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                Refactorings

                                                                Further Reading

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

                                                                                                if (axes[ax].tickInset && ret[0] < axes[ax].min + axes[ax].tickInset * axes[ax].tickInterval) {
                                                                                                    ret[0] += ret[4];
                                                                                                    ret[2] -= 1;
                                                                                                }
                                                                assets/javascripts/jquery/jquery.jqplot/plugins/jqplot.cursor.js on lines 415..418

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

                                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                Refactorings

                                                                Further Reading

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

                                                                                                if (axes[ax].tickInset && ret[1] > axes[ax].max - axes[ax].tickInset * axes[ax].tickInterval) {
                                                                                                    ret[1] -= ret[4];
                                                                                                    ret[2] -= 1;
                                                                                                }
                                                                assets/javascripts/jquery/jquery.jqplot/plugins/jqplot.cursor.js on lines 409..412

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

                                                                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

                                                                        for (n=11; n>0; n--) {
                                                                            axis = an[n-1];
                                                                            if (ax[axis].show) {
                                                                                dataPos[axis] = ax[axis].series_p2u(gridPos[axis.charAt(0)]);
                                                                            }
                                                                assets/javascripts/jquery/jquery.jqplot/jquery.jqplot.js on lines 3121..3126

                                                                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

                                                                        if (end[0] > start[0]) {
                                                                            l = start[0];
                                                                            w = end[0] - start[0];
                                                                        }
                                                                        else {
                                                                assets/javascripts/jquery/jquery.jqplot/plugins/jqplot.cursor.js on lines 1015..1022

                                                                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

                                                                        if (end[1] > start[1]) {
                                                                            t = start[1];
                                                                            h = end[1] - start[1];
                                                                        }
                                                                        else {
                                                                assets/javascripts/jquery/jquery.jqplot/plugins/jqplot.cursor.js on lines 1007..1014

                                                                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

                                                                        if (c.zoom) {
                                                                            c.zoomCanvas = new $.jqplot.GenericCanvas();
                                                                            this.eventCanvas._elem.before(c.zoomCanvas.createElement(this._gridPadding, 'jqplot-zoom-canvas', this._plotDimensions, this));
                                                                            c.zoomCanvas.setContext();
                                                                        }
                                                                assets/javascripts/jquery/jquery.jqplot/plugins/jqplot.cursor.js on lines 260..264

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

                                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                Refactorings

                                                                Further Reading

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

                                                                        if (c.showVerticalLine || c.showHorizontalLine) {
                                                                            c.cursorCanvas = new $.jqplot.GenericCanvas();
                                                                            this.eventCanvas._elem.before(c.cursorCanvas.createElement(this._gridPadding, 'jqplot-cursor-canvas', this._plotDimensions, this));
                                                                            c.cursorCanvas.setContext();
                                                                        }
                                                                assets/javascripts/jquery/jquery.jqplot/plugins/jqplot.cursor.js on lines 239..243

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

                                                                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

                                                                        var dataPos = {xaxis:null, yaxis:null, x2axis:null, y2axis:null, y3axis:null, y4axis:null, y5axis:null, y6axis:null, y7axis:null, y8axis:null, y9axis:null, yMidAxis:null};
                                                                assets/javascripts/jquery/jquery.jqplot/jquery.jqplot.js on lines 3117..3117

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

                                                                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

                                                                            case 'se':
                                                                                var a = grid.right + c.tooltipOffset;
                                                                                var b = grid.bottom + c.tooltipOffset;
                                                                                elem.css({right:a, bottom:b});
                                                                                break;
                                                                assets/javascripts/jquery/jquery.jqplot/plugins/jqplot.cursor.js on lines 678..682
                                                                assets/javascripts/jquery/jquery.jqplot/plugins/jqplot.cursor.js on lines 698..702

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

                                                                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

                                                                            case 'ne':
                                                                                var a = grid.right + c.tooltipOffset;
                                                                                var b = grid.top + c.tooltipOffset;
                                                                                elem.css({right:a, top:b});
                                                                                break;
                                                                assets/javascripts/jquery/jquery.jqplot/plugins/jqplot.cursor.js on lines 688..692
                                                                assets/javascripts/jquery/jquery.jqplot/plugins/jqplot.cursor.js on lines 698..702

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

                                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                Refactorings

                                                                Further Reading

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

                                                                        if (document.ondrag != undefined && c._oldHandlers.ondrag != null){
                                                                            document.ondrag = c._oldHandlers.ondrag;
                                                                            c._oldHandlers.ondrag = null;
                                                                        }
                                                                assets/javascripts/jquery/jquery.jqplot/plugins/jqplot.cursor.js on lines 987..990
                                                                assets/javascripts/jquery/jquery.jqplot/plugins/jqplot.cursor.js on lines 995..998

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

                                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                Refactorings

                                                                Further Reading

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

                                                                        if (document.onselectstart != undefined && c._oldHandlers.onselectstart != null){
                                                                            document.onselectstart = c._oldHandlers.onselectstart;
                                                                            c._oldHandlers.onselectstart = null;
                                                                        }
                                                                assets/javascripts/jquery/jquery.jqplot/plugins/jqplot.cursor.js on lines 991..994
                                                                assets/javascripts/jquery/jquery.jqplot/plugins/jqplot.cursor.js on lines 995..998

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

                                                                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

                                                                            case 'sw':
                                                                                var a = grid.left + c.tooltipOffset;
                                                                                var b = grid.bottom + c.tooltipOffset;
                                                                                elem.css({left:a, bottom:b});
                                                                                break;
                                                                assets/javascripts/jquery/jquery.jqplot/plugins/jqplot.cursor.js on lines 678..682
                                                                assets/javascripts/jquery/jquery.jqplot/plugins/jqplot.cursor.js on lines 688..692

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

                                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                Refactorings

                                                                Further Reading

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

                                                                        if(plot.plugins.mobile){
                                                                            $(document).one('vmouseup.jqplot_cursor', {plot:plot}, handleMouseUp);
                                                                        } else {
                                                                            $(document).one('mouseup.jqplot_cursor', {plot:plot}, handleMouseUp);
                                                                        }
                                                                assets/javascripts/jquery/jquery.jqplot/plugins/jqplot.cursor.js on lines 933..937

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

                                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                Refactorings

                                                                Further Reading

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

                                                                           if(plot.plugins.mobile){
                                                                                $(document).bind('vmousemove.jqplotCursor', {plot:plot}, handleZoomMove);              
                                                                            } else {
                                                                                $(document).bind('mousemove.jqplotCursor', {plot:plot}, handleZoomMove);              
                                                                            }
                                                                assets/javascripts/jquery/jquery.jqplot/plugins/jqplot.cursor.js on lines 895..899

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

                                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                Refactorings

                                                                Further Reading

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

                                                                        if (document.onmousedown != undefined && c._oldHandlers.onmousedown != null){
                                                                            document.onmousedown = c._oldHandlers.onmousedown;
                                                                            c._oldHandlers.onmousedown = null;
                                                                        }
                                                                assets/javascripts/jquery/jquery.jqplot/plugins/jqplot.cursor.js on lines 987..990
                                                                assets/javascripts/jquery/jquery.jqplot/plugins/jqplot.cursor.js on lines 991..994

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

                                                                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

                                                                            default:
                                                                                var x = gridpos.x + plot._gridPadding.left + c.tooltipOffset;
                                                                                var y = gridpos.y + plot._gridPadding.top + c.tooltipOffset;
                                                                                break;
                                                                assets/javascripts/jquery/jquery.jqplot/plugins/jqplot.cursor.js on lines 633..636

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

                                                                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

                                                                            case 'se':
                                                                                var x = gridpos.x + plot._gridPadding.left + c.tooltipOffset;
                                                                                var y = gridpos.y + plot._gridPadding.top + c.tooltipOffset;
                                                                                break;
                                                                assets/javascripts/jquery/jquery.jqplot/plugins/jqplot.cursor.js on lines 649..652

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

                                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                Refactorings

                                                                Further Reading

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

                                                                            if (!c.zoomProxy) {
                                                                                var ctx = c.zoomCanvas._ctx;
                                                                                ctx.clearRect(0,0,ctx.canvas.width, ctx.canvas.height);
                                                                                ctx = null;
                                                                            }
                                                                assets/javascripts/jquery/jquery.jqplot/plugins/jqplot.cursor.js on lines 766..770

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

                                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                Refactorings

                                                                Further Reading

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

                                                                            if (c.showVerticalLine || c.showHorizontalLine) {
                                                                                var ctx = c.cursorCanvas._ctx;
                                                                                ctx.clearRect(0,0,ctx.canvas.width, ctx.canvas.height);
                                                                                ctx = null;
                                                                            }
                                                                assets/javascripts/jquery/jquery.jqplot/plugins/jqplot.cursor.js on lines 914..918

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

                                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                Refactorings

                                                                Further Reading

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

                                                                        if (document.ondrag != undefined) {
                                                                            c._oldHandlers.ondrag = document.ondrag;
                                                                            document.ondrag = function () { return false; };
                                                                        }
                                                                assets/javascripts/jquery/jquery.jqplot/plugins/jqplot.cursor.js on lines 901..904
                                                                assets/javascripts/jquery/jquery.jqplot/plugins/jqplot.cursor.js on lines 909..912

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

                                                                        if (document.onmousedown != undefined) {
                                                                            c._oldHandlers.onmousedown = document.onmousedown;
                                                                            document.onmousedown = function () { return false; };
                                                                        }
                                                                assets/javascripts/jquery/jquery.jqplot/plugins/jqplot.cursor.js on lines 901..904
                                                                assets/javascripts/jquery/jquery.jqplot/plugins/jqplot.cursor.js on lines 905..908

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

                                                                        if (document.onselectstart != undefined) {
                                                                            c._oldHandlers.onselectstart = document.onselectstart;
                                                                            document.onselectstart = function () { return false; };
                                                                        }
                                                                assets/javascripts/jquery/jquery.jqplot/plugins/jqplot.cursor.js on lines 905..908
                                                                assets/javascripts/jquery/jquery.jqplot/plugins/jqplot.cursor.js on lines 909..912

                                                                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

                                                                        if ((c.constrainZoomTo == 'none' && Math.abs(gridpos.x - c._zoom.start[0]) > 6 && Math.abs(gridpos.y - c._zoom.start[1]) > 6) || (c.constrainZoomTo == 'x' && Math.abs(gridpos.x - c._zoom.start[0]) > 6) ||  (c.constrainZoomTo == 'y' && Math.abs(gridpos.y - c._zoom.start[1]) > 6)) {
                                                                assets/javascripts/jquery/jquery.jqplot/plugins/jqplot.cursor.js on lines 360..360

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

                                                                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