opsforgeio/cabot

View on GitHub

Showing 1,637 of 1,637 total issues

Function _drawCircle has 7 arguments (exceeds 4 allowed). Consider refactoring.
Open

        _drawCircle: function (shapeid, x, y, radius, lineColor, fillColor, lineWidth) {
Severity: Major
Found in cabot/static/theme/js/jquery.sparkline.min.js - About 50 mins to fix

    Function _drawRect has 7 arguments (exceeds 4 allowed). Consider refactoring.
    Open

            _drawRect: function (shapeid, x, y, width, height, lineColor, fillColor) {
    Severity: Major
    Found in cabot/static/theme/js/jquery.sparkline.min.js - About 50 mins to fix

      Function _drawCircle has 7 arguments (exceeds 4 allowed). Consider refactoring.
      Open

              _drawCircle: function (shapeid, x, y, radius, lineColor, fillColor, lineWidth) {
      Severity: Major
      Found in cabot/static/theme/js/jquery.sparkline.min.js - About 50 mins to fix

        Function _drawRect has 7 arguments (exceeds 4 allowed). Consider refactoring.
        Open

                _drawRect: function (shapeid, x, y, width, height, lineColor, fillColor) {
        Severity: Major
        Found in cabot/static/theme/js/jquery.sparkline.min.js - About 50 mins to fix

          Function drawPieSlice has 7 arguments (exceeds 4 allowed). Consider refactoring.
          Open

                  drawPieSlice: function (x, y, radius, startAngle, endAngle, lineColor, fillColor) {
          Severity: Major
          Found in cabot/static/theme/js/jquery.sparkline.min.js - About 50 mins to fix

            Function print has 7 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                paperproto.print = function (x, y, string, font, size, origin, letter_spacing) {
            Severity: Major
            Found in cabot/static/arachnys/js/raphael.js - About 50 mins to fix

              Function access has 7 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                access: function( elems, fn, key, value, chainable, emptyGet, raw ) {
              Severity: Major
              Found in cabot/static/bootstrap/js/jquery-1.10.2.js - About 50 mins to fix

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

                            top = (parseInt(that.element.css("top"), 10) + (that.position.top - that.originalPosition.top)) || null;
                Severity: Minor
                Found in cabot/static/theme/js/jquery-ui.js and 1 other location - About 50 mins to fix
                cabot/static/theme/js/jquery-ui.js on lines 2658..2658

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

                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

                    Line.prototype.strokeForSeries = function(index) {
                      return this.options.pointStrokeColors[index % this.options.pointStrokeColors.length];
                    };
                Severity: Minor
                Found in cabot/static/arachnys/js/morris.js and 1 other location - About 50 mins to fix
                cabot/static/arachnys/js/morris.js on lines 1040..1042

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

                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 = (parseInt(that.element.css("left"), 10) + (that.position.left - that.originalPosition.left)) || null;
                Severity: Minor
                Found in cabot/static/theme/js/jquery-ui.js and 1 other location - About 50 mins to fix
                cabot/static/theme/js/jquery-ui.js on lines 2659..2659

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

                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

                      q.push({
                        i: s.push(s.pop() + "rotate(", null, ")") - 2,
                        x: d3_interpolateNumber(ra, rb)
                      });
                Severity: Minor
                Found in cabot/static/arachnys/js/d3.js and 1 other location - About 50 mins to fix
                cabot/static/arachnys/js/d3.js on lines 5917..5920

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

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

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

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

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

                Refactorings

                Further Reading

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

                    var hierarchy = d3.layout.hierarchy().sort(null).value(null), separation = d3_layout_treeSeparation, size = [ 1, 1 ], nodeSize = false;
                Severity: Minor
                Found in cabot/static/arachnys/js/d3.js and 1 other location - About 50 mins to fix
                cabot/static/arachnys/js/d3.js on lines 6741..6741

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

                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

                    force.chargeDistance = function(x) {
                      if (!arguments.length) return Math.sqrt(chargeDistance2);
                      chargeDistance2 = x * x;
                      return force;
                    };
                Severity: Minor
                Found in cabot/static/arachnys/js/d3.js and 1 other location - About 50 mins to fix
                cabot/static/arachnys/js/d3.js on lines 6238..6242

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

                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

                    force.theta = function(x) {
                      if (!arguments.length) return Math.sqrt(theta2);
                      theta2 = x * x;
                      return force;
                    };
                Severity: Minor
                Found in cabot/static/arachnys/js/d3.js and 1 other location - About 50 mins to fix
                cabot/static/arachnys/js/d3.js on lines 6228..6232

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

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

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

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

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

                Refactorings

                Further Reading

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

                    var hierarchy = d3.layout.hierarchy().sort(null).value(null), separation = d3_layout_treeSeparation, size = [ 1, 1 ], nodeSize = false;
                Severity: Minor
                Found in cabot/static/arachnys/js/d3.js and 1 other location - About 50 mins to fix
                cabot/static/arachnys/js/d3.js on lines 7074..7074

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

                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

                      q.push({
                        i: s.push(s.pop() + "skewX(", null, ")") - 2,
                        x: d3_interpolateNumber(wa, wb)
                      });
                Severity: Minor
                Found in cabot/static/arachnys/js/d3.js and 1 other location - About 50 mins to fix
                cabot/static/arachnys/js/d3.js on lines 5909..5912

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

                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

                    Line.prototype.strokeWidthForSeries = function(index) {
                      return this.options.pointWidths[index % this.options.pointWidths.length];
                    };
                Severity: Minor
                Found in cabot/static/arachnys/js/morris.js and 1 other location - About 50 mins to fix
                cabot/static/arachnys/js/morris.js on lines 1044..1046

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

                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

                    end: function() {
                      return this.edge.l === this.site ? this.edge.b : this.edge.a;
                    }
                Severity: Minor
                Found in cabot/static/arachnys/js/d3.js and 1 other location - About 50 mins to fix
                cabot/static/arachnys/js/d3.js on lines 5143..5145

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

                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

                    chord.sortGroups = function(x) {
                      if (!arguments.length) return sortGroups;
                      sortGroups = x;
                      chords = groups = null;
                      return chord;
                Severity: Minor
                Found in cabot/static/arachnys/js/d3.js and 1 other location - About 50 mins to fix
                cabot/static/arachnys/js/d3.js on lines 6075..6080

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

                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

                    this.stackData.hooks.data.forEach( function(entry) {
                      data = entry.f.apply(self, [data]);
                    } );
                Severity: Minor
                Found in cabot/static/arachnys/js/rickshaw.js and 1 other location - About 50 mins to fix
                cabot/static/arachnys/js/rickshaw.js on lines 567..569

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

                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