GuilhermeStracini/TCC-SENAC

View on GitHub

Showing 605 of 605 total issues

Function onKeyDown has 59 lines of code (exceeds 25 allowed). Consider refactoring.
Open

Spry.Widget.ValidationTextField.prototype.onKeyDown = function(e)
{
    this.saveState();
    this.keyCode = e.keyCode;

Severity: Major
Found in Src/scripts/spryvalidationtextfield.js - About 2 hrs to fix

    Function extend has 59 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    Element.extend = (function() {
    
      function checkDeficiency(tagName) {
        if (typeof window.Element != 'undefined') {
          var proto = window.Element.prototype;
    Severity: Major
    Found in Src/scripts/prototype.js - About 2 hrs to fix

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

        function pointerY(event) {
          var docElement = document.documentElement,
           body = document.body || { scrollTop: 0 };
      
          return  event.pageY || (event.clientY +
      Severity: Major
      Found in Src/scripts/prototype.js and 1 other location - About 2 hrs to fix
      Src/scripts/prototype.js on lines 5445..5452

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

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

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

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

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

      Refactorings

      Further Reading

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

        function pointerX(event) {
          var docElement = document.documentElement,
           body = document.body || { scrollLeft: 0 };
      
          return event.pageX || (event.clientX +
      Severity: Major
      Found in Src/scripts/prototype.js and 1 other location - About 2 hrs to fix
      Src/scripts/prototype.js on lines 5454..5461

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

      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

      Consider simplifying this complex logical expression.
      Open

          if (rule &&
              (rule == TOK_DIV ||
               rule == TOK_MOD ||
               rule == TOK_AND ||
               rule == TOK_OR) &&
      Severity: Critical
      Found in Src/scripts/xpath.js - About 2 hrs to fix

        Function filter has 58 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        Sizzle.filter = function(expr, set, inplace, not){
            var old = expr, result = [], curLoop = set, match, anyFound,
                isXMLFilter = set && set[0] && isXML(set[0]);
        
            while ( expr && set.length ) {
        Severity: Major
        Found in Src/scripts/prototype.js - About 2 hrs to fix

          File lightbox.js has 263 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          // -----------------------------------------------------------------------------------
          //
          //    Lightbox v2.05
          //    by Lokesh Dhakar - http://www.lokeshdhakar.com
          //    Last Modification: 3/18/11
          Severity: Minor
          Found in Src/scripts/lightbox.js - About 2 hrs to fix

            Function applyColumnTypes has a Cognitive Complexity of 17 (exceeds 5 allowed). Consider refactoring.
            Open

            Spry.Data.DataSet.prototype.applyColumnTypes = function()
            {
                var rows = this.getData(true);
                var numRows = rows.length;
                var colNames = [];
            Severity: Minor
            Found in Src/scripts/sprydata.js - About 2 hrs to fix

            Cognitive Complexity

            Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

            A method's cognitive complexity is based on a few simple rules:

            • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
            • Code is considered more complex for each "break in the linear flow of the code"
            • Code is considered more complex when "flow breaking structures are nested"

            Further reading

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

            Spry.Data.Region.PI.instructions["spry:when"] = { tagName: "spry:when", childrenOnly: false, getOpenTag: Spry.Data.Region.PI.buildOpenTagForTest, getCloseTag: Spry.Data.Region.PI.buildCloseTag };
            Severity: Major
            Found in Src/scripts/sprydata.js and 7 other locations - About 2 hrs to fix
            Src/scripts/sprydata.js on lines 4345..4345
            Src/scripts/sprydata.js on lines 4346..4346
            Src/scripts/sprydata.js on lines 4347..4347
            Src/scripts/sprydata.js on lines 4348..4348
            Src/scripts/sprydata.js on lines 4349..4349
            Src/scripts/sprydata.js on lines 4351..4351
            Src/scripts/sprydata.js on lines 4352..4352

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

            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

                  'right': function(element) {
                    var offset = element.positionedOffset(),
                     parent = element.getOffsetParent(),
                     pWidth = parent.measure('width');
            
            
            Severity: Major
            Found in Src/scripts/prototype.js and 1 other location - About 2 hrs to fix
            Src/scripts/prototype.js on lines 3525..3533

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

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

            Spry.Data.Region.PI.instructions["spry:repeat"] = { tagName: "spry:repeat", childrenOnly: false, getOpenTag: Spry.Data.Region.PI.buildOpenTagForRepeat, getCloseTag: Spry.Data.Region.PI.buildCloseTag };
            Severity: Major
            Found in Src/scripts/sprydata.js and 7 other locations - About 2 hrs to fix
            Src/scripts/sprydata.js on lines 4345..4345
            Src/scripts/sprydata.js on lines 4346..4346
            Src/scripts/sprydata.js on lines 4348..4348
            Src/scripts/sprydata.js on lines 4349..4349
            Src/scripts/sprydata.js on lines 4350..4350
            Src/scripts/sprydata.js on lines 4351..4351
            Src/scripts/sprydata.js on lines 4352..4352

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

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

            Spry.Data.Region.PI.instructions["spry:choose"] = { tagName: "spry:choose", childrenOnly: true, getOpenTag: Spry.Data.Region.PI.buildOpenTag, getCloseTag: Spry.Data.Region.PI.buildCloseTag };
            Severity: Major
            Found in Src/scripts/sprydata.js and 7 other locations - About 2 hrs to fix
            Src/scripts/sprydata.js on lines 4345..4345
            Src/scripts/sprydata.js on lines 4346..4346
            Src/scripts/sprydata.js on lines 4347..4347
            Src/scripts/sprydata.js on lines 4348..4348
            Src/scripts/sprydata.js on lines 4350..4350
            Src/scripts/sprydata.js on lines 4351..4351
            Src/scripts/sprydata.js on lines 4352..4352

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

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

            Spry.Data.Region.PI.instructions["spry:default"] = { tagName: "spry:default", childrenOnly: false, getOpenTag: Spry.Data.Region.PI.buildOpenTag, getCloseTag: Spry.Data.Region.PI.buildCloseTag };
            Severity: Major
            Found in Src/scripts/sprydata.js and 7 other locations - About 2 hrs to fix
            Src/scripts/sprydata.js on lines 4345..4345
            Src/scripts/sprydata.js on lines 4346..4346
            Src/scripts/sprydata.js on lines 4347..4347
            Src/scripts/sprydata.js on lines 4348..4348
            Src/scripts/sprydata.js on lines 4349..4349
            Src/scripts/sprydata.js on lines 4350..4350
            Src/scripts/sprydata.js on lines 4352..4352

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

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

            Spry.Data.Region.PI.instructions["spry:if"] = { tagName: "spry:if", childrenOnly: false, getOpenTag: Spry.Data.Region.PI.buildOpenTagForTest, getCloseTag: Spry.Data.Region.PI.buildCloseTag };
            Severity: Major
            Found in Src/scripts/sprydata.js and 7 other locations - About 2 hrs to fix
            Src/scripts/sprydata.js on lines 4345..4345
            Src/scripts/sprydata.js on lines 4347..4347
            Src/scripts/sprydata.js on lines 4348..4348
            Src/scripts/sprydata.js on lines 4349..4349
            Src/scripts/sprydata.js on lines 4350..4350
            Src/scripts/sprydata.js on lines 4351..4351
            Src/scripts/sprydata.js on lines 4352..4352

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

            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

                  'bottom': function(element) {
                    var offset = element.positionedOffset(),
                     parent = element.getOffsetParent(),
                     pHeight = parent.measure('height');
            
            
            Severity: Major
            Found in Src/scripts/prototype.js and 1 other location - About 2 hrs to fix
            Src/scripts/prototype.js on lines 3540..3548

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

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

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

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

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

            Refactorings

            Further Reading

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

            if (!Spry.Widget.Form.onSubmit) {
                Spry.Widget.Form.onSubmit = function(e, form)
                {
                    if (Spry.Widget.Form.validate(form) == false) {
                        return false;
            Severity: Major
            Found in Src/scripts/spryvalidationtextfield.js and 1 other location - About 2 hrs to fix
            Src/scripts/spryvalidationselect.js on lines 330..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 80.

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

            Spry.Data.Region.PI.instructions["spry:content"] = { tagName: "spry:content", childrenOnly: true, getOpenTag: Spry.Data.Region.PI.buildOpenTagForContent, getCloseTag: Spry.Data.Region.PI.buildCloseTag };
            Severity: Major
            Found in Src/scripts/sprydata.js and 7 other locations - About 2 hrs to fix
            Src/scripts/sprydata.js on lines 4345..4345
            Src/scripts/sprydata.js on lines 4346..4346
            Src/scripts/sprydata.js on lines 4347..4347
            Src/scripts/sprydata.js on lines 4348..4348
            Src/scripts/sprydata.js on lines 4349..4349
            Src/scripts/sprydata.js on lines 4350..4350
            Src/scripts/sprydata.js on lines 4351..4351

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

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

            Spry.Data.Region.PI.instructions["spry:repeatchildren"] = { tagName: "spry:repeat", childrenOnly: true, getOpenTag: Spry.Data.Region.PI.buildOpenTagForRepeat, getCloseTag: Spry.Data.Region.PI.buildCloseTag };
            Severity: Major
            Found in Src/scripts/sprydata.js and 7 other locations - About 2 hrs to fix
            Src/scripts/sprydata.js on lines 4345..4345
            Src/scripts/sprydata.js on lines 4346..4346
            Src/scripts/sprydata.js on lines 4347..4347
            Src/scripts/sprydata.js on lines 4349..4349
            Src/scripts/sprydata.js on lines 4350..4350
            Src/scripts/sprydata.js on lines 4351..4351
            Src/scripts/sprydata.js on lines 4352..4352

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

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

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

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

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

            Refactorings

            Further Reading

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

            if (!Spry.Widget.Form.onSubmit) {
                Spry.Widget.Form.onSubmit = function(e, form)
                {
                    if (Spry.Widget.Form.validate(form) == false) {
                        return false;
            Severity: Major
            Found in Src/scripts/spryvalidationselect.js and 1 other location - About 2 hrs to fix
            Src/scripts/spryvalidationtextfield.js on lines 1994..2002

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

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

            Spry.Data.Region.PI.instructions["spry:state"] = { tagName: "spry:state", childrenOnly: false, getOpenTag: Spry.Data.Region.PI.buildOpenTagForState, getCloseTag: Spry.Data.Region.PI.buildCloseTag };
            Severity: Major
            Found in Src/scripts/sprydata.js and 7 other locations - About 2 hrs to fix
            Src/scripts/sprydata.js on lines 4346..4346
            Src/scripts/sprydata.js on lines 4347..4347
            Src/scripts/sprydata.js on lines 4348..4348
            Src/scripts/sprydata.js on lines 4349..4349
            Src/scripts/sprydata.js on lines 4350..4350
            Src/scripts/sprydata.js on lines 4351..4351
            Src/scripts/sprydata.js on lines 4352..4352

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

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

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

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

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

            Refactorings

            Further Reading

            Severity
            Category
            Status
            Source
            Language