Restream/redmine_custom_reports

View on GitHub

Showing 624 of 624 total issues

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

(function(){

var nv = window.nv || {};

nv.version = '0.0.1a';
Severity: Major
Found in assets/javascripts/nv.d3.js - About 3 wks to fix

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

    (function() {
      function d3_class(ctor, properties) {
        try {
          for (var key in properties) {
            Object.defineProperty(ctor.prototype, key, {
    Severity: Major
    Found in assets/javascripts/d3.v2.js - About 2 wks to fix

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

            var ae = slices.enter().append('g')
                    .attr('class', 'nv-slice')
                    .on('mouseover', function(d,i){
                      d3.select(this).classed('hover', true);
                      dispatch.elementMouseover({
      Severity: Major
      Found in assets/javascripts/nv.d3.js and 1 other location - About 2 days to fix
      assets/javascripts/nv.d3.js on lines 11088..11132

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

      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 ae = slices.enter().append('g')
                    .attr('class', 'nv-slice')
                    .on('mouseover', function(d,i){
                      d3.select(this).classed('hover', true);
                      dispatch.elementMouseover({
      Severity: Major
      Found in assets/javascripts/nv.d3.js and 1 other location - About 2 days to fix
      assets/javascripts/nv.d3.js on lines 7559..7603

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

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

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

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

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

      Refactorings

      Further Reading

      Function scatter has 455 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      nv.models.scatter = function() {
      
        //============================================================
        // Public Variables with Default Settings
        //------------------------------------------------------------
      Severity: Major
      Found in assets/javascripts/nv.d3.js - About 2 days to fix

        Function lineWithFocusChart has 367 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        nv.models.lineWithFocusChart = function() {
        
          //============================================================
          // Public Variables with Default Settings
          //------------------------------------------------------------
        Severity: Major
        Found in assets/javascripts/nv.d3.js - About 1 day to fix

          Function scatterPlusLineChart has 366 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          nv.models.scatterPlusLineChart = function() {
          
            //============================================================
            // Public Variables with Default Settings
            //------------------------------------------------------------
          Severity: Major
          Found in assets/javascripts/nv.d3.js - About 1 day to fix

            Function undevPieChart has 365 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            nv.models.undevPieChart = function() {
            
              //============================================================
              // Public Variables with Default Settings
              //------------------------------------------------------------
            Severity: Major
            Found in assets/javascripts/nv.d3.js - About 1 day to fix

              Function scatterChart has 364 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              nv.models.scatterChart = function() {
              
                //============================================================
                // Public Variables with Default Settings
                //------------------------------------------------------------
              Severity: Major
              Found in assets/javascripts/nv.d3.js - About 1 day to fix

                Function multiChart has 331 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                nv.models.multiChart = function() {
                
                  //============================================================
                  // Public Variables with Default Settings
                  //------------------------------------------------------------
                Severity: Major
                Found in assets/javascripts/nv.d3.js - About 1 day to fix

                  Function cumulativeLineChart has 309 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  nv.models.cumulativeLineChart = function() {
                  
                    //============================================================
                    // Public Variables with Default Settings
                    //------------------------------------------------------------
                  Severity: Major
                  Found in assets/javascripts/nv.d3.js - About 1 day to fix

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

                    nv.models.axis = function() {
                    
                      //============================================================
                      // Public Variables with Default Settings
                      //------------------------------------------------------------
                    Severity: Major
                    Found in assets/javascripts/nv.d3.js - About 1 day to fix

                      Function multiBar has 276 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      nv.models.multiBar = function() {
                      
                        //============================================================
                        // Public Variables with Default Settings
                        //------------------------------------------------------------
                      Severity: Major
                      Found in assets/javascripts/nv.d3.js - About 1 day to fix

                        Function multiBarHorizontal has 272 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        nv.models.multiBarHorizontal = function() {
                        
                          //============================================================
                          // Public Variables with Default Settings
                          //------------------------------------------------------------
                        Severity: Major
                        Found in assets/javascripts/nv.d3.js - About 1 day to fix

                          Function d3_voronoi_tessellate has 268 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                            function d3_voronoi_tessellate(vertices, callback) {
                              var Sites = {
                                list: vertices.map(function(v, i) {
                                  return {
                                    index: i,
                          Severity: Major
                          Found in assets/javascripts/d3.v2.js - About 1 day to fix

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

                                var left = e.pos[0] + ( offsetElement.offsetLeft || 0 ),
                                    top = e.pos[1] + ( offsetElement.offsetTop || 0),
                                    leftX = e.pos[0] + ( offsetElement.offsetLeft || 0 ),
                                    topX = y.range()[0] + margin.top + ( offsetElement.offsetTop || 0),
                                    leftY = x.range()[0] + margin.left + ( offsetElement.offsetLeft || 0 ),
                            Severity: Major
                            Found in assets/javascripts/nv.d3.js and 1 other location - About 1 day to fix
                            assets/javascripts/nv.d3.js on lines 8742..8749

                            Duplicated Code

                            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                            Tuning

                            This issue has a mass of 248.

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

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

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

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

                            Refactorings

                            Further Reading

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

                                var left = e.pos[0] + ( offsetElement.offsetLeft || 0 ),
                                    top = e.pos[1] + ( offsetElement.offsetTop || 0),
                                    leftX = e.pos[0] + ( offsetElement.offsetLeft || 0 ),
                                    topX = y.range()[0] + margin.top + ( offsetElement.offsetTop || 0),
                                    leftY = x.range()[0] + margin.left + ( offsetElement.offsetLeft || 0 ),
                            Severity: Major
                            Found in assets/javascripts/nv.d3.js and 1 other location - About 1 day to fix
                            assets/javascripts/nv.d3.js on lines 9292..9299

                            Duplicated Code

                            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                            Tuning

                            This issue has a mass of 248.

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

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

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

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

                            Refactorings

                            Further Reading

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

                              d3.min = function(array, f) {
                                var i = -1, n = array.length, a, b;
                                if (arguments.length === 1) {
                                  while (++i < n && ((a = array[i]) == null || a != a)) a = undefined;
                                  while (++i < n) if ((b = array[i]) != null && a > b) a = b;
                            Severity: Major
                            Found in assets/javascripts/d3.v2.js and 1 other location - About 1 day to fix
                            assets/javascripts/d3.v2.js on lines 2679..2689

                            Duplicated Code

                            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                            Tuning

                            This issue has a mass of 248.

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

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

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

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

                            Refactorings

                            Further Reading

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

                              d3.max = function(array, f) {
                                var i = -1, n = array.length, a, b;
                                if (arguments.length === 1) {
                                  while (++i < n && ((a = array[i]) == null || a != a)) a = undefined;
                                  while (++i < n) if ((b = array[i]) != null && b > a) a = b;
                            Severity: Major
                            Found in assets/javascripts/d3.v2.js and 1 other location - About 1 day to fix
                            assets/javascripts/d3.v2.js on lines 2668..2678

                            Duplicated Code

                            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                            Tuning

                            This issue has a mass of 248.

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

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

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

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

                            Refactorings

                            Further Reading

                            Function chart has 265 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                              function chart(selection) {
                                selection.each(function(data) {
                                  var container = d3.select(this),
                                      that = this;
                            
                            
                            Severity: Major
                            Found in assets/javascripts/nv.d3.js - About 1 day to fix
                              Severity
                              Category
                              Status
                              Source
                              Language