opsforgeio/cabot

View on GitHub

Showing 1,637 of 1,637 total issues

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

function addCombinator( matcher, combinator, base ) {
  var dir = combinator.dir,
    checkNonElements = base && dir === "parentNode",
    doneName = done++;

Severity: Minor
Found in cabot/static/bootstrap/js/jquery-1.10.2.js - About 1 hr to fix

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

      Tooltip.prototype.show = function () {
        var e = $.Event('show.bs.'+ this.type)
    
        if (this.hasContent() && this.enabled) {
          this.$element.trigger(e)
    Severity: Minor
    Found in cabot/static/bootstrap/js/bootstrap.js - About 1 hr to fix

      Function _attachments has 40 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          _attachments: function(input, inst) {
              var showOn, buttonText, buttonImage,
                  appendText = this._get(inst, "appendText"),
                  isRTL = this._get(inst, "isRTL");
      
      
      Severity: Minor
      Found in cabot/static/theme/js/jquery-ui.js - About 1 hr to fix

        Function transform has 40 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            elproto.transform = function (tstr) {
                if (tstr == null) {
                    return this._.transform;
                }
                var vbs = this.paper._viewBoxShift,
        Severity: Minor
        Found in cabot/static/arachnys/js/raphael.js - About 1 hr to fix

          Function d3_time_format has 40 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              function d3_time_format(template) {
                var n = template.length;
                function format(date) {
                  var string = [], i = -1, j = 0, c, p, f;
                  while (++i < n) {
          Severity: Minor
          Found in cabot/static/arachnys/js/d3.js - About 1 hr to fix

            Function cluster has 40 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

              d3.layout.cluster = function() {
                var hierarchy = d3.layout.hierarchy().sort(null).value(null), separation = d3_layout_treeSeparation, size = [ 1, 1 ], nodeSize = false;
                function cluster(d, i) {
                  var nodes = hierarchy.call(this, d, i), root = nodes[0], previousNode, x = 0;
                  d3_layout_treeVisitAfter(root, function(node) {
            Severity: Minor
            Found in cabot/static/arachnys/js/d3.js - About 1 hr to fix

              Function val has 40 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                val: function( value ) {
                  var ret, hooks, isFunction,
                    elem = this[0];
              
                  if ( !arguments.length ) {
              Severity: Minor
              Found in cabot/static/bootstrap/js/jquery-1.10.2.js - About 1 hr to fix

                Function extend has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                jQuery.extend = jQuery.fn.extend = function() {
                  var src, copyIsArray, copy, name, options, clone,
                    target = arguments[0] || {},
                    i = 1,
                    length = arguments.length,
                Severity: Minor
                Found in cabot/static/bootstrap/js/jquery-1.10.2.js - About 1 hr to fix

                  Function on has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                    on: function( types, selector, data, fn, /*INTERNAL*/ one ) {
                      var type, origFn;
                  
                      // Types can be a map of types/handlers
                      if ( typeof types === "object" ) {
                  Severity: Minor
                  Found in cabot/static/bootstrap/js/jquery-1.10.2.js - About 1 hr to fix

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

                        this.options.pause == 'hover' && this.$element
                          .on('mouseenter', $.proxy(this.pause, this))
                          .on('mouseleave', $.proxy(this.cycle, this))
                    Severity: Major
                    Found in cabot/static/theme/js/bootstrap.js and 1 other location - About 1 hr to fix
                    cabot/static/bootstrap/js/bootstrap.js on lines 251..253

                    Duplicated Code

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

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

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

                    Tuning

                    This issue has a mass of 67.

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

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

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

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

                    Refactorings

                    Further Reading

                    Function stop has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                      stop: function( type, clearQueue, gotoEnd ) {
                        var stopQueue = function( hooks ) {
                          var stop = hooks.stop;
                          delete hooks.stop;
                          stop( gotoEnd );
                    Severity: Minor
                    Found in cabot/static/bootstrap/js/jquery-1.10.2.js - About 1 hr to fix

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

                                  lookAhead = function(match) {
                                      var matches = (iFormat + 1 < format.length && format.charAt(iFormat + 1) === match);
                                      if (matches) {
                                          iFormat++;
                                      }
                      Severity: Major
                      Found in cabot/static/theme/js/jquery-ui.js and 2 other locations - About 1 hr to fix
                      cabot/static/theme/js/jquery-ui.js on lines 8696..8702
                      cabot/static/theme/js/jquery-ui.js on lines 8889..8895

                      Duplicated Code

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

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

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

                      Tuning

                      This issue has a mass of 67.

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

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

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

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

                      Refactorings

                      Further Reading

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

                                  lookAhead = function(match) {
                                      var matches = (iFormat + 1 < format.length && format.charAt(iFormat + 1) === match);
                                      if (matches) {
                                          iFormat++;
                                      }
                      Severity: Major
                      Found in cabot/static/theme/js/jquery-ui.js and 2 other locations - About 1 hr to fix
                      cabot/static/theme/js/jquery-ui.js on lines 8696..8702
                      cabot/static/theme/js/jquery-ui.js on lines 8971..8977

                      Duplicated Code

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

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

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

                      Tuning

                      This issue has a mass of 67.

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

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

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

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

                      Refactorings

                      Further Reading

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

                            if (typeof options.element === 'string') {
                              this.el = $(document.getElementById(options.element));
                            } else {
                              this.el = $(options.element);
                            }
                      Severity: Major
                      Found in cabot/static/arachnys/js/morris.js and 1 other location - About 1 hr to fix
                      cabot/static/arachnys/js/morris.js on lines 73..77

                      Duplicated Code

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

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

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

                      Tuning

                      This issue has a mass of 67.

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

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

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

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

                      Refactorings

                      Further Reading

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

                          this.options.pause == 'hover' && this.$element
                            .on('mouseenter', $.proxy(this.pause, this))
                            .on('mouseleave', $.proxy(this.cycle, this))
                      Severity: Major
                      Found in cabot/static/bootstrap/js/bootstrap.js and 1 other location - About 1 hr to fix
                      cabot/static/theme/js/bootstrap.js on lines 277..279

                      Duplicated Code

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

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

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

                      Tuning

                      This issue has a mass of 67.

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

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

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

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

                      Refactorings

                      Further Reading

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

                            if (typeof options.element === 'string') {
                              this.el = $(document.getElementById(options.element));
                            } else {
                              this.el = $(options.element);
                            }
                      Severity: Major
                      Found in cabot/static/arachnys/js/morris.js and 1 other location - About 1 hr to fix
                      cabot/static/arachnys/js/morris.js on lines 1531..1535

                      Duplicated Code

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

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

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

                      Tuning

                      This issue has a mass of 67.

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

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

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

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

                      Refactorings

                      Further Reading

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

                            if (x1) x1.domain(x0.range().map(function(x) {
                              return (x - view.x) / view.k;
                            }).map(x0.invert));
                      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 1335..1337

                      Duplicated Code

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

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

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

                      Tuning

                      This issue has a mass of 67.

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

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

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

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

                      Refactorings

                      Further Reading

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

                                      co.left + (parseInt($(ce).css("borderLeftWidth"),10) || 0) + (parseInt($(ce).css("paddingLeft"),10) || 0) - this.margins.left,
                      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 4525..4525

                      Duplicated Code

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

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

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

                      Tuning

                      This issue has a mass of 67.

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

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

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

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

                      Refactorings

                      Further Reading

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

                            if (y1) y1.domain(y0.range().map(function(y) {
                              return (y - view.y) / view.k;
                            }).map(y0.invert));
                      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 1332..1334

                      Duplicated Code

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

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

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

                      Tuning

                      This issue has a mass of 67.

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

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

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

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

                      Refactorings

                      Further Reading

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

                                  lookAhead = function(match) {
                                      var matches = (iFormat + 1 < format.length && format.charAt(iFormat + 1) === match);
                                      if (matches) {
                                          iFormat++;
                                      }
                      Severity: Major
                      Found in cabot/static/theme/js/jquery-ui.js and 2 other locations - About 1 hr to fix
                      cabot/static/theme/js/jquery-ui.js on lines 8889..8895
                      cabot/static/theme/js/jquery-ui.js on lines 8971..8977

                      Duplicated Code

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

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

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

                      Tuning

                      This issue has a mass of 67.

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

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

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

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

                      Refactorings

                      Further Reading

                      Severity
                      Category
                      Status
                      Source
                      Language