RocketChat/Rocket.Chat.Ops

View on GitHub

Showing 611 of 611 total issues

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

      return this.put("projects/" + (Utils.parseProjectId(projectId)) + "/milestones/" + (parseInt(milestoneId)), params, (function(_this) {
        return function(data) {
          if (fn) {
            return fn(data);
          }
hubots/hubot-gitsy/src/gitlab/lib/Models/ProjectHooks.js on lines 79..85
hubots/hubot-gitsy/src/gitlab/lib/Models/ProjectMembers.js on lines 85..91
hubots/hubot-gitsy/src/gitlab/lib/Models/ProjectMergeRequests.js on lines 93..99

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

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 exports(client) {
      this.client = client;
      this._init = __bind(this._init, this);
      this.load = __bind(this.load, this);
      this._init();
Severity: Major
Found in hubots/hubot-gitsy/src/gitlab/lib/Models/BaseModel.js and 1 other location - About 1 hr to fix
hubots/hubot-gitsy/src/gitlab/lib/BaseModel.js on lines 8..13

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

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

      return this.put("projects/" + (Utils.parseProjectId(projectId)) + "/merge_request/" + (parseInt(mergerequestId)), params, (function(_this) {
        return function(data) {
          if (fn) {
            return fn(data);
          }
hubots/hubot-gitsy/src/gitlab/lib/Models/ProjectHooks.js on lines 79..85
hubots/hubot-gitsy/src/gitlab/lib/Models/ProjectMembers.js on lines 85..91
hubots/hubot-gitsy/src/gitlab/lib/Models/ProjectMilestones.js on lines 116..122

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

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 exports(client) {
      this.client = client;
      this._init = bind(this._init, this);
      this.load = bind(this.load, this);
      this._init();
Severity: Major
Found in hubots/hubot-gitsy/src/gitlab/lib/BaseModel.js and 1 other location - About 1 hr to fix
hubots/hubot-gitsy/src/gitlab/lib/Models/BaseModel.js on lines 6..11

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

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

      return this.put("projects/" + (Utils.parseProjectId(projectId)) + "/hooks/" + (parseInt(hookId)), params, (function(_this) {
        return function(data) {
          if (fn) {
            return fn(data);
          }
Severity: Major
Found in hubots/hubot-gitsy/src/gitlab/lib/Models/ProjectHooks.js and 3 other locations - About 1 hr to fix
hubots/hubot-gitsy/src/gitlab/lib/Models/ProjectMembers.js on lines 85..91
hubots/hubot-gitsy/src/gitlab/lib/Models/ProjectMergeRequests.js on lines 93..99
hubots/hubot-gitsy/src/gitlab/lib/Models/ProjectMilestones.js on lines 116..122

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

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

      return this.put("projects/" + (Utils.parseProjectId(projectId)) + "/members/" + (parseInt(userId)), params, (function(_this) {
        return function(data) {
          if (fn) {
            return fn(data);
          }
Severity: Major
Found in hubots/hubot-gitsy/src/gitlab/lib/Models/ProjectMembers.js and 3 other locations - About 1 hr to fix
hubots/hubot-gitsy/src/gitlab/lib/Models/ProjectHooks.js on lines 79..85
hubots/hubot-gitsy/src/gitlab/lib/Models/ProjectMergeRequests.js on lines 93..99
hubots/hubot-gitsy/src/gitlab/lib/Models/ProjectMilestones.js on lines 116..122

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

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 list has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    ProjectIssues.prototype.list = function(projectId, params, fn) {
      if (params == null) {
        params = {};
      }
      if (fn == null) {
Severity: Minor
Found in hubots/hubot-gitsy/src/gitlab/lib/Models/ProjectIssues.js - About 1 hr to fix

    Function all has 39 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        Groups.prototype.all = function(params, fn) {
          var cb, data;
          if (params == null) {
            params = {};
          }
    Severity: Minor
    Found in hubots/hubot-gitsy/src/gitlab/lib/Models/Groups.js - About 1 hr to fix

      Function all has 39 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          IssueNotes.prototype.all = function(projectId, issueId, params, fn) {
            var cb, data;
            if (params == null) {
              params = {};
            }
      Severity: Minor
      Found in hubots/hubot-gitsy/src/gitlab/lib/Models/IssueNotes.js - About 1 hr to fix

        Function all has 39 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            ProjectLabels.prototype.all = function(projectId, params, fn) {
              var cb, data;
              if (params == null) {
                params = {};
              }
        Severity: Minor
        Found in hubots/hubot-gitsy/src/gitlab/lib/Models/ProjectLabels.js - About 1 hr to fix

          Function all has 39 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              Users.prototype.all = function(params, fn) {
                var cb, data;
                if (params == null) {
                  params = {};
                }
          Severity: Minor
          Found in hubots/hubot-gitsy/src/gitlab/lib/Models/Users.js - About 1 hr to fix

            Function all has 39 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                Projects.prototype.all = function(params, fn) {
                  var cb, data;
                  if (params == null) {
                    params = {};
                  }
            Severity: Minor
            Found in hubots/hubot-gitsy/src/gitlab/lib/Models/Projects.js - About 1 hr to fix

              Function all has 37 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  Issues.prototype.all = function(params, fn) {
                    if (params == null) {
                      params = {};
                    }
                    if (fn == null) {
              Severity: Minor
              Found in hubots/hubot-gitsy/src/gitlab/lib/Models/Issues.js - About 1 hr to fix

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

                      return this.post("projects/" + (Utils.parseProjectId(projectId)) + "/members", params, (function(_this) {
                        return function(data) {
                          if (fn) {
                            return fn(data);
                          }
                Severity: Major
                Found in hubots/hubot-gitsy/src/gitlab/lib/Models/ProjectMembers.js and 6 other locations - About 1 hr to fix
                hubots/hubot-gitsy/src/gitlab/lib/Models/ProjectDeployKeys.js on lines 57..63
                hubots/hubot-gitsy/src/gitlab/lib/Models/ProjectHooks.js on lines 61..67
                hubots/hubot-gitsy/src/gitlab/lib/Models/ProjectMergeRequests.js on lines 41..47
                hubots/hubot-gitsy/src/gitlab/lib/Models/ProjectMergeRequests.js on lines 77..83
                hubots/hubot-gitsy/src/gitlab/lib/Models/ProjectMilestones.js on lines 94..100
                hubots/hubot-gitsy/src/gitlab/lib/Models/ProjectRepository.js on lines 187..193

                Duplicated Code

                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                Tuning

                This issue has a mass of 62.

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

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

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

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

                Refactorings

                Further Reading

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

                      return this.get("projects/" + (Utils.parseProjectId(projectId)) + "/repository/tree", params, (function(_this) {
                        return function(data) {
                          if (fn) {
                            return fn(data);
                          }
                hubots/hubot-gitsy/src/gitlab/lib/Models/ProjectDeployKeys.js on lines 57..63
                hubots/hubot-gitsy/src/gitlab/lib/Models/ProjectHooks.js on lines 61..67
                hubots/hubot-gitsy/src/gitlab/lib/Models/ProjectMembers.js on lines 64..70
                hubots/hubot-gitsy/src/gitlab/lib/Models/ProjectMergeRequests.js on lines 41..47
                hubots/hubot-gitsy/src/gitlab/lib/Models/ProjectMergeRequests.js on lines 77..83
                hubots/hubot-gitsy/src/gitlab/lib/Models/ProjectMilestones.js on lines 94..100

                Duplicated Code

                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                Tuning

                This issue has a mass of 62.

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

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

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

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

                Refactorings

                Further Reading

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

                      return this.get("projects/" + (Utils.parseProjectId(projectId)) + "/merge_requests", params, (function(_this) {
                        return function(data) {
                          if (fn) {
                            return fn(data);
                          }
                hubots/hubot-gitsy/src/gitlab/lib/Models/ProjectDeployKeys.js on lines 57..63
                hubots/hubot-gitsy/src/gitlab/lib/Models/ProjectHooks.js on lines 61..67
                hubots/hubot-gitsy/src/gitlab/lib/Models/ProjectMembers.js on lines 64..70
                hubots/hubot-gitsy/src/gitlab/lib/Models/ProjectMergeRequests.js on lines 77..83
                hubots/hubot-gitsy/src/gitlab/lib/Models/ProjectMilestones.js on lines 94..100
                hubots/hubot-gitsy/src/gitlab/lib/Models/ProjectRepository.js on lines 187..193

                Duplicated Code

                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                Tuning

                This issue has a mass of 62.

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

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

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

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

                Refactorings

                Further Reading

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

                      return this.post("projects/" + (Utils.parseProjectId(projectId)) + "/merge_requests", params, (function(_this) {
                        return function(data) {
                          if (fn) {
                            return fn(data);
                          }
                hubots/hubot-gitsy/src/gitlab/lib/Models/ProjectDeployKeys.js on lines 57..63
                hubots/hubot-gitsy/src/gitlab/lib/Models/ProjectHooks.js on lines 61..67
                hubots/hubot-gitsy/src/gitlab/lib/Models/ProjectMembers.js on lines 64..70
                hubots/hubot-gitsy/src/gitlab/lib/Models/ProjectMergeRequests.js on lines 41..47
                hubots/hubot-gitsy/src/gitlab/lib/Models/ProjectMilestones.js on lines 94..100
                hubots/hubot-gitsy/src/gitlab/lib/Models/ProjectRepository.js on lines 187..193

                Duplicated Code

                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                Tuning

                This issue has a mass of 62.

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

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

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

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

                Refactorings

                Further Reading

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

                      return this.post("projects/" + (Utils.parseProjectId(projectId)) + "/hooks", params, (function(_this) {
                        return function(data) {
                          if (fn) {
                            return fn(data);
                          }
                Severity: Major
                Found in hubots/hubot-gitsy/src/gitlab/lib/Models/ProjectHooks.js and 6 other locations - About 1 hr to fix
                hubots/hubot-gitsy/src/gitlab/lib/Models/ProjectDeployKeys.js on lines 57..63
                hubots/hubot-gitsy/src/gitlab/lib/Models/ProjectMembers.js on lines 64..70
                hubots/hubot-gitsy/src/gitlab/lib/Models/ProjectMergeRequests.js on lines 41..47
                hubots/hubot-gitsy/src/gitlab/lib/Models/ProjectMergeRequests.js on lines 77..83
                hubots/hubot-gitsy/src/gitlab/lib/Models/ProjectMilestones.js on lines 94..100
                hubots/hubot-gitsy/src/gitlab/lib/Models/ProjectRepository.js on lines 187..193

                Duplicated Code

                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                Tuning

                This issue has a mass of 62.

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

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

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

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

                Refactorings

                Further Reading

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

                      return this.post("projects/" + (Utils.parseProjectId(projectId)) + "/milestones", params, (function(_this) {
                        return function(data) {
                          if (fn) {
                            return fn(data);
                          }
                hubots/hubot-gitsy/src/gitlab/lib/Models/ProjectDeployKeys.js on lines 57..63
                hubots/hubot-gitsy/src/gitlab/lib/Models/ProjectHooks.js on lines 61..67
                hubots/hubot-gitsy/src/gitlab/lib/Models/ProjectMembers.js on lines 64..70
                hubots/hubot-gitsy/src/gitlab/lib/Models/ProjectMergeRequests.js on lines 41..47
                hubots/hubot-gitsy/src/gitlab/lib/Models/ProjectMergeRequests.js on lines 77..83
                hubots/hubot-gitsy/src/gitlab/lib/Models/ProjectRepository.js on lines 187..193

                Duplicated Code

                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                Tuning

                This issue has a mass of 62.

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

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

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

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

                Refactorings

                Further Reading

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

                      return this.post("projects/" + (Utils.parseProjectId(projectId)) + "/keys", params, (function(_this) {
                        return function(data) {
                          if (fn) {
                            return fn(data);
                          }
                hubots/hubot-gitsy/src/gitlab/lib/Models/ProjectHooks.js on lines 61..67
                hubots/hubot-gitsy/src/gitlab/lib/Models/ProjectMembers.js on lines 64..70
                hubots/hubot-gitsy/src/gitlab/lib/Models/ProjectMergeRequests.js on lines 41..47
                hubots/hubot-gitsy/src/gitlab/lib/Models/ProjectMergeRequests.js on lines 77..83
                hubots/hubot-gitsy/src/gitlab/lib/Models/ProjectMilestones.js on lines 94..100
                hubots/hubot-gitsy/src/gitlab/lib/Models/ProjectRepository.js on lines 187..193

                Duplicated Code

                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                Tuning

                This issue has a mass of 62.

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

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

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

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

                Refactorings

                Further Reading

                Severity
                Category
                Status
                Source
                Language