BallStateCBER/datacenter-plugin-cakephp3

View on GitHub
webroot/js/jquery.svg.js

Summary

Maintainability
F
1 wk
Test Coverage

File jquery.svg.js has 863 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/* http://keith-wood.name/svg.html
   SVG for jQuery v1.4.5.
   Written by Keith Wood (kbwood{at}iinet.com.au) August 2007.
   Dual licensed under the GPL (http://dev.jquery.com/browser/trunk/jquery/GPL-LICENSE.txt) and 
   MIT (http://dev.jquery.com/browser/trunk/jquery/MIT-LICENSE.txt) licenses. 
Severity: Major
Found in webroot/js/jquery.svg.js - About 2 days to fix

    Function load has 87 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        load: function(url, settings) {
            settings = (typeof settings == 'boolean' ? {addTo: settings} :
                (typeof settings == 'function' ? {onLoad: settings} :
                (typeof settings == 'string' ? {parent: settings} : 
                (typeof settings == 'object' && settings.nodeName ? {parent: settings} :
    Severity: Major
    Found in webroot/js/jquery.svg.js - About 3 hrs to fix

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

          _attachSVG: function(container, settings) {
              var svg = (container.namespaceURI == this.svgNS ? container : null);
              var container = (svg ? null : container);
              if ($(container || svg).hasClass(this.markerClassName)) {
                  return;
      Severity: Minor
      Found in webroot/js/jquery.svg.js - About 1 hr to fix

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

            _cloneAsSVG: function(node) {
                var newNode = null;
                if (node.nodeType == 1) { // element
                    newNode = this._svg.ownerDocument.createElementNS(
                        $.svg.svgNS, this._checkName(node.nodeName));
        Severity: Minor
        Found in webroot/js/jquery.svg.js - About 1 hr to fix

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

                  var loadSVG = function(data) {
                      if (!data) {
                          return;
                      }
                      if (data.documentElement.nodeName != 'svg') {
          Severity: Minor
          Found in webroot/js/jquery.svg.js - About 1 hr to fix

            Function _toSVG has 36 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                _toSVG: function(node) {
                    var svgDoc = '';
                    if (!node) {
                        return svgDoc;
                    }
            Severity: Minor
            Found in webroot/js/jquery.svg.js - About 1 hr to fix

              Function pattern has 11 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                  pattern: function(parent, id, x, y, width, height, vx, vy, vwidth, vheight, settings) {
              Severity: Major
              Found in webroot/js/jquery.svg.js - About 1 hr to fix

                Function svg has 10 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                    svg: function(parent, x, y, width, height, vx, vy, vwidth, vheight, settings) {
                Severity: Major
                Found in webroot/js/jquery.svg.js - About 1 hr to fix

                  Function _text has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      _text: function(parent, name, value, settings) {
                          var node = this._makeNode(parent, name, settings);
                          if (typeof value == 'string') {
                              node.appendChild(node.ownerDocument.createTextNode(value));
                          }
                  Severity: Minor
                  Found in webroot/js/jquery.svg.js - About 1 hr to fix

                    Function radialGradient has 9 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                        radialGradient: function(parent, id, stops, cx, cy, r, fx, fy, settings) {
                    Severity: Major
                    Found in webroot/js/jquery.svg.js - About 1 hr to fix

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

                          linearGradient: function(parent, id, stops, x1, y1, x2, y2, settings) {
                      Severity: Major
                      Found in webroot/js/jquery.svg.js - About 1 hr to fix

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

                            rect: function(parent, x, y, width, height, rx, ry, settings) {
                        Severity: Major
                        Found in webroot/js/jquery.svg.js - About 1 hr to fix

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

                              marker: function(parent, id, refX, refY, mWidth, mHeight, orient, settings) {
                          Severity: Major
                          Found in webroot/js/jquery.svg.js - About 1 hr to fix

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

                                arc: function(rx, ry, xRotate, large, clockwise, x, y, relative) {
                            Severity: Major
                            Found in webroot/js/jquery.svg.js - About 1 hr to fix

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

                                  curveC: function(x1, y1, x2, y2, x, y, relative) {
                              Severity: Major
                              Found in webroot/js/jquery.svg.js - About 50 mins to fix

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

                                    image: function(parent, x, y, width, height, ref, settings) {
                                Severity: Major
                                Found in webroot/js/jquery.svg.js - About 50 mins to fix

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

                                      symbol: function(parent, id, x1, y1, width, height, settings) {
                                  Severity: Major
                                  Found in webroot/js/jquery.svg.js - About 50 mins to fix

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

                                        mask: function(parent, id, x, y, width, height, settings) {
                                    Severity: Major
                                    Found in webroot/js/jquery.svg.js - About 50 mins to fix

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

                                          use: function(parent, x, y, width, height, ref, settings) {
                                      Severity: Major
                                      Found in webroot/js/jquery.svg.js - About 50 mins to fix

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

                                            _coords: function(cmd, x1, y1, x2, y2, x3, y3) {
                                        Severity: Major
                                        Found in webroot/js/jquery.svg.js - About 50 mins to fix

                                          Function line has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                          Open

                                              line: function(parent, x1, y1, x2, y2, settings) {
                                          Severity: Minor
                                          Found in webroot/js/jquery.svg.js - About 45 mins to fix

                                            Function ellipse has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                            Open

                                                ellipse: function(parent, cx, cy, rx, ry, settings) {
                                            Severity: Minor
                                            Found in webroot/js/jquery.svg.js - About 45 mins to fix

                                              Function text has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                              Open

                                                  text: function(parent, x, y, value, settings) {
                                              Severity: Minor
                                              Found in webroot/js/jquery.svg.js - About 35 mins to fix

                                                Function circle has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                Open

                                                    circle: function(parent, cx, cy, r, settings) {
                                                Severity: Minor
                                                Found in webroot/js/jquery.svg.js - About 35 mins to fix

                                                  Function smoothC has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                  Open

                                                      smoothC: function(x2, y2, x, y, relative) {
                                                  Severity: Minor
                                                  Found in webroot/js/jquery.svg.js - About 35 mins to fix

                                                    Function curveQ has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                    Open

                                                        curveQ: function(x1, y1, x, y, relative) {
                                                    Severity: Minor
                                                    Found in webroot/js/jquery.svg.js - About 35 mins to fix

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

                                                          line: function(parent, x1, y1, x2, y2, settings) {
                                                              var args = this._args(arguments, ['x1', 'y1', 'x2', 'y2']);
                                                              return this._makeNode(args.parent, 'line', $.extend(
                                                                  {x1: args.x1, y1: args.y1, x2: args.x2, y2: args.y2}, args.settings || {}));
                                                          },
                                                      Severity: Major
                                                      Found in webroot/js/jquery.svg.js and 1 other location - About 3 hrs to fix
                                                      webroot/js/jquery.svg.js on lines 681..685

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

                                                      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

                                                          ellipse: function(parent, cx, cy, rx, ry, settings) {
                                                              var args = this._args(arguments, ['cx', 'cy', 'rx', 'ry']);
                                                              return this._makeNode(args.parent, 'ellipse', $.extend(
                                                                  {cx: args.cx, cy: args.cy, rx: args.rx, ry: args.ry}, args.settings || {}));
                                                          },
                                                      Severity: Major
                                                      Found in webroot/js/jquery.svg.js and 1 other location - About 3 hrs to fix
                                                      webroot/js/jquery.svg.js on lines 695..699

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

                                                      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

                                                          title: function(parent, text, settings) {
                                                              var args = this._args(arguments, ['text']);
                                                              var node = this._makeNode(args.parent, 'title', args.settings || {});
                                                              node.appendChild(this._svg.ownerDocument.createTextNode(args.text));
                                                              return node;
                                                      Severity: Major
                                                      Found in webroot/js/jquery.svg.js and 1 other location - About 3 hrs to fix
                                                      webroot/js/jquery.svg.js on lines 341..346

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

                                                      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

                                                          describe: function(parent, text, settings) {
                                                              var args = this._args(arguments, ['text']);
                                                              var node = this._makeNode(args.parent, 'desc', args.settings || {});
                                                              node.appendChild(this._svg.ownerDocument.createTextNode(args.text));
                                                              return node;
                                                      Severity: Major
                                                      Found in webroot/js/jquery.svg.js and 1 other location - About 3 hrs to fix
                                                      webroot/js/jquery.svg.js on lines 329..334

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

                                                      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 node = this._makeNode(args.parent, 'image', $.extend(
                                                                  {x: args.x, y: args.y, width: args.width, height: args.height},
                                                                  args.settings || {}));
                                                      Severity: Major
                                                      Found in webroot/js/jquery.svg.js and 1 other location - About 2 hrs to fix
                                                      webroot/js/jquery.svg.js on lines 594..596

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

                                                      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 node = this._makeNode(args.parent, 'use', $.extend(
                                                                  {x: args.x, y: args.y, width: args.width, height: args.height},
                                                                  args.settings || {}));
                                                      Severity: Major
                                                      Found in webroot/js/jquery.svg.js and 1 other location - About 2 hrs to fix
                                                      webroot/js/jquery.svg.js on lines 624..626

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

                                                      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

                                                                  width: args.width, height: args.height}, (args.vx != null ?
                                                                  {viewBox: args.vx + ' ' + args.vy + ' ' + args.vwidth + ' ' + args.vheight} : {}));
                                                      Severity: Major
                                                      Found in webroot/js/jquery.svg.js and 1 other location - About 1 hr to fix
                                                      webroot/js/jquery.svg.js on lines 562..563

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

                                                      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

                                                                  (args.vx != null ? {viewBox: args.vx + ' ' + args.vy + ' ' +
                                                                  args.vwidth + ' ' + args.vheight} : {}));
                                                      Severity: Major
                                                      Found in webroot/js/jquery.svg.js and 1 other location - About 1 hr to fix
                                                      webroot/js/jquery.svg.js on lines 500..501

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

                                                      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

                                                          polyline: function(parent, points, settings) {
                                                              var args = this._args(arguments, ['points']);
                                                              return this._poly(args.parent, 'polyline', args.points, args.settings);
                                                          },
                                                      Severity: Major
                                                      Found in webroot/js/jquery.svg.js and 1 other location - About 1 hr to fix
                                                      webroot/js/jquery.svg.js on lines 716..719

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

                                                      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

                                                          polygon: function(parent, points, settings) {
                                                              var args = this._args(arguments, ['points']);
                                                              return this._poly(args.parent, 'polygon', args.points, args.settings);
                                                          },
                                                      Severity: Major
                                                      Found in webroot/js/jquery.svg.js and 1 other location - About 1 hr to fix
                                                      webroot/js/jquery.svg.js on lines 706..709

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

                                                      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

                                                          horiz: function(x, relative) {
                                                              this._path += (relative ? 'h' : 'H') + (isArray(x) ? x.join(' ') : x);
                                                              return this;
                                                          },
                                                      Severity: Major
                                                      Found in webroot/js/jquery.svg.js and 1 other location - About 1 hr to fix
                                                      webroot/js/jquery.svg.js on lines 1174..1177

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

                                                      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

                                                          vert: function(y, relative) {
                                                              this._path += (relative ? 'v' : 'V') + (isArray(y) ? y.join(' ') : y);
                                                              return this;
                                                          },
                                                      Severity: Major
                                                      Found in webroot/js/jquery.svg.js and 1 other location - About 1 hr to fix
                                                      webroot/js/jquery.svg.js on lines 1163..1166

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

                                                      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

                                                          curveQ: function(x1, y1, x, y, relative) {
                                                              relative = (isArray(x1) ? y1 : relative);
                                                              return this._coords((relative ? 'q' : 'Q'), x1, y1, x, y);
                                                          },
                                                      Severity: Major
                                                      Found in webroot/js/jquery.svg.js and 1 other location - About 1 hr to fix
                                                      webroot/js/jquery.svg.js on lines 1205..1208

                                                      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

                                                          smoothC: function(x2, y2, x, y, relative) {
                                                              relative = (isArray(x2) ? y2 : relative);
                                                              return this._coords((relative ? 's' : 'S'), x2, y2, x, y);
                                                          },
                                                      Severity: Major
                                                      Found in webroot/js/jquery.svg.js and 1 other location - About 1 hr to fix
                                                      webroot/js/jquery.svg.js on lines 1219..1222

                                                      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 3 locations. Consider refactoring.
                                                      Open

                                                          line: function(x, y, relative) {
                                                              relative = (isArray(x) ? y : relative);
                                                              return this._coords((relative ? 'l' : 'L'), x, y);
                                                          },
                                                      Severity: Major
                                                      Found in webroot/js/jquery.svg.js and 2 other locations - About 50 mins to fix
                                                      webroot/js/jquery.svg.js on lines 1140..1143
                                                      webroot/js/jquery.svg.js on lines 1232..1235

                                                      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 3 locations. Consider refactoring.
                                                      Open

                                                          move: function(x, y, relative) {
                                                              relative = (isArray(x) ? y : relative);
                                                              return this._coords((relative ? 'm' : 'M'), x, y);
                                                          },
                                                      Severity: Major
                                                      Found in webroot/js/jquery.svg.js and 2 other locations - About 50 mins to fix
                                                      webroot/js/jquery.svg.js on lines 1152..1155
                                                      webroot/js/jquery.svg.js on lines 1232..1235

                                                      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 3 locations. Consider refactoring.
                                                      Open

                                                          smoothQ: function(x, y, relative) {
                                                              relative = (isArray(x) ? y : relative);
                                                              return this._coords((relative ? 't' : 'T'), x, y);
                                                          },
                                                      Severity: Major
                                                      Found in webroot/js/jquery.svg.js and 2 other locations - About 50 mins to fix
                                                      webroot/js/jquery.svg.js on lines 1140..1143
                                                      webroot/js/jquery.svg.js on lines 1152..1155

                                                      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 3 locations. Consider refactoring.
                                                      Open

                                                          if (typeof options == 'string' && options == 'get') {
                                                              return $.svg['_' + options + 'SVG'].apply($.svg, [this[0]].concat(otherArgs));
                                                          }
                                                      Severity: Major
                                                      Found in webroot/js/jquery.svg.js and 2 other locations - About 45 mins to fix
                                                      webroot/jquery-ui-1.11.3.custom/jquery-ui.js on lines 10047..10050
                                                      webroot/jquery-ui-1.11.3.custom/jquery-ui.js on lines 10051..10054

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

                                                      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

                                                                  {cx: args.cx, cy: args.cy, r: args.r, fx: args.fx, fy: args.fy} : {}));
                                                      Severity: Minor
                                                      Found in webroot/js/jquery.svg.js and 2 other locations - About 35 mins to fix
                                                      webroot/js/jquery.svg.js on lines 499..500
                                                      webroot/js/jquery.svg.js on lines 529..529

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

                                                      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

                                                              var sets = $.extend({id: args.id, x: args.x, y: args.y,
                                                                  width: args.width, height: args.height}, (args.vx != null ?
                                                      Severity: Minor
                                                      Found in webroot/js/jquery.svg.js and 2 other locations - About 35 mins to fix
                                                      webroot/js/jquery.svg.js on lines 465..465
                                                      webroot/js/jquery.svg.js on lines 529..529

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

                                                      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

                                                                  {id: args.id, x: args.x, y: args.y, width: args.width, height: args.height},
                                                      Severity: Minor
                                                      Found in webroot/js/jquery.svg.js and 2 other locations - About 35 mins to fix
                                                      webroot/js/jquery.svg.js on lines 465..465
                                                      webroot/js/jquery.svg.js on lines 499..500

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

                                                      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

                                                      There are no issues that match your filters.

                                                      Category
                                                      Status