backlogs/redmine_backlogs

View on GitHub

Showing 2,083 of 2,083 total issues

File jquery-ui.js has 8815 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*!
 * jQuery UI 1.8.16
 *
 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT or GPL Version 2 licenses.

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

    /**
     * Title: jqPlot Charts
     * 
     * Pure JavaScript plotting plugin for jQuery.
     * 
    Severity: Major
    Found in assets/javascripts/jquery/jquery.jqplot/jquery.jqplot.js - About 3 wks to fix

      File jquery.js has 6184 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      /*!
       * jQuery JavaScript Library v1.6.4
       * http://jquery.com/
       *
       * Copyright 2011, John Resig
      Severity: Major
      Found in assets/javascripts/jquery/jquery.jqplot/jquery.js - About 2 wks to fix

        Function jqPlot has 1466 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            function jqPlot() {
                // Group: Properties
                // These properties are specified at the top of the options object
                // like so:
                // > {
        Severity: Major
        Found in assets/javascripts/jquery/jquery.jqplot/jquery.jqplot.js - About 1 wk to fix

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

              $.jqplot.FunnelLegendRenderer.prototype.draw = function() {
                  var legend = this;
                  if (this.show) {
                      var series = this._series;
                      var ss = 'position:absolute;';
          assets/javascripts/jquery/jquery.jqplot/plugins/jqplot.donutRenderer.js on lines 513..615

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

          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

              $.jqplot.DonutLegendRenderer.prototype.draw = function() {
                  var legend = this;
                  if (this.show) {
                      var series = this._series;
                      var ss = 'position:absolute;';
          assets/javascripts/jquery/jquery.jqplot/plugins/jqplot.funnelRenderer.js on lines 552..654

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

          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

          File yahooData.js has 1807 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          var yahoo=[["2011-10-18",580.19,592.56,577.40,590.51,3800800,590.51],
          ["2011-10-17",583.72,591.83,578.00,582.41,4008200,582.41],
          ["2011-10-14",599.47,599.60,587.57,591.68,8529900,591.68],
          ["2011-10-13",550.03,559.00,548.02,558.99,5639600,558.99],
          ["2011-10-12",548.13,555.23,544.63,548.50,3177800,548.50],
          Severity: Major
          Found in assets/javascripts/jquery/jquery.jqplot/examples/yahooData.js - About 4 days to fix

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

                        if (this.name == 'xaxis' || this.name == 'x2axis') {
                            for (var i=0; i<ticks.length; i++) {
                                var t = ticks[i];
                                if (t.show && t.showLabel) {
                                    var shim;
            Severity: Major
            Found in assets/javascripts/jquery/jquery.jqplot/jquery.jqplot.js and 1 other location - About 4 days to fix
            assets/javascripts/jquery/jquery.jqplot/plugins/jqplot.pyramidAxisRenderer.js on lines 606..723

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

            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 (this.name.charAt(0) === 'x') {
                            for (var i=0; i<ticks.length; i++) {
                                var t = ticks[i];
                                if (t.show && t.showLabel) {
                                    var shim;
            assets/javascripts/jquery/jquery.jqplot/jquery.jqplot.js on lines 6818..6933

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

            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 (data.length == 2) {
                        if (idx == 0) {
                            this.gridData = [
                                [xp.call(this._xaxis, data[0][0]), yp.call(this._yaxis, data[0][1])], 
                                [xp.call(this._xaxis, data[1][0]), yp.call(this._yaxis, data[1][1]), 
            assets/javascripts/jquery/jquery.jqplot/plugins/jqplot.BezierCurveRenderer.js on lines 85..109

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

            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

                    else {
                        if (idx == 0) {
                            this.gridData = [
                                [xp.call(this._xaxis, data[0][0]), yp.call(this._yaxis, data[0][1])], 
                                [xp.call(this._xaxis, data[1][0]), yp.call(this._yaxis, data[1][1]), 
            assets/javascripts/jquery/jquery.jqplot/plugins/jqplot.BezierCurveRenderer.js on lines 60..84

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

            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 (data.length == 2) {
                        if (idx == 0) {
                            gd = [
                                [xp.call(this._xaxis, data[0][0]), yp.call(this._yaxis, data[0][1])], 
                                [xp.call(this._xaxis, data[1][0]), yp.call(this._yaxis, data[1][1]), 
            assets/javascripts/jquery/jquery.jqplot/plugins/jqplot.BezierCurveRenderer.js on lines 152..176

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

            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

                    else {
                        if (idx == 0) {
                            gd = [
                                [xp.call(this._xaxis, data[0][0]), yp.call(this._yaxis, data[0][1])], 
                                [xp.call(this._xaxis, data[1][0]), yp.call(this._yaxis, data[1][1]), 
            assets/javascripts/jquery/jquery.jqplot/plugins/jqplot.BezierCurveRenderer.js on lines 127..151

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

            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

            File jquery.colorpicker.js has 1345 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            /*jslint devel: true, bitwise: true, regexp: true, browser: true, confusion: true, unparam: true, eqeq: true, white: true, nomen: true, plusplus: true, maxerr: 50, indent: 4 */
            /*globals jQuery */
            
            /*
             * ColorPicker v0.6

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

                          for (var i=0, l=this.series.length; i<l; i++) {
                              // set default stacking order for series canvases
                              this.seriesStack.push(i);
                              this.previousSeriesStack.push(i);
                              this.series[i].shadowCanvas._plotDimensions = this._plotDimensions;
              Severity: Major
              Found in assets/javascripts/jquery/jquery.jqplot/jquery.jqplot.js and 1 other location - About 3 days to fix
              assets/javascripts/jquery/jquery.jqplot/jquery.jqplot.js on lines 2098..2121

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

              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 (var i=0; i<this.series.length; i++) {
                              // set default stacking order for series canvases
                              this.seriesStack.push(i);
                              this.previousSeriesStack.push(i);
                              this.series[i].shadowCanvas._plotDimensions = this._plotDimensions;
              Severity: Major
              Found in assets/javascripts/jquery/jquery.jqplot/jquery.jqplot.js and 1 other location - About 3 days to fix
              assets/javascripts/jquery/jquery.jqplot/jquery.jqplot.js on lines 2286..2309

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

              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 ((-Math.PI/2 <= this.angle && this.angle <= 0) || (Math.PI*3/2 <= this.angle && this.angle <= Math.PI*2)) {
                           tx = 0;
                           ty = -Math.sin(this.angle) * this.width;
                       }
                       // 4th quadrant
              assets/javascripts/jquery/jquery.jqplot/plugins/jqplot.canvasTextRenderer.js on lines 417..435

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

              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 ((-Math.PI/2 <= this.angle && this.angle <= 0) || (Math.PI*3/2 <= this.angle && this.angle <= Math.PI*2)) {
                           tx = 0;
                           ty = -Math.sin(this.angle) * this.width;
                       }
                       // 4th quadrant
              assets/javascripts/jquery/jquery.jqplot/plugins/jqplot.canvasTextRenderer.js on lines 227..245

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

              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 'horizontalLine':
                                          
                                          // style and shadow properties should be set before
                                          // every draw of marker renderer.
                                          if (obj.options.y != null) {
              assets/javascripts/jquery/jquery.jqplot/plugins/jqplot.canvasOverlay.js on lines 509..550

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

              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 'verticalLine':
                                          
                                          // style and shadow properties should be set before
                                          // every draw of marker renderer.
                                          if (obj.options.x != null) {
              assets/javascripts/jquery/jquery.jqplot/plugins/jqplot.canvasOverlay.js on lines 406..447

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

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

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

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

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

              Refactorings

              Further Reading

              Severity
              Category
              Status
              Source
              Language