camdub/Internships

View on GitHub
public/javascripts/jquery.svg/jquery.svgfilter.js

Summary

Maintainability
F
5 days
Test Coverage

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

    composite: function(parent, result, operator, in1, in2, k1, k2, k3, k4, settings) {
Severity: Major
Found in public/javascripts/jquery.svg/jquery.svgfilter.js - About 1 hr to fix

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

        flood: function(parent, result, x, y, width, height, colour, opacity, settings) {
    Severity: Major
    Found in public/javascripts/jquery.svg/jquery.svgfilter.js - About 1 hr to fix

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

          spotLight: function(parent, result, x, y, z, toX, toY, toZ, settings) {
      Severity: Major
      Found in public/javascripts/jquery.svg/jquery.svgfilter.js - About 1 hr to fix

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

            tile: function(parent, result, in1, x, y, width, height, settings) {
        Severity: Major
        Found in public/javascripts/jquery.svg/jquery.svgfilter.js - About 1 hr to fix

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

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

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

                morphology: function(parent, result, in1, operator, radiusX, radiusY, settings) {
            Severity: Major
            Found in public/javascripts/jquery.svg/jquery.svgfilter.js - About 50 mins to fix

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

                  specularLighting: function(parent, result, in1, surfaceScale,
                          specularConstant, specularExponent, settings) {
              Severity: Major
              Found in public/javascripts/jquery.svg/jquery.svgfilter.js - About 50 mins to fix

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

                    turbulence: function(parent, result, type, baseFreq, octaves, settings) {
                Severity: Minor
                Found in public/javascripts/jquery.svg/jquery.svgfilter.js - About 45 mins to fix

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

                      colorMatrix: function(parent, result, in1, type, values, settings) {
                  Severity: Minor
                  Found in public/javascripts/jquery.svg/jquery.svgfilter.js - About 45 mins to fix

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

                        pointLight: function(parent, result, x, y, z, settings) {
                    Severity: Minor
                    Found in public/javascripts/jquery.svg/jquery.svgfilter.js - About 45 mins to fix

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

                          blend: function(parent, result, mode, in1, in2, settings) {
                      Severity: Minor
                      Found in public/javascripts/jquery.svg/jquery.svgfilter.js - About 45 mins to fix

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

                            offset: function(parent, result, in1, dx, dy, settings) {
                        Severity: Minor
                        Found in public/javascripts/jquery.svg/jquery.svgfilter.js - About 45 mins to fix

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

                              gaussianBlur: function(parent, result, in1, stdDevX, stdDevY, settings) {
                          Severity: Minor
                          Found in public/javascripts/jquery.svg/jquery.svgfilter.js - About 45 mins to fix

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

                                displacementMap: function(parent, result, in1, in2, settings) {
                            Severity: Minor
                            Found in public/javascripts/jquery.svg/jquery.svgfilter.js - About 35 mins to fix

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

                                  distantLight: function(parent, result, azimuth, elevation, settings) {
                              Severity: Minor
                              Found in public/javascripts/jquery.svg/jquery.svgfilter.js - About 35 mins to fix

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

                                    convolveMatrix: function(parent, result, order, matrix, settings) {
                                Severity: Minor
                                Found in public/javascripts/jquery.svg/jquery.svgfilter.js - About 35 mins to fix

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

                                      filter: function(parent, id, x, y, width, height, settings) {
                                          var args = this._args(arguments, ['id', 'x', 'y', 'width', 'height']);
                                          return this._makeNode(args.parent, 'filter', $.extend(
                                              {id: args.id, x: args.x, y: args.y, width: args.width, height: args.height},
                                              args.settings || {}));
                                  Severity: Major
                                  Found in public/javascripts/jquery.svg/jquery.svgfilter.js and 1 other location - About 4 hrs to fix
                                  public/javascripts/jquery.svg/jquery.svg.js on lines 496..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 122.

                                  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

                                      blend: function(parent, result, mode, in1, in2, settings) {
                                          var args = this._wrapper._args(arguments, ['result', 'mode', 'in1', 'in2']);
                                          return this._wrapper._makeNode(args.parent, 'feBlend', $.extend(
                                              {result: args.result, mode: args.mode, in_: args.in1, in2: args.in2},
                                              args.settings || {}));
                                  Severity: Major
                                  Found in public/javascripts/jquery.svg/jquery.svgfilter.js and 2 other locations - About 4 hrs to fix
                                  public/javascripts/jquery.svg/jquery.svgfilter.js on lines 61..65
                                  public/javascripts/jquery.svg/jquery.svgfilter.js on lines 333..338

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

                                  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

                                      pointLight: function(parent, result, x, y, z, settings) {
                                          var args = this._wrapper._args(arguments, ['result', 'x', 'y', 'z']);
                                          return this._wrapper._makeNode(args.parent, 'fePointLight', $.extend(
                                              {result: args.result, x: args.x, y: args.y, z: args.z}, args.settings || {}));
                                      },
                                  Severity: Major
                                  Found in public/javascripts/jquery.svg/jquery.svgfilter.js and 2 other locations - About 4 hrs to fix
                                  public/javascripts/jquery.svg/jquery.svgfilter.js on lines 97..102
                                  public/javascripts/jquery.svg/jquery.svgfilter.js on lines 333..338

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

                                  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

                                      offset: function(parent, result, in1, dx, dy, settings) {
                                          var args = this._wrapper._args(arguments, ['result', 'in1', 'dx', 'dy']);
                                          return this._wrapper._makeNode(args.parent, 'feOffset', $.extend(
                                              {result: args.result, in_: args.in1, dx: args.dx, dy: args.dy},
                                              args.settings || {}));
                                  Severity: Major
                                  Found in public/javascripts/jquery.svg/jquery.svgfilter.js and 2 other locations - About 4 hrs to fix
                                  public/javascripts/jquery.svg/jquery.svgfilter.js on lines 61..65
                                  public/javascripts/jquery.svg/jquery.svgfilter.js on lines 97..102

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

                                  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

                                      displacementMap: function(parent, result, in1, in2, settings) {
                                          var args = this._wrapper._args(arguments, ['result', 'in1', 'in2']);
                                          return this._wrapper._makeNode(args.parent, 'feDisplacementMap',
                                              $.extend({result: args.result, in_: args.in1, in2: args.in2},
                                              args.settings || {}));
                                  Severity: Major
                                  Found in public/javascripts/jquery.svg/jquery.svgfilter.js and 1 other location - About 3 hrs to fix
                                  public/javascripts/jquery.svg/jquery.svgfilter.js on lines 46..51

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

                                  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

                                      distantLight: function(parent, result, azimuth, elevation, settings) {
                                          var args = this._wrapper._args(arguments, ['result', 'azimuth', 'elevation']);
                                          return this._wrapper._makeNode(args.parent, 'feDistantLight', $.extend(
                                              {result: args.result, azimuth: args.azimuth, elevation: args.elevation},
                                              args.settings || {}));
                                  Severity: Major
                                  Found in public/javascripts/jquery.svg/jquery.svgfilter.js and 1 other location - About 3 hrs to fix
                                  public/javascripts/jquery.svg/jquery.svgfilter.js on lines 226..231

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

                                  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

                                          for (var i = 0; i < args.matrix.length; i++) {
                                              mx += (i == 0 ? '' : ' ') + args.matrix[i].join(' ');
                                          }
                                  Severity: Major
                                  Found in public/javascripts/jquery.svg/jquery.svgfilter.js and 1 other location - About 1 hr to fix
                                  public/javascripts/jquery.svg/jquery.svgfilter.js on lines 119..121

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

                                  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

                                              for (var i = 0; i < args.values.length; i++) {
                                                  vs += (i == 0 ? '' : ' ') + args.values[i].join(' ');
                                              }
                                  Severity: Major
                                  Found in public/javascripts/jquery.svg/jquery.svgfilter.js and 1 other location - About 1 hr to fix
                                  public/javascripts/jquery.svg/jquery.svgfilter.js on lines 197..199

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

                                  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

                                              floodOpacity: args.opacity}, (args.x != null ?
                                              {x: args.x, y: args.y, width: args.width, height: args.height} : {}));
                                  Severity: Major
                                  Found in public/javascripts/jquery.svg/jquery.svgfilter.js and 2 other locations - About 55 mins to fix
                                  public/javascripts/jquery.svg/jquery.svg.js on lines 425..425
                                  public/javascripts/jquery.svg/jquery.svgfilter.js on lines 182..182

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

                                  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 node = this._wrapper._makeNode(args.parent, 'feMerge', $.extend(
                                              {result: args.result}, args.settings || {}));
                                  Severity: Major
                                  Found in public/javascripts/jquery.svg/jquery.svgfilter.js and 2 other locations - About 55 mins to fix
                                  public/javascripts/jquery.svg/jquery.svgfilter.js on lines 149..150
                                  public/javascripts/jquery.svg/jquery.svgfilter.js on lines 285..286

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

                                  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

                                              (args.k1 != null ? {k1: args.k1, k2: args.k2, k3: args.k3, k4: args.k4} : {}));
                                  Severity: Major
                                  Found in public/javascripts/jquery.svg/jquery.svgfilter.js and 2 other locations - About 55 mins to fix
                                  public/javascripts/jquery.svg/jquery.svg.js on lines 425..425
                                  public/javascripts/jquery.svg/jquery.svgfilter.js on lines 255..256

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

                                  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 node = this._wrapper._makeNode(args.parent, 'feComponentTransfer',
                                              $.extend({result: args.result}, args.settings || {}));
                                  Severity: Major
                                  Found in public/javascripts/jquery.svg/jquery.svgfilter.js and 2 other locations - About 55 mins to fix
                                  public/javascripts/jquery.svg/jquery.svgfilter.js on lines 285..286
                                  public/javascripts/jquery.svg/jquery.svgfilter.js on lines 299..300

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

                                  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 node = this._wrapper._makeNode(args.parent, 'feImage', $.extend(
                                              {result: args.result}, args.settings || {}));
                                  Severity: Major
                                  Found in public/javascripts/jquery.svg/jquery.svgfilter.js and 2 other locations - About 55 mins to fix
                                  public/javascripts/jquery.svg/jquery.svgfilter.js on lines 149..150
                                  public/javascripts/jquery.svg/jquery.svgfilter.js on lines 299..300

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

                                  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