Showing 398 of 398 total issues

Function _getTmpl has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function _getTmpl (str) {
    var parts = brackets.split(str.replace(RE_DQUOTE, '"'), 1);
    var qstr = parts.qblocks;
    var expr;

Severity: Minor
Found in dist/csp.tmpl.js - About 1 hr to fix

    Function _getTmpl has 29 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      function _getTmpl (str) {
        var parts = brackets.split(str.replace(RE_DQUOTE, '"'), 1)
        var qstr = parts.qblocks
        var expr
    
    
    Severity: Minor
    Found in dist/es6.tmpl.js - About 1 hr to fix

      Function testRegExp has 29 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              Scanner.prototype.testRegExp = function (pattern, flags) {
                  // The BMP character to use as a replacement for astral symbols when
                  // translating an ES6 "u"-flagged pattern to an ES5-compatible
                  // approximation.
                  // Note: replacing with '\uFFFF' enables false positives in unlikely
      Severity: Minor
      Found in dist/csp.tmpl.js - About 1 hr to fix

        Function _getTmpl has 29 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            function _getTmpl (str) {
              var parts = brackets.split(str.replace(RE_DQUOTE, '"'), 1)
              var qstr = parts.qblocks
              var expr
        
        
        Severity: Minor
        Found in dist/tmpl.js - About 1 hr to fix

          Function _getTmpl has 29 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

            function _getTmpl (str) {
              var parts = brackets.split(str.replace(RE_DQUOTE, '"'), 1)// get text/expr parts
              var qstr = parts.qblocks                                  // hidden qblocks
              var expr
          
          
          Severity: Minor
          Found in src/tmpl.js - About 1 hr to fix

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

                                case 'export':
                                    if (this.sourceType !== 'module') {
                                        this.tolerateUnexpectedToken(this.lookahead, messages_1.Messages.IllegalExportDeclaration);
                                    }
                                    statement = this.parseExportDeclaration();
            Severity: Major
            Found in dist/csp.tmpl.js and 1 other location - About 1 hr to fix
            dist/csp.tmpl.js on lines 1943..1948

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

            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

                                case 'import':
                                    if (this.sourceType !== 'module') {
                                        this.tolerateUnexpectedToken(this.lookahead, messages_1.Messages.IllegalImportDeclaration);
                                    }
                                    statement = this.parseImportDeclaration();
            Severity: Major
            Found in dist/csp.tmpl.js and 1 other location - About 1 hr to fix
            dist/csp.tmpl.js on lines 1937..1942

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

            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 (Object.prototype.hasOwnProperty.call(options.paramSet, key)) {
                                options.stricted = param;
                                options.message = messages_1.Messages.StrictParamDupe;
                            }
            Severity: Major
            Found in dist/csp.tmpl.js and 1 other location - About 1 hr to fix
            dist/csp.tmpl.js on lines 2760..2763

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

            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

                            else if (Object.prototype.hasOwnProperty.call(options.paramSet, key)) {
                                options.stricted = param;
                                options.message = messages_1.Messages.StrictParamDupe;
                            }
            Severity: Major
            Found in dist/csp.tmpl.js and 1 other location - About 1 hr to fix
            dist/csp.tmpl.js on lines 2746..2749

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

            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

            Function _skipRegex has 28 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

              function _skipRegex (code, start) {
            
                var re = /.*/g;
                var pos = re.lastIndex = start++;
                var match = re.exec(code)[0].match(RE_REGEX);
            Severity: Minor
            Found in dist/csp.tmpl.js - About 1 hr to fix

              Function _skipRegex has 28 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                function _skipRegex (code, start) {
              
                  var re = /.*/g
                  var pos = re.lastIndex = start++
                  var match = re.exec(code)[0].match(RE_REGEX)
              Severity: Minor
              Found in dist/es6.tmpl.js - About 1 hr to fix

                Function _skipRegex has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    function _skipRegex (code, start) {
                
                      var re = /.*/g
                      var pos = re.lastIndex = start++
                      var match = re.exec(code)[0].match(RE_REGEX)
                Severity: Minor
                Found in dist/tmpl.js - About 1 hr to fix

                  Function visitComment has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                          CommentHandler.prototype.visitComment = function (node, metadata) {
                              var type = (node.type[0] === 'L') ? 'Line' : 'Block';
                              var comment = {
                                  type: type,
                                  value: node.value
                  Severity: Minor
                  Found in dist/csp.tmpl.js - About 1 hr to fix

                    Function _skipRegex has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                      function _skipRegex (code, start) {
                    
                        // `exec()` will extract from the slash to the end of line and the
                        // chained `match()` will match the possible regex.
                        var re = /.*/g
                    Severity: Minor
                    Found in src/skip-regex.js - About 1 hr to fix

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

                          var ExportAllDeclaration = (function () {
                              function ExportAllDeclaration(source) {
                                  this.type = syntax_1.Syntax.ExportAllDeclaration;
                                  this.source = source;
                              }
                      Severity: Major
                      Found in dist/csp.tmpl.js and 22 other locations - About 1 hr to fix
                      dist/csp.tmpl.js on lines 4844..4850
                      dist/csp.tmpl.js on lines 4852..4858
                      dist/csp.tmpl.js on lines 4902..4908
                      dist/csp.tmpl.js on lines 4910..4916
                      dist/csp.tmpl.js on lines 4936..4942
                      dist/csp.tmpl.js on lines 4984..4990
                      dist/csp.tmpl.js on lines 5032..5038
                      dist/csp.tmpl.js on lines 5059..5065
                      dist/csp.tmpl.js on lines 5123..5129
                      dist/csp.tmpl.js on lines 5150..5156
                      dist/csp.tmpl.js on lines 5158..5164
                      dist/csp.tmpl.js on lines 5223..5229
                      dist/csp.tmpl.js on lines 5231..5237
                      dist/csp.tmpl.js on lines 5271..5277
                      dist/csp.tmpl.js on lines 5279..5285
                      dist/csp.tmpl.js on lines 5287..5293
                      dist/csp.tmpl.js on lines 5295..5301
                      dist/csp.tmpl.js on lines 5372..5378
                      dist/csp.tmpl.js on lines 6284..6290
                      dist/csp.tmpl.js on lines 6309..6315
                      dist/csp.tmpl.js on lines 6317..6323
                      dist/csp.tmpl.js on lines 6362..6368

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

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

                          var ExpressionStatement = (function () {
                              function ExpressionStatement(expression) {
                                  this.type = syntax_1.Syntax.ExpressionStatement;
                                  this.expression = expression;
                              }
                      Severity: Major
                      Found in dist/csp.tmpl.js and 22 other locations - About 1 hr to fix
                      dist/csp.tmpl.js on lines 4844..4850
                      dist/csp.tmpl.js on lines 4852..4858
                      dist/csp.tmpl.js on lines 4902..4908
                      dist/csp.tmpl.js on lines 4910..4916
                      dist/csp.tmpl.js on lines 4936..4942
                      dist/csp.tmpl.js on lines 4984..4990
                      dist/csp.tmpl.js on lines 5024..5030
                      dist/csp.tmpl.js on lines 5032..5038
                      dist/csp.tmpl.js on lines 5123..5129
                      dist/csp.tmpl.js on lines 5150..5156
                      dist/csp.tmpl.js on lines 5158..5164
                      dist/csp.tmpl.js on lines 5223..5229
                      dist/csp.tmpl.js on lines 5231..5237
                      dist/csp.tmpl.js on lines 5271..5277
                      dist/csp.tmpl.js on lines 5279..5285
                      dist/csp.tmpl.js on lines 5287..5293
                      dist/csp.tmpl.js on lines 5295..5301
                      dist/csp.tmpl.js on lines 5372..5378
                      dist/csp.tmpl.js on lines 6284..6290
                      dist/csp.tmpl.js on lines 6309..6315
                      dist/csp.tmpl.js on lines 6317..6323
                      dist/csp.tmpl.js on lines 6362..6368

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

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

                          var JSXClosingElement = (function () {
                              function JSXClosingElement(name) {
                                  this.type = jsx_syntax_1.JSXSyntax.JSXClosingElement;
                                  this.name = name;
                              }
                      Severity: Major
                      Found in dist/csp.tmpl.js and 22 other locations - About 1 hr to fix
                      dist/csp.tmpl.js on lines 4844..4850
                      dist/csp.tmpl.js on lines 4852..4858
                      dist/csp.tmpl.js on lines 4902..4908
                      dist/csp.tmpl.js on lines 4910..4916
                      dist/csp.tmpl.js on lines 4936..4942
                      dist/csp.tmpl.js on lines 4984..4990
                      dist/csp.tmpl.js on lines 5024..5030
                      dist/csp.tmpl.js on lines 5032..5038
                      dist/csp.tmpl.js on lines 5059..5065
                      dist/csp.tmpl.js on lines 5123..5129
                      dist/csp.tmpl.js on lines 5150..5156
                      dist/csp.tmpl.js on lines 5158..5164
                      dist/csp.tmpl.js on lines 5223..5229
                      dist/csp.tmpl.js on lines 5231..5237
                      dist/csp.tmpl.js on lines 5271..5277
                      dist/csp.tmpl.js on lines 5279..5285
                      dist/csp.tmpl.js on lines 5287..5293
                      dist/csp.tmpl.js on lines 5295..5301
                      dist/csp.tmpl.js on lines 5372..5378
                      dist/csp.tmpl.js on lines 6309..6315
                      dist/csp.tmpl.js on lines 6317..6323
                      dist/csp.tmpl.js on lines 6362..6368

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

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

                          var SequenceExpression = (function () {
                              function SequenceExpression(expressions) {
                                  this.type = syntax_1.Syntax.SequenceExpression;
                                  this.expressions = expressions;
                              }
                      Severity: Major
                      Found in dist/csp.tmpl.js and 22 other locations - About 1 hr to fix
                      dist/csp.tmpl.js on lines 4844..4850
                      dist/csp.tmpl.js on lines 4852..4858
                      dist/csp.tmpl.js on lines 4902..4908
                      dist/csp.tmpl.js on lines 4910..4916
                      dist/csp.tmpl.js on lines 4936..4942
                      dist/csp.tmpl.js on lines 4984..4990
                      dist/csp.tmpl.js on lines 5024..5030
                      dist/csp.tmpl.js on lines 5032..5038
                      dist/csp.tmpl.js on lines 5059..5065
                      dist/csp.tmpl.js on lines 5123..5129
                      dist/csp.tmpl.js on lines 5150..5156
                      dist/csp.tmpl.js on lines 5158..5164
                      dist/csp.tmpl.js on lines 5223..5229
                      dist/csp.tmpl.js on lines 5231..5237
                      dist/csp.tmpl.js on lines 5271..5277
                      dist/csp.tmpl.js on lines 5279..5285
                      dist/csp.tmpl.js on lines 5295..5301
                      dist/csp.tmpl.js on lines 5372..5378
                      dist/csp.tmpl.js on lines 6284..6290
                      dist/csp.tmpl.js on lines 6309..6315
                      dist/csp.tmpl.js on lines 6317..6323
                      dist/csp.tmpl.js on lines 6362..6368

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

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

                          var JSXIdentifier = (function () {
                              function JSXIdentifier(name) {
                                  this.type = jsx_syntax_1.JSXSyntax.JSXIdentifier;
                                  this.name = name;
                              }
                      Severity: Major
                      Found in dist/csp.tmpl.js and 22 other locations - About 1 hr to fix
                      dist/csp.tmpl.js on lines 4844..4850
                      dist/csp.tmpl.js on lines 4852..4858
                      dist/csp.tmpl.js on lines 4902..4908
                      dist/csp.tmpl.js on lines 4910..4916
                      dist/csp.tmpl.js on lines 4936..4942
                      dist/csp.tmpl.js on lines 4984..4990
                      dist/csp.tmpl.js on lines 5024..5030
                      dist/csp.tmpl.js on lines 5032..5038
                      dist/csp.tmpl.js on lines 5059..5065
                      dist/csp.tmpl.js on lines 5123..5129
                      dist/csp.tmpl.js on lines 5150..5156
                      dist/csp.tmpl.js on lines 5158..5164
                      dist/csp.tmpl.js on lines 5223..5229
                      dist/csp.tmpl.js on lines 5231..5237
                      dist/csp.tmpl.js on lines 5271..5277
                      dist/csp.tmpl.js on lines 5279..5285
                      dist/csp.tmpl.js on lines 5287..5293
                      dist/csp.tmpl.js on lines 5295..5301
                      dist/csp.tmpl.js on lines 5372..5378
                      dist/csp.tmpl.js on lines 6284..6290
                      dist/csp.tmpl.js on lines 6309..6315
                      dist/csp.tmpl.js on lines 6362..6368

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

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

                          var BlockStatement = (function () {
                              function BlockStatement(body) {
                                  this.type = syntax_1.Syntax.BlockStatement;
                                  this.body = body;
                              }
                      Severity: Major
                      Found in dist/csp.tmpl.js and 22 other locations - About 1 hr to fix
                      dist/csp.tmpl.js on lines 4844..4850
                      dist/csp.tmpl.js on lines 4852..4858
                      dist/csp.tmpl.js on lines 4910..4916
                      dist/csp.tmpl.js on lines 4936..4942
                      dist/csp.tmpl.js on lines 4984..4990
                      dist/csp.tmpl.js on lines 5024..5030
                      dist/csp.tmpl.js on lines 5032..5038
                      dist/csp.tmpl.js on lines 5059..5065
                      dist/csp.tmpl.js on lines 5123..5129
                      dist/csp.tmpl.js on lines 5150..5156
                      dist/csp.tmpl.js on lines 5158..5164
                      dist/csp.tmpl.js on lines 5223..5229
                      dist/csp.tmpl.js on lines 5231..5237
                      dist/csp.tmpl.js on lines 5271..5277
                      dist/csp.tmpl.js on lines 5279..5285
                      dist/csp.tmpl.js on lines 5287..5293
                      dist/csp.tmpl.js on lines 5295..5301
                      dist/csp.tmpl.js on lines 5372..5378
                      dist/csp.tmpl.js on lines 6284..6290
                      dist/csp.tmpl.js on lines 6309..6315
                      dist/csp.tmpl.js on lines 6317..6323
                      dist/csp.tmpl.js on lines 6362..6368

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

                      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