opsforgeio/cabot

View on GitHub

Showing 1,637 of 1,637 total issues

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

$.effects.effect.slide = function( o, done ) {

    // Create element
    var el = $( this ),
        props = [ "position", "top", "bottom", "left", "right", "width", "height" ],
Severity: Minor
Found in cabot/static/theme/js/jquery-ui.js - About 1 hr to fix

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

        _createTitlebar: function() {
            var uiDialogTitle;
    
            this.uiDialogTitlebar = $("<div>")
                .addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix")
    Severity: Minor
    Found in cabot/static/theme/js/jquery-ui.js - About 1 hr to fix

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

      $.effects.effect.pulsate = function( o, done ) {
          var elem = $( this ),
              mode = $.effects.setMode( elem, o.mode || "show" ),
              show = mode === "show",
              hide = mode === "hide",
      Severity: Minor
      Found in cabot/static/theme/js/jquery-ui.js - About 1 hr to fix

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

                parseDots = R._parseDots = cacher(function (gradient) {
                    var dots = [];
                    for (var i = 0, ii = gradient.length; i < ii; i++) {
                        var dot = {},
                            par = gradient[i].match(/^([^:]*):?([\d\.]*)/);
        Severity: Minor
        Found in cabot/static/arachnys/js/raphael.js - About 1 hr to fix

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

            d3.layout.partition = function() {
              var hierarchy = d3.layout.hierarchy(), size = [ 1, 1 ];
              function position(node, x, dx, dy) {
                var children = node.children;
                node.x = x;
          Severity: Minor
          Found in cabot/static/arachnys/js/d3.js - About 1 hr to fix

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

              access: function( elems, fn, key, value, chainable, emptyGet, raw ) {
                var i = 0,
                  length = elems.length,
                  bulk = key == null;
            
            
            Severity: Minor
            Found in cabot/static/bootstrap/js/jquery-1.10.2.js - About 1 hr to fix

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

                clone: function( elem, dataAndEvents, deepDataAndEvents ) {
                  var destElements, node, clone, i, srcElements,
                    inPage = jQuery.contains( elem.ownerDocument, elem );
              
                  if ( jQuery.support.html5Clone || jQuery.isXMLDoc(elem) || !rnoshimcache.test( "<" + elem.nodeName + ">" ) ) {
              Severity: Minor
              Found in cabot/static/bootstrap/js/jquery-1.10.2.js - About 1 hr to fix

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

                  this.ceil = function(time, unit) {
                
                    var date, floor, year;
                
                    if (unit.name == 'day') {
                Severity: Minor
                Found in cabot/static/arachnys/js/rickshaw.js - About 1 hr to fix

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

                    dispatch: function( event ) {
                  
                      // Make a writable jQuery.Event from the native event object
                      event = jQuery.event.fix( event );
                  
                  
                  Severity: Minor
                  Found in cabot/static/bootstrap/js/jquery-1.10.2.js - About 1 hr to fix

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

                          } else {
                            this.search_container = this.container.find('div.chosen-search').first();
                            this.selected_item = this.container.find('.chosen-single').first();
                          }
                    Severity: Major
                    Found in cabot/static/theme/js/chosen.jquery.js and 1 other location - About 1 hr to fix
                    cabot/static/theme/js/chosen.jquery.js on lines 544..547

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

                    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

                            se: function(event, dx, dy) {
                                return $.extend(this._change.s.apply(this, arguments), this._change.e.apply(this, [event, dx, dy]));
                            },
                    Severity: Major
                    Found in cabot/static/theme/js/jquery-ui.js and 3 other locations - About 1 hr to fix
                    cabot/static/theme/js/jquery-ui.js on lines 2885..2887
                    cabot/static/theme/js/jquery-ui.js on lines 2888..2890
                    cabot/static/theme/js/jquery-ui.js on lines 2891..2893

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

                    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 {
                                pixelTotal = this.elementSize.height;
                                pixelMouse = position.y - this.elementOffset.top - ( this._clickOffset ? this._clickOffset.top : 0 );
                            }
                    Severity: Major
                    Found in cabot/static/theme/js/jquery-ui.js and 1 other location - About 1 hr to fix
                    cabot/static/theme/js/jquery-ui.js on lines 12889..12892

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

                    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

                            sw: function(event, dx, dy) {
                                return $.extend(this._change.s.apply(this, arguments), this._change.w.apply(this, [event, dx, dy]));
                            },
                    Severity: Major
                    Found in cabot/static/theme/js/jquery-ui.js and 3 other locations - About 1 hr to fix
                    cabot/static/theme/js/jquery-ui.js on lines 2882..2884
                    cabot/static/theme/js/jquery-ui.js on lines 2888..2890
                    cabot/static/theme/js/jquery-ui.js on lines 2891..2893

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

                    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 strokeNodes = vis.selectAll('path.stroke')
                                                    .data(data)
                                                    .enter().append("svg:path")
                            .classed('stroke', true)
                            .attr("d", this.seriesStrokeFactory());
                    Severity: Major
                    Found in cabot/static/arachnys/js/rickshaw.js and 1 other location - About 1 hr to fix
                    cabot/static/arachnys/js/rickshaw.js on lines 3002..3006

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

                    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.orientation === "horizontal" ) {
                                pixelTotal = this.elementSize.width;
                                pixelMouse = position.x - this.elementOffset.left - ( this._clickOffset ? this._clickOffset.left : 0 );
                            } else {
                    Severity: Major
                    Found in cabot/static/theme/js/jquery-ui.js and 1 other location - About 1 hr to fix
                    cabot/static/theme/js/jquery-ui.js on lines 12892..12895

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

                    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.is_multiple) {
                            this.search_choices = this.container.find('ul.chosen-choices').first();
                            this.search_container = this.container.find('li.search-field').first();
                          } else {
                    Severity: Major
                    Found in cabot/static/theme/js/chosen.jquery.js and 1 other location - About 1 hr to fix
                    cabot/static/theme/js/chosen.jquery.js on lines 547..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 63.

                    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

                            nw: function(event, dx, dy) {
                                return $.extend(this._change.n.apply(this, arguments), this._change.w.apply(this, [event, dx, dy]));
                            }
                    Severity: Major
                    Found in cabot/static/theme/js/jquery-ui.js and 3 other locations - About 1 hr to fix
                    cabot/static/theme/js/jquery-ui.js on lines 2882..2884
                    cabot/static/theme/js/jquery-ui.js on lines 2885..2887
                    cabot/static/theme/js/jquery-ui.js on lines 2888..2890

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

                    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

                        brush.y = function(z) {
                          if (!arguments.length) return y;
                          y = z;
                          resizes = d3_svg_brushResizes[!x << 1 | !y];
                          return brush;
                    Severity: Major
                    Found in cabot/static/arachnys/js/d3.js and 1 other location - About 1 hr to fix
                    cabot/static/arachnys/js/d3.js on lines 9012..9017

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

                    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

                        brush.x = function(z) {
                          if (!arguments.length) return x;
                          x = z;
                          resizes = d3_svg_brushResizes[!x << 1 | !y];
                          return brush;
                    Severity: Major
                    Found in cabot/static/arachnys/js/d3.js and 1 other location - About 1 hr to fix
                    cabot/static/arachnys/js/d3.js on lines 9018..9023

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

                    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 pathNodes = vis.selectAll("path.path")
                          .data(data)
                          .enter().append("svg:path")
                          .classed('path', true)
                          .attr("d", this.seriesPathFactory());
                    Severity: Major
                    Found in cabot/static/arachnys/js/rickshaw.js and 1 other location - About 1 hr to fix
                    cabot/static/arachnys/js/rickshaw.js on lines 3009..3013

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

                    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