opsforgeio/cabot

View on GitHub

Showing 1,637 of 1,637 total issues

Function _drawPieSlice has 8 arguments (exceeds 4 allowed). Consider refactoring.
Open

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

    Consider simplifying this complex logical expression.
    Open

                if(!inst.snapElements[i].snapping && (ts || bs || ls || rs || first)) {
                    (inst.options.snap.snap && inst.options.snap.snap.call(inst.element, event, $.extend(inst._uiHash(), { snapItem: inst.snapElements[i].item })));
                }
    Severity: Major
    Found in cabot/static/theme/js/jquery-ui.js - About 1 hr to fix

      Consider simplifying this complex logical expression.
      Open

                      if ((tt1[0] != tt2[0]) ||
                          (tt1[0].toLowerCase() == "r" && (tt1[2] != tt2[2] || tt1[3] != tt2[3])) ||
                          (tt1[0].toLowerCase() == "s" && (tt1[3] != tt2[3] || tt1[4] != tt2[4]))
                          ) {
                          return;
      Severity: Major
      Found in cabot/static/arachnys/js/raphael.js - About 1 hr to fix

        Consider simplifying this complex logical expression.
        Open

                    if (rgb[4]) {
                        values = rgb[4][split](commaSpaces);
                        red = toFloat(values[0]);
                        values[0].slice(-1) == "%" && (red *= 2.55);
                        green = toFloat(values[1]);
        Severity: Major
        Found in cabot/static/arachnys/js/raphael.js - About 1 hr to fix

          Function bezierBBox has 8 arguments (exceeds 4 allowed). Consider refactoring.
          Open

              R.bezierBBox = function (p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y) {
          Severity: Major
          Found in cabot/static/arachnys/js/raphael.js - About 1 hr to fix

            Consider simplifying this complex logical expression.
            Open

                if ((navigator.vendor == "Apple Computer, Inc.") && (version && version[1] < 4 || navigator.platform.slice(0, 2) == "iP") ||
                    (navigator.vendor == "Google Inc." && version && version[1] < 8)) {
            
                    paperproto.safari = function () {
                        var rect = this.rect(-99, -99, this.width + 99, this.height + 99).attr({stroke: "none"});
            Severity: Major
            Found in cabot/static/arachnys/js/raphael.js - About 1 hr to fix

              Function curveDim has 8 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                      curveDim = cacher(function (p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y) {
              Severity: Major
              Found in cabot/static/arachnys/js/raphael.js - About 1 hr to fix

                Function insertChild has 8 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                      function insertChild(n, d, x, y, x1, y1, x2, y2) {
                Severity: Major
                Found in cabot/static/arachnys/js/d3.js - About 1 hr to fix

                  Consider simplifying this complex logical expression.
                  Open

                          if (!isInAnim) {
                              for (var attr in params) if (params[has](attr)) {
                                  if (availableAnimAttrs[has](attr) || element.paper.customAttributes[has](attr)) {
                                      from[attr] = element.attr(attr);
                                      (from[attr] == null) && (from[attr] = availableAttrs[attr]);
                  Severity: Major
                  Found in cabot/static/arachnys/js/raphael.js - About 1 hr to fix

                    Function intersect has 8 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                        function intersect(x1, y1, x2, y2, x3, y3, x4, y4) {
                    Severity: Major
                    Found in cabot/static/arachnys/js/raphael.js - About 1 hr to fix

                      Function insert has 8 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                            function insert(n, d, x, y, x1, y1, x2, y2) {
                      Severity: Major
                      Found in cabot/static/arachnys/js/d3.js - About 1 hr to fix

                        Consider simplifying this complex logical expression.
                        Open

                        if ( jQuery.expr && jQuery.expr.filters ) {
                          jQuery.expr.filters.hidden = function( elem ) {
                            // Support: Opera <= 12.12
                            // Opera reports offsetWidths and offsetHeights less than zero on some elements
                            return elem.offsetWidth <= 0 && elem.offsetHeight <= 0 ||
                        Severity: Major
                        Found in cabot/static/bootstrap/js/jquery-1.10.2.js - About 1 hr to fix

                          Consider simplifying this complex logical expression.
                          Open

                                if ( tokens.length > 2 && (token = tokens[0]).type === "ID" &&
                                    support.getById && context.nodeType === 9 && documentIsHTML &&
                                    Expr.relative[ tokens[1].type ] ) {
                          
                                  context = ( Expr.find["ID"]( token.matches[0].replace(runescape, funescape), context ) || [] )[0];
                          Severity: Major
                          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

                                        isOverRightHalf = isOverAxis(this.positionAbs.left + this.offset.click.left, item.left + (item.width/2), item.width),
                            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 4075..4075

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

                            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.timeout = setTimeout(function() {
                                    if (self.hoverState == 'in') self.show()
                                  }, self.options.delay.show)
                            Severity: Major
                            Found in cabot/static/theme/js/bootstrap.js and 1 other location - About 1 hr to fix
                            cabot/static/theme/js/bootstrap.js on lines 1048..1050

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

                            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.instance.offset.parent.top -= inst.offset.parent.top - this.instance.offset.parent.top;
                            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 1659..1659

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

                            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 location(p) {
                                  return [ (p[0] - view.x) / view.k, (p[1] - view.y) / view.k ];
                                }
                            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 1320..1322

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

                            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 isOverBottomHalf = isOverAxis(this.positionAbs.top + this.offset.click.top, item.top + (item.height/2), item.height),
                            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 4076..4076

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

                            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 point(l) {
                                  return [ l[0] * view.k + view.x, l[1] * view.k + view.y ];
                                }
                            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 1317..1319

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

                            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 = this.originalPageY + Math.round((pageY - this.originalPageY) / o.grid[1]) * o.grid[1];
                            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 4601..4601

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

                            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