estimancy/projestimate

View on GitHub

Showing 1,675 of 1,675 total issues

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

        format: function(table, c, wo) {
            var $tbody, tbodyIndex, $rows, rows, $row, $cells, remove, indx,
                $table = c.$table,
                $tbodies = c.$tbodies,
                sortList = c.sortList,
Severity: Minor
Found in app/assets/javascripts/tablesorter.min.js - About 1 hr to fix

    Function initialize has 39 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            initialize: function(controller) {            
              var $ST = $jit.ST;
              
              var config= {
                    levelsToShow: 2,
    Severity: Minor
    Found in app/assets/javascripts/jit-2.0.1.js - About 1 hr to fix

      Function paint has 39 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              _super.renderer.paint = function(style, anchor, extents) {
                  
                  var segments = self.getSegments(), p = "", offset = [0,0];            
                  if (extents.xmin < 0) offset[0] = -extents.xmin;
                  if (extents.ymin < 0) offset[1] = -extents.ymin;            
      Severity: Minor
      Found in app/assets/javascripts/jquery.jsPlumb-1.4.1-all.js - About 1 hr to fix

        Function paint has 39 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                this.paint = function(params) {
                    params = params || {};
                    var timestamp = params.timestamp, recalc = !(params.recalc === false);                                
                    if (!timestamp || self.timestamp !== timestamp) {                        
                        var info = _jsPlumb.updateOffset({ elId:_elementId, timestamp:timestamp, recalc:recalc });
        Severity: Minor
        Found in app/assets/javascripts/jquery.jsPlumb-1.4.1-all.js - About 1 hr to fix

          Function EventGenerator has 39 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  EventGenerator : function() {
                      var _listeners = {}, self = this, eventsSuspended = false;
                      
                      // this is a list of events that should re-throw any errors that occur during their dispatch. as of 1.3.0 this is private to
                      // jsPlumb, but it seems feasible that people might want to manipulate this list.  the thinking is that we don't want event
          Severity: Minor
          Found in app/assets/javascripts/jquery.jsPlumb-1.4.1-all.js - About 1 hr to fix

            Function appendToTable has 39 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                        function appendToTable(table, init) {
                            var c = table.config,
                                b = table.tBodies,
                                rows = [],
                                c2 = c.cache,
            Severity: Minor
            Found in app/assets/javascripts/pager.js - About 1 hr to fix

              Function applyWidget has 39 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                          ts.applyWidget = function(table, init) {
                              table = $(table)[0]; // in case this is called externally
                              var c = table.config,
                                  wo = c.widgetOptions,
                                  widgets = [],
              Severity: Minor
              Found in app/assets/javascripts/pager.js - About 1 hr to fix

                Function _traversing_widgets has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    fn._traversing_widgets = function(type, direction, col, row, callback) {
                        var ga = this.gridmap;
                        if (!ga[col]) { return; }
                
                        var cr, max;
                Severity: Minor
                Found in app/assets/javascripts/jquery.gridster.js - About 1 hr to fix

                  Function drawAllSegments has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                          function drawAllSegments(animationDecimal) {
                              var startAngle = -config.startAngle * (Math.PI / 180)+2*Math.PI,
                        cumvalue = 0,
                              angleStep = (Math.PI * 2) / data.length,
                              scaleAnimation = 1,
                  Severity: Minor
                  Found in app/assets/javascripts/ChartNew.js - About 1 hr to fix

                    Method get_label_widget_data has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                      def get_label_widget_data(view_widget_id)
                        view_widget = ViewsWidget.find(view_widget_id)
                        widget_data = {}
                        initial_width = 60;  initial_height = 60
                        value_to_show = nil # according to the widget type
                    Severity: Minor
                    Found in app/helpers/views_widgets_helper.rb - About 1 hr to fix

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

                            var labelPos = {
                              x: Math.round(pos.x + radius.width / 2),
                              y: Math.round(pos.y + radius.height / 2)
                            };
                      Severity: Major
                      Found in app/assets/javascripts/jit-2.0.1.js and 4 other locations - About 1 hr to fix
                      app/assets/javascripts/jit-2.0.1.js on lines 12282..12285
                      app/assets/javascripts/jit-2.0.1.js on lines 12783..12786
                      app/assets/javascripts/jit-2.0.1.js on lines 14160..14163
                      app/assets/javascripts/jit-2.0.1.js on lines 14206..14209

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

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

                          var labelPos = {
                            x: Math.round(pos.x + radius.width / 2),
                            y: Math.round(pos.y + radius.height / 2)
                          };
                      Severity: Major
                      Found in app/assets/javascripts/jit-2.0.1.js and 4 other locations - About 1 hr to fix
                      app/assets/javascripts/jit-2.0.1.js on lines 12207..12210
                      app/assets/javascripts/jit-2.0.1.js on lines 12282..12285
                      app/assets/javascripts/jit-2.0.1.js on lines 12783..12786
                      app/assets/javascripts/jit-2.0.1.js on lines 14160..14163

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

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

                                var labelPos = {
                                  x: Math.round(pos.x + radius.width / 2),
                                  y: Math.round(pos.y + radius.height / 2)
                                };
                      Severity: Major
                      Found in app/assets/javascripts/jit-2.0.1.js and 4 other locations - About 1 hr to fix
                      app/assets/javascripts/jit-2.0.1.js on lines 12207..12210
                      app/assets/javascripts/jit-2.0.1.js on lines 12282..12285
                      app/assets/javascripts/jit-2.0.1.js on lines 14160..14163
                      app/assets/javascripts/jit-2.0.1.js on lines 14206..14209

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

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

                            Tips: {
                              enable: config.Tips.enable,
                              type: 'Native',
                              force: true,
                              onShow: function(tip, node, contains) {
                      Severity: Major
                      Found in app/assets/javascripts/jit-2.0.1.js and 2 other locations - About 1 hr to fix
                      app/assets/javascripts/jit-2.0.1.js on lines 11162..11170
                      app/assets/javascripts/jit-2.0.1.js on lines 12719..12727

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

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

                            Tips: {
                              enable: config.Tips.enable,
                              type: 'Native',
                              force: true,
                              onShow: function(tip, node, contains) {
                      Severity: Major
                      Found in app/assets/javascripts/jit-2.0.1.js and 2 other locations - About 1 hr to fix
                      app/assets/javascripts/jit-2.0.1.js on lines 10223..10231
                      app/assets/javascripts/jit-2.0.1.js on lines 12719..12727

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

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

                            Tips: {
                              enable: config.Tips.enable,
                              type: 'Native',
                              force: true,
                              onShow: function(tip, node, contains) {
                      Severity: Major
                      Found in app/assets/javascripts/jit-2.0.1.js and 2 other locations - About 1 hr to fix
                      app/assets/javascripts/jit-2.0.1.js on lines 10223..10231
                      app/assets/javascripts/jit-2.0.1.js on lines 11162..11170

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

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

                          var labelPos = {
                            x: Math.round(pos.x + radius.width / 2),
                            y: Math.round(pos.y + radius.height / 2)
                          };
                      Severity: Major
                      Found in app/assets/javascripts/jit-2.0.1.js and 4 other locations - About 1 hr to fix
                      app/assets/javascripts/jit-2.0.1.js on lines 12207..12210
                      app/assets/javascripts/jit-2.0.1.js on lines 12282..12285
                      app/assets/javascripts/jit-2.0.1.js on lines 12783..12786
                      app/assets/javascripts/jit-2.0.1.js on lines 14206..14209

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

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

                            var labelPos = {
                              x: Math.round(pos.x + radius.width / 2),
                              y: Math.round(pos.y + radius.height / 2)
                            };
                      Severity: Major
                      Found in app/assets/javascripts/jit-2.0.1.js and 4 other locations - About 1 hr to fix
                      app/assets/javascripts/jit-2.0.1.js on lines 12207..12210
                      app/assets/javascripts/jit-2.0.1.js on lines 12783..12786
                      app/assets/javascripts/jit-2.0.1.js on lines 14160..14163
                      app/assets/javascripts/jit-2.0.1.js on lines 14206..14209

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

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

                                              jsPlumbUtil.addWithFunction(endpointsToPaint, listToRemoveFrom[i][1].endpoints[oIdx], function(e) { return e.id == listToRemoveFrom[i][1].endpoints[oIdx].id });
                      Severity: Major
                      Found in app/assets/javascripts/jquery.jsPlumb-1.4.1-all.js and 3 other locations - About 1 hr to fix
                      app/assets/javascripts/jquery.jsPlumb-1.4.1-all.js on lines 3889..3889
                      app/assets/javascripts/jquery.jsPlumb-1.4.1-all.js on lines 3899..3899
                      app/assets/javascripts/jquery.jsPlumb-1.4.1-all.js on lines 3900..3900

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

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

                                      jsPlumbUtil.addWithFunction(endpointsToPaint, listToAddTo[i][1].endpoints[idx], function(e) { return e.id == listToAddTo[i][1].endpoints[idx].id });
                      Severity: Major
                      Found in app/assets/javascripts/jquery.jsPlumb-1.4.1-all.js and 3 other locations - About 1 hr to fix
                      app/assets/javascripts/jquery.jsPlumb-1.4.1-all.js on lines 3889..3889
                      app/assets/javascripts/jquery.jsPlumb-1.4.1-all.js on lines 3890..3890
                      app/assets/javascripts/jquery.jsPlumb-1.4.1-all.js on lines 3900..3900

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

                      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