Katello/katello

View on GitHub

Showing 2,737 of 2,737 total issues

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

            if input[:import_upload_task] && input[:import_upload_task][:content_unit_href]
              unit_ids = [input[:import_upload_task][:content_unit_href]]
            elsif input[:upload_actions]&.any? { |action| action.try(:[], "content_unit_href") }
              uploaded_content_unit_hrefs = []
              input[:upload_actions].each { |action| uploaded_content_unit_hrefs << action.try(:[], "content_unit_href") }
app/lib/actions/katello/repository/filtered_index_content.rb on lines 41..49

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

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 input[:import_upload_task] && input[:import_upload_task][:content_unit_href]
              unit_ids = [input[:import_upload_task][:content_unit_href]]
            elsif input[:upload_actions]&.any? { |action| action.try(:[], "content_unit_href") }
              uploaded_content_unit_hrefs = []
              input[:upload_actions].each { |action| uploaded_content_unit_hrefs << action.try(:[], "content_unit_href") }
app/lib/actions/katello/repository/filtered_index_content.rb on lines 30..38

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

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 init has 8 arguments (exceeds 4 allowed). Consider refactoring.
Open

        init = function(name, env_div_id, envs, current_env_id,
                        content_view_div_id, content_views, current_content_view_id,
                        buttons_div_id) {
Severity: Major
Found in app/assets/javascripts/katello/widgets/env_content_view_selector.js - About 1 hr to fix

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

          element,
          starttime,
          duration,
          progress,
          display_size,
    Severity: Major
    Found in app/assets/javascripts/katello/sync_management/sync_management.js - About 1 hr to fix

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

            repo_id,
            starttime,
            duration,
            progress,
            display_size,
      Severity: Major
      Found in app/assets/javascripts/katello/sync_management/sync_management.js - About 1 hr to fix

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

            function RepositoryDetailsController($scope, $state, $uibModal, translate, Repository, Product, ApiErrorHandler, Notification) {

          Consider simplifying this complex logical expression.
          Open

                    if latest_pack.nil? ||
                       (pack[:epoch].to_i > latest_pack[:epoch].to_i) ||
                       (pack[:epoch].to_i == latest_pack[:epoch].to_i &&
                        pack[:version_sortable] > latest_pack[:version_sortable]) ||
                       (pack[:epoch].to_i == latest_pack[:epoch].to_i &&
          Severity: Major
          Found in app/lib/katello/util/package.rb - About 1 hr to fix

            Method create has 8 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                      def create(name, owner_key, auto_attach, service_level, release_version, purpose_role, purpose_usage, purpose_addons)
            Severity: Major
            Found in app/lib/katello/resources/candlepin/activation_key.rb - About 1 hr to fix

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

                useEffect(() => {
                  if (!repositories.length && showAffectedRepos) {
                    setActiveTabKey(1);
                  } else {
                    setActiveTabKey(0);
              webpack/scenes/ContentViews/Details/Filters/CVContainerImageFilterContent.js on lines 90..96
              webpack/scenes/ContentViews/Details/Filters/CVDebFilterContent.js on lines 103..109
              webpack/scenes/ContentViews/Details/Filters/CVErrataDateFilterContent.js on lines 106..112
              webpack/scenes/ContentViews/Details/Filters/CVModuleStreamFilterContent.js on lines 161..167
              webpack/scenes/ContentViews/Details/Filters/CVPackageGroupFilterContent.js on lines 153..159
              webpack/scenes/ContentViews/Details/Filters/CVRpmFilterContent.js on lines 104..110

              Duplicated Code

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

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

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

              Tuning

              This issue has a mass of 55.

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

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

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

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

              Refactorings

              Further Reading

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

                useEffect(() => {
                  if (!repositories.length && showAffectedRepos) {
                    setActiveTabKey(1);
                  } else {
                    setActiveTabKey(0);
              webpack/scenes/ContentViews/Details/Filters/CVContainerImageFilterContent.js on lines 90..96
              webpack/scenes/ContentViews/Details/Filters/CVDebFilterContent.js on lines 103..109
              webpack/scenes/ContentViews/Details/Filters/CVErrataDateFilterContent.js on lines 106..112
              webpack/scenes/ContentViews/Details/Filters/CVErrataIDFilterContent.js on lines 150..156
              webpack/scenes/ContentViews/Details/Filters/CVModuleStreamFilterContent.js on lines 161..167
              webpack/scenes/ContentViews/Details/Filters/CVRpmFilterContent.js on lines 104..110

              Duplicated Code

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

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

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

              Tuning

              This issue has a mass of 55.

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

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

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

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

              Refactorings

              Further Reading

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

                useEffect(() => {
                  if (!repositories.length && showAffectedRepos) {
                    setActiveTabKey(1);
                  } else {
                    setActiveTabKey(0);
              webpack/scenes/ContentViews/Details/Filters/CVContainerImageFilterContent.js on lines 90..96
              webpack/scenes/ContentViews/Details/Filters/CVErrataDateFilterContent.js on lines 106..112
              webpack/scenes/ContentViews/Details/Filters/CVErrataIDFilterContent.js on lines 150..156
              webpack/scenes/ContentViews/Details/Filters/CVModuleStreamFilterContent.js on lines 161..167
              webpack/scenes/ContentViews/Details/Filters/CVPackageGroupFilterContent.js on lines 153..159
              webpack/scenes/ContentViews/Details/Filters/CVRpmFilterContent.js on lines 104..110

              Duplicated Code

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

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

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

              Tuning

              This issue has a mass of 55.

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

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

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

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

              Refactorings

              Further Reading

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

                useEffect(() => {
                  if (!repositories.length && showAffectedRepos) {
                    setActiveTabKey(1);
                  } else {
                    setActiveTabKey(0);
              webpack/scenes/ContentViews/Details/Filters/CVContainerImageFilterContent.js on lines 90..96
              webpack/scenes/ContentViews/Details/Filters/CVDebFilterContent.js on lines 103..109
              webpack/scenes/ContentViews/Details/Filters/CVErrataIDFilterContent.js on lines 150..156
              webpack/scenes/ContentViews/Details/Filters/CVModuleStreamFilterContent.js on lines 161..167
              webpack/scenes/ContentViews/Details/Filters/CVPackageGroupFilterContent.js on lines 153..159
              webpack/scenes/ContentViews/Details/Filters/CVRpmFilterContent.js on lines 104..110

              Duplicated Code

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

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

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

              Tuning

              This issue has a mass of 55.

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

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

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

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

              Refactorings

              Further Reading

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

                useEffect(() => {
                  if (!repositories.length && showAffectedRepos) {
                    setActiveTabKey(1);
                  } else {
                    setActiveTabKey(0);
              webpack/scenes/ContentViews/Details/Filters/CVContainerImageFilterContent.js on lines 90..96
              webpack/scenes/ContentViews/Details/Filters/CVDebFilterContent.js on lines 103..109
              webpack/scenes/ContentViews/Details/Filters/CVErrataDateFilterContent.js on lines 106..112
              webpack/scenes/ContentViews/Details/Filters/CVErrataIDFilterContent.js on lines 150..156
              webpack/scenes/ContentViews/Details/Filters/CVModuleStreamFilterContent.js on lines 161..167
              webpack/scenes/ContentViews/Details/Filters/CVPackageGroupFilterContent.js on lines 153..159

              Duplicated Code

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

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

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

              Tuning

              This issue has a mass of 55.

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

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

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

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

              Refactorings

              Further Reading

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

                useEffect(() => {
                  if (!repositories.length && showAffectedRepos) {
                    setActiveTabKey(1);
                  } else {
                    setActiveTabKey(0);
              webpack/scenes/ContentViews/Details/Filters/CVContainerImageFilterContent.js on lines 90..96
              webpack/scenes/ContentViews/Details/Filters/CVDebFilterContent.js on lines 103..109
              webpack/scenes/ContentViews/Details/Filters/CVErrataDateFilterContent.js on lines 106..112
              webpack/scenes/ContentViews/Details/Filters/CVErrataIDFilterContent.js on lines 150..156
              webpack/scenes/ContentViews/Details/Filters/CVPackageGroupFilterContent.js on lines 153..159
              webpack/scenes/ContentViews/Details/Filters/CVRpmFilterContent.js on lines 104..110

              Duplicated Code

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

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

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

              Tuning

              This issue has a mass of 55.

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

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

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

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

              Refactorings

              Further Reading

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

                useEffect(() => {
                  if (!repositories.length && showAffectedRepos) {
                    setActiveTabKey(1);
                  } else {
                    setActiveTabKey(0);
              webpack/scenes/ContentViews/Details/Filters/CVDebFilterContent.js on lines 103..109
              webpack/scenes/ContentViews/Details/Filters/CVErrataDateFilterContent.js on lines 106..112
              webpack/scenes/ContentViews/Details/Filters/CVErrataIDFilterContent.js on lines 150..156
              webpack/scenes/ContentViews/Details/Filters/CVModuleStreamFilterContent.js on lines 161..167
              webpack/scenes/ContentViews/Details/Filters/CVPackageGroupFilterContent.js on lines 153..159
              webpack/scenes/ContentViews/Details/Filters/CVRpmFilterContent.js on lines 104..110

              Duplicated Code

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

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

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

              Tuning

              This issue has a mass of 55.

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

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

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

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

              Refactorings

              Further Reading

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

                      $scope.organization = Organization.get({id: CurrentOrganization}, function(org) {
                          $scope.purposeAddonsCount += org.system_purposes.addons.length;
                      });
              engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-details.controller.js on lines 28..30

              Duplicated Code

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

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

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

              Tuning

              This issue has a mass of 55.

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

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

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

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

              Refactorings

              Further Reading

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

                      <ToggleGroupItem
                        text={CDN_CONFIGURATION_TYPES[NETWORK_SYNC]}
                        key={2}
                        buttonId="usptream_server"
                        isSelected={type === NETWORK_SYNC}
              webpack/scenes/Subscriptions/Manifest/CdnConfigurationTab/index.js on lines 34..34
              webpack/scenes/Subscriptions/Manifest/CdnConfigurationTab/index.js on lines 35..41
              webpack/scenes/Subscriptions/Manifest/CdnConfigurationTab/index.js on lines 49..49

              Duplicated Code

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

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

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

              Tuning

              This issue has a mass of 55.

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

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

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

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

              Refactorings

              Further Reading

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

              export const subThree = Immutable({
                consumed: 0,
                id: 4,
                maxQuantity: 200,
                name: 'Bravo',
              webpack/scenes/Subscriptions/components/SubscriptionsTable/__tests__/SubscriptionsTable.fixtures.js on lines 75..84
              webpack/scenes/Subscriptions/components/SubscriptionsTable/__tests__/SubscriptionsTable.fixtures.js on lines 86..95
              webpack/scenes/Subscriptions/components/SubscriptionsTable/__tests__/SubscriptionsTable.fixtures.js on lines 119..128

              Duplicated Code

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

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

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

              Tuning

              This issue has a mass of 55.

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

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

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

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

              Refactorings

              Further Reading

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

              export const subOneRowOne = Immutable({
                consumed: 0,
                id: 1,
                maxQuantity: 60,
                name: 'Alpha',
              webpack/scenes/Subscriptions/components/SubscriptionsTable/__tests__/SubscriptionsTable.fixtures.js on lines 86..95
              webpack/scenes/Subscriptions/components/SubscriptionsTable/__tests__/SubscriptionsTable.fixtures.js on lines 108..117
              webpack/scenes/Subscriptions/components/SubscriptionsTable/__tests__/SubscriptionsTable.fixtures.js on lines 119..128

              Duplicated Code

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

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

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

              Tuning

              This issue has a mass of 55.

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

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

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

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

              Refactorings

              Further Reading

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

                await patientlyWaitFor(() => {
                  expect(getAllByText('Enabled')).toHaveLength(3);
                  expect(queryByText('Disabled')).not.toBeInTheDocument();
                });
              webpack/components/extensions/HostDetails/Tabs/__tests__/repositorySetsTab.test.js on lines 294..297

              Duplicated Code

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

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

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

              Tuning

              This issue has a mass of 55.

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

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

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

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

              Refactorings

              Further Reading

              Severity
              Category
              Status
              Source
              Language