opsforgeio/cabot

View on GitHub

Showing 1,637 of 1,637 total issues

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

            top: (
                pageY -                                                                    // The absolute mouse position
                this.offset.click.top    -                                                // Click offset (relative to the element)
                this.offset.relative.top -                                                // Only for relative positioned nodes: Relative offset from element to offset parent
                this.offset.parent.top +                                                // The offsetParent's offset without borders (offset + border)
Severity: Major
Found in cabot/static/theme/js/jquery-ui.js and 1 other location - About 3 hrs to fix
cabot/static/theme/js/jquery-ui.js on lines 1508..1514

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

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 _refresh has 86 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    _refresh: function() {
        var maxHeight,
            options = this.options,
            heightStyle = options.heightStyle,
            parent = this.element.parent(),
Severity: Major
Found in cabot/static/theme/js/jquery-ui.js - About 3 hrs to fix

    Function _extractTransform has 86 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            extractTransform = R._extractTransform = function (el, tstr) {
                if (tstr == null) {
                    return el._.transform;
                }
                tstr = Str(tstr).replace(/\.{3}|\u2026/g, el._.transform || E);
    Severity: Major
    Found in cabot/static/arachnys/js/raphael.js - About 3 hrs to fix

      Function d3_geo_clip has 86 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        function d3_geo_clip(pointVisible, clipLine, interpolate, clipStart) {
          return function(rotate, listener) {
            var line = clipLine(listener), rotatedClipStart = rotate.invert(clipStart[0], clipStart[1]);
            var clip = {
              point: point,
      Severity: Major
      Found in cabot/static/arachnys/js/d3.js - About 3 hrs to fix

        Function trigger has 86 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          trigger: function( event, data, elem, onlyHandlers ) {
            var handle, ontype, cur,
              bubbleType, special, tmp, i,
              eventPath = [ elem || document ],
              type = core_hasOwn.call( event, "type" ) ? event.type : event,
        Severity: Major
        Found in cabot/static/bootstrap/js/jquery-1.10.2.js - About 3 hrs to fix

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

            d3_time.second = d3_time_interval(function(date) {
              return new d3_date(Math.floor(date / 1e3) * 1e3);
            }, function(date, offset) {
              date.setTime(date.getTime() + Math.floor(offset) * 1e3);
            }, function(date) {
          Severity: Major
          Found in cabot/static/arachnys/js/d3.js and 1 other location - About 3 hrs to fix
          cabot/static/arachnys/js/d3.js on lines 9114..9120

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

          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

                      left: (
                          pos.left +                                                                // The absolute mouse position
                          this.offset.relative.left * mod +                                        // Only for relative positioned nodes: Relative offset from element to offset parent
                          this.offset.parent.left * mod    -                                        // The offsetParent's offset without borders (offset + border)
                          ( ( this.cssPosition === "fixed" ? -this.scrollParent.scrollLeft() : scrollIsRootNode ? 0 : scroll.scrollLeft() ) * mod)
          Severity: Major
          Found in cabot/static/theme/js/jquery-ui.js and 1 other location - About 3 hrs to fix
          cabot/static/theme/js/jquery-ui.js on lines 4543..4548

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

          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_time.minute = d3_time_interval(function(date) {
              return new d3_date(Math.floor(date / 6e4) * 6e4);
            }, function(date, offset) {
              date.setTime(date.getTime() + Math.floor(offset) * 6e4);
            }, function(date) {
          Severity: Major
          Found in cabot/static/arachnys/js/d3.js and 1 other location - About 3 hrs to fix
          cabot/static/arachnys/js/d3.js on lines 9105..9111

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

          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

                      top: (
                          pos.top    +                                                                // The absolute mouse position
                          this.offset.relative.top * mod +                                        // Only for relative positioned nodes: Relative offset from element to offset parent
                          this.offset.parent.top * mod -                                            // The offsetParent's offset without borders (offset + border)
                          ( ( this.cssPosition === "fixed" ? -this.scrollParent.scrollTop() : ( scrollIsRootNode ? 0 : scroll.scrollTop() ) ) * mod)
          Severity: Major
          Found in cabot/static/theme/js/jquery-ui.js and 1 other location - About 3 hrs to fix
          cabot/static/theme/js/jquery-ui.js on lines 4549..4554

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

          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 _doKeyDown has 84 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              _doKeyDown: function(event) {
                  var onSelect, dateStr, sel,
                      inst = $.datepicker._getInst(event.target),
                      handled = true,
                      isRTL = inst.dpDiv.is(".ui-datepicker-rtl");
          Severity: Major
          Found in cabot/static/theme/js/jquery-ui.js - About 3 hrs to fix

            Function a2c has 84 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                    a2c = function (x1, y1, rx, ry, angle, large_arc_flag, sweep_flag, x2, y2, recursive) {
                        // for more information of where this math came from visit:
                        // http://www.w3.org/TR/SVG11/implnote.html#ArcImplementationNotes
                        var _120 = PI * 120 / 180,
                            rad = PI / 180 * (+angle || 0),
            Severity: Major
            Found in cabot/static/arachnys/js/raphael.js - About 3 hrs to fix

              Function Animation has 84 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              function Animation( elem, properties, options ) {
                var result,
                  stopped,
                  index = 0,
                  length = animationPrefilters.length,
              Severity: Major
              Found in cabot/static/bootstrap/js/jquery-1.10.2.js - About 3 hrs to fix

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

                  function d3_svg_lineStepAfter(points) {
                    var i = 0, n = points.length, p = points[0], path = [ p[0], ",", p[1] ];
                    while (++i < n) path.push("H", (p = points[i])[0], "V", p[1]);
                    return path.join("");
                  }
                Severity: Major
                Found in cabot/static/arachnys/js/d3.js and 1 other location - About 3 hrs to fix
                cabot/static/arachnys/js/d3.js on lines 7949..7953

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

                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

                    hide: (function( orig ) {
                        return function( option ) {
                            if ( standardAnimationOption( option ) ) {
                                return orig.apply( this, arguments );
                            } else {
                Severity: Major
                Found in cabot/static/theme/js/jquery-ui.js and 1 other location - About 3 hrs to fix
                cabot/static/theme/js/jquery-ui.js on lines 5947..5957

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

                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

                            left: (
                                pos.left +                                                                // The absolute mouse position
                                this.offset.relative.left * mod +                                        // Only for relative positioned nodes: Relative offset from element to offset parent
                                this.offset.parent.left * mod    -                                        // The offsetParent's offset without borders (offset + border)
                                ( ( this.cssPosition === "fixed" ? -this.scrollParent.scrollLeft() : this.offset.scroll.left ) * mod )
                Severity: Major
                Found in cabot/static/theme/js/jquery-ui.js and 1 other location - About 3 hrs to fix
                cabot/static/theme/js/jquery-ui.js on lines 1425..1430

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

                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

                  function d3_svg_lineStepBefore(points) {
                    var i = 0, n = points.length, p = points[0], path = [ p[0], ",", p[1] ];
                    while (++i < n) path.push("V", (p = points[i])[1], "H", p[0]);
                    return path.join("");
                  }
                Severity: Major
                Found in cabot/static/arachnys/js/d3.js and 1 other location - About 3 hrs to fix
                cabot/static/arachnys/js/d3.js on lines 7954..7958

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

                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

                    show: (function( orig ) {
                        return function( option ) {
                            if ( standardAnimationOption( option ) ) {
                                return orig.apply( this, arguments );
                            } else {
                Severity: Major
                Found in cabot/static/theme/js/jquery-ui.js and 1 other location - About 3 hrs to fix
                cabot/static/theme/js/jquery-ui.js on lines 5959..5969

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

                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

                            top: (
                                pos.top    +                                                                // The absolute mouse position
                                this.offset.relative.top * mod +                                        // Only for relative positioned nodes: Relative offset from element to offset parent
                                this.offset.parent.top * mod -                                        // The offsetParent's offset without borders (offset + border)
                                ( ( this.cssPosition === "fixed" ? -this.scrollParent.scrollTop() : this.offset.scroll.top ) * mod )
                Severity: Major
                Found in cabot/static/theme/js/jquery-ui.js and 1 other location - About 3 hrs to fix
                cabot/static/theme/js/jquery-ui.js on lines 1431..1436

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

                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 send has 82 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        send: function( headers, complete ) {
                
                          // Get a new xhr
                          var handle, i,
                            xhr = s.xhr();
                Severity: Major
                Found in cabot/static/bootstrap/js/jquery-1.10.2.js - About 3 hrs to fix

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

                              target.drawLine(
                                  Math.round((rwhisker - minValue) * unitSize + canvasLeft),
                                  Math.round(canvasHeight / 4),
                                  Math.round((rwhisker - minValue) * unitSize + canvasLeft),
                                  Math.round(canvasHeight - canvasHeight / 4),
                  Severity: Major
                  Found in cabot/static/theme/js/jquery.sparkline.min.js and 1 other location - About 3 hrs to fix
                  cabot/static/theme/js/jquery.sparkline.min.js on lines 2505..2510

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

                  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