microting/eform-sdk-dotnet

View on GitHub

Showing 3,203 of 3,219 total issues

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

            modelBuilder.Entity("Microting.eForm.Infrastructure.Data.Entities.FieldTranslationVersion", b =>
                {
                    b.Property<int>("Id")
                        .ValueGeneratedOnAdd()
                        .HasColumnType("int");
eFormCore/Migrations/20210730085329_AddingDefaultValueToFieldTranslations.Designer.cs on lines 1622..1665
eFormCore/Migrations/20211014105943_CLAttributes.Designer.cs on lines 1640..1683
eFormCore/Migrations/20211116085744_AddingDoneAtEditable.Designer.cs on lines 1666..1709
eFormCore/Migrations/20220207094729_AddingIsLockedToSiteUnitWorkers.Designer.cs on lines 1666..1709
eFormCore/Migrations/20221016081344_AddingIsActiveToLanguage.Designer.cs on lines 1666..1709
eFormCore/Migrations/20221129082337_AddingReceivedByServerAtToCases.Designer.cs on lines 1672..1715
eFormCore/Migrations/20230506062507_AddingInitialsToWorkers.Designer.cs on lines 1673..1716
eFormCore/Migrations/20230607084834_AddingOriginalFileLocationToUploadedData.Designer.cs on lines 1673..1716

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

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

            modelBuilder.Entity("Microting.eForm.Infrastructure.Data.Entities.FieldTranslationVersion", b =>
                {
                    b.Property<int>("Id")
                        .ValueGeneratedOnAdd()
                        .HasColumnType("int");
eFormCore/Migrations/20211014105943_CLAttributes.Designer.cs on lines 1640..1683
eFormCore/Migrations/20211108111024_AddingIsArchivedToCases.Designer.cs on lines 1646..1689
eFormCore/Migrations/20211116085744_AddingDoneAtEditable.Designer.cs on lines 1666..1709
eFormCore/Migrations/20220207094729_AddingIsLockedToSiteUnitWorkers.Designer.cs on lines 1666..1709
eFormCore/Migrations/20221016081344_AddingIsActiveToLanguage.Designer.cs on lines 1666..1709
eFormCore/Migrations/20221129082337_AddingReceivedByServerAtToCases.Designer.cs on lines 1672..1715
eFormCore/Migrations/20230506062507_AddingInitialsToWorkers.Designer.cs on lines 1673..1716
eFormCore/Migrations/20230607084834_AddingOriginalFileLocationToUploadedData.Designer.cs on lines 1673..1716

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

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

            modelBuilder.Entity("Microting.eForm.Infrastructure.Data.Entities.FieldTranslationVersion", b =>
                {
                    b.Property<int>("Id")
                        .ValueGeneratedOnAdd()
                        .HasColumnType("int");
eFormCore/Migrations/20210730085329_AddingDefaultValueToFieldTranslations.Designer.cs on lines 1622..1665
eFormCore/Migrations/20211014105943_CLAttributes.Designer.cs on lines 1640..1683
eFormCore/Migrations/20211108111024_AddingIsArchivedToCases.Designer.cs on lines 1646..1689
eFormCore/Migrations/20211116085744_AddingDoneAtEditable.Designer.cs on lines 1666..1709
eFormCore/Migrations/20220207094729_AddingIsLockedToSiteUnitWorkers.Designer.cs on lines 1666..1709
eFormCore/Migrations/20221016081344_AddingIsActiveToLanguage.Designer.cs on lines 1666..1709
eFormCore/Migrations/20221129082337_AddingReceivedByServerAtToCases.Designer.cs on lines 1672..1715
eFormCore/Migrations/20230607084834_AddingOriginalFileLocationToUploadedData.Designer.cs on lines 1673..1716

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

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

File SqlControllerTestAnswer.cs has 418 lines of code (exceeds 250 allowed). Consider refactoring.
Open

using eFormCore;
using Microsoft.EntityFrameworkCore;
using NUnit.Framework;
using System;
using System.Collections.Generic;
Severity: Minor
Found in eFormSDK.Integration.Tests/SqlControllerTestAnswer.cs - About 6 hrs to fix

    Method SQL_Template_TemplateSetTags_SetsTag has 150 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            [Test]
            public async Task SQL_Template_TemplateSetTags_SetsTag()
            {
                // Arrance
    
    

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

              public override async Task DoSetup()
              {
                  #region Setup SettingsTableContent
      
                  DbContextHelper dbContextHelper = new DbContextHelper(ConnectionString);
      eFormSDK.Integration.Base.CoreTests/CoreTestEntity.cs on lines 53..83
      eFormSDK.Integration.Base.CoreTests/CoreTestTag.cs on lines 53..83
      eFormSDK.Integration.CheckLists.CoreTests/CoreTesteFormFromXML.cs on lines 50..80

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

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

              public override async Task DoSetup()
              {
                  #region Setup SettingsTableContent
      
                  DbContextHelper dbContextHelper = new DbContextHelper(ConnectionString);
      Severity: Major
      Found in eFormSDK.Integration.Base.CoreTests/CoreTestEntity.cs and 3 other locations - About 6 hrs to fix
      eFormSDK.Integration.Base.CoreTests/CoreTestTag.cs on lines 53..83
      eFormSDK.Integration.CheckLists.CoreTests/CoreTesteFormFromXML.cs on lines 50..80
      eFormSDK.Integration.CheckLists.CoreTests/CoreTesteFormQuickSyncXML.cs on lines 51..81

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

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

              public override async Task DoSetup()
              {
                  #region Setup SettingsTableContent
      
                  DbContextHelper dbContextHelper = new DbContextHelper(ConnectionString);
      eFormSDK.Integration.Base.CoreTests/CoreTestEntity.cs on lines 53..83
      eFormSDK.Integration.Base.CoreTests/CoreTestTag.cs on lines 53..83
      eFormSDK.Integration.CheckLists.CoreTests/CoreTesteFormQuickSyncXML.cs on lines 51..81

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

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

              public override async Task DoSetup()
              {
                  #region Setup SettingsTableContent
      
                  DbContextHelper dbContextHelper = new DbContextHelper(ConnectionString);
      Severity: Major
      Found in eFormSDK.Integration.Base.CoreTests/CoreTestTag.cs and 3 other locations - About 6 hrs to fix
      eFormSDK.Integration.Base.CoreTests/CoreTestEntity.cs on lines 53..83
      eFormSDK.Integration.CheckLists.CoreTests/CoreTesteFormFromXML.cs on lines 50..80
      eFormSDK.Integration.CheckLists.CoreTests/CoreTesteFormQuickSyncXML.cs on lines 51..81

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

      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

              [Test]
              public async Task SQL_Tags_TemplateSetTags_DoesAssignTagToTemplate()
              {
                  // Arrance
                  CheckList cl1 = new CheckList
      eFormSDK.Integration.Base.CoreTests/CoreTestTag.cs on lines 183..221

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

      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

              [Test]
              public async Task Core_Tags_TemplateSetTags_DoesAssignTagToTemplate()
              {
                  // Arrance
                  CheckList cl1 = new CheckList
      Severity: Major
      Found in eFormSDK.Integration.Base.CoreTests/CoreTestTag.cs and 1 other location - About 6 hrs to fix
      eFormSDK.Integration.Base.SqlControllerTests/SqlControllerTestTag.cs on lines 189..231

      Duplicated Code

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

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

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

      Tuning

      This issue has a mass of 390.

      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

                  var element =
                      new Drawing(
                          new DW.Inline(
                              new DW.Extent { Cx = cx, Cy = cy },
                              new DW.EffectExtent
      Severity: Major
      Found in eFormCore/Helpers/ReportHelper.cs and 1 other location - About 6 hrs to fix
      eFormCore/Helpers/ReportHelper.cs on lines 524..580

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

      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

                  var element =
                      new Drawing(
                          new DW.Inline(
                              new DW.Extent { Cx = cx, Cy = cy },
                              new DW.EffectExtent
      Severity: Major
      Found in eFormCore/Helpers/ReportHelper.cs and 1 other location - About 6 hrs to fix
      eFormCore/Helpers/ReportHelper.cs on lines 448..504

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

      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

      Method Checklists_create_DoesCreate has 149 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              [Test]
              public async Task Checklists_create_DoesCreate()
              {
                  //Arrange
      
      
      Severity: Major
      Found in eFormSDK.CheckLists.Tests/CheckListsUTest.cs - About 5 hrs to fix

        Method GetQuestionSet has 149 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                public async Task<bool> GetQuestionSet(int microtingUid, int questionSetId, int threadNumber)
                {
                    var jsonSerializerSettings = new JsonSerializerSettings
                    {
                        NullValueHandling = NullValueHandling.Ignore,
        Severity: Major
        Found in eFormCore/Core.cs - About 5 hrs to fix

          File SqlControllerTestAnswerValue.cs has 414 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          using eFormCore;
          using Microsoft.EntityFrameworkCore;
          using NUnit.Framework;
          using System;
          using System.Collections.Generic;
          Severity: Minor
          Found in eFormSDK.Integration.Tests/SqlControllerTestAnswerValue.cs - About 5 hrs to fix

            Method Core_Advanced_DeleteUploadedData_DeletesData has 148 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                    [Test]
                    public async Task Core_Advanced_DeleteUploadedData_DeletesData()
                    {
                        // Arrange
            
            
            Severity: Major
            Found in eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs - About 5 hrs to fix

              Method SQL_Template_TemplateItemRead_ReadsItems has 148 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      [Test]
                      public async Task SQL_Template_TemplateItemRead_ReadsItems()
                      {
                          // Arrance
              
              

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

                            modelBuilder.Entity("Microting.eForm.Infrastructure.Data.Entities.answers", b =>
                                {
                                    b.Property<int>("Id")
                                        .ValueGeneratedOnAdd()
                                        .HasAnnotation(autoIDGenStrategy, autoIDGenStrategyValue);
                eFormCore/Migrations/20190514053645_RefactoringAttributeNames.Designer.cs on lines 161..207
                eFormCore/Migrations/20190515064952_FixingNamingForFieldValues.Designer.cs on lines 161..207
                eFormCore/Migrations/20190531092007_AddingMissingAIonLogs.Designer.cs on lines 161..207
                eFormCore/Migrations/20190711053344_AddingJasperDocxEnabledAttributesToCheckList.Designer.cs on lines 161..207
                eFormCore/Migrations/20190806093044_AddingSiteGroups.Designer.cs on lines 137..183
                eFormCore/Migrations/20190828074017_AddingMissingClasses.Designer.cs on lines 161..207
                eFormCore/Migrations/20190923100451_ChangeStringToInt.Designer.cs on lines 161..207
                eFormCore/Migrations/20190924172326_AddingNewIndexOnCases.Designer.cs on lines 161..207
                eFormCore/Migrations/20200116074236_AddingSiteTaggins.Designer.cs on lines 161..207

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

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

                            modelBuilder.Entity("eFormSqlController.answers", b =>
                                {
                                    b.Property<int>("Id")
                                        .ValueGeneratedOnAdd()
                                        .HasAnnotation(autoIDGenStrategy, autoIDGenStrategyValue);
                eFormCore/Migrations/20190515064952_FixingNamingForFieldValues.Designer.cs on lines 161..207
                eFormCore/Migrations/20190531092007_AddingMissingAIonLogs.Designer.cs on lines 161..207
                eFormCore/Migrations/20190711053344_AddingJasperDocxEnabledAttributesToCheckList.Designer.cs on lines 161..207
                eFormCore/Migrations/20190806093044_AddingSiteGroups.Designer.cs on lines 137..183
                eFormCore/Migrations/20190828054730_AddingNewVersionClasses.Designer.cs on lines 161..207
                eFormCore/Migrations/20190828074017_AddingMissingClasses.Designer.cs on lines 161..207
                eFormCore/Migrations/20190923100451_ChangeStringToInt.Designer.cs on lines 161..207
                eFormCore/Migrations/20190924172326_AddingNewIndexOnCases.Designer.cs on lines 161..207
                eFormCore/Migrations/20200116074236_AddingSiteTaggins.Designer.cs on lines 161..207

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

                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