microting/eform-sdk-dotnet

View on GitHub
eFormCore/Migrations/20221016081344_AddingIsActiveToLanguage.Designer.cs

Summary

Maintainability
F
1 mo
Test Coverage

Method BuildTargetModel has 3128 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        protected override void BuildTargetModel(ModelBuilder modelBuilder)
        {
#pragma warning disable 612, 618
            modelBuilder
                .HasAnnotation("ProductVersion", "6.0.10")

    File 20221016081344_AddingIsActiveToLanguage.Designer.cs has 3145 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    using System;
    using Microsoft.EntityFrameworkCore;
    using Microsoft.EntityFrameworkCore.Infrastructure;
    using Microsoft.EntityFrameworkCore.Migrations;
    using Microsoft.EntityFrameworkCore.Storage.ValueConversion;

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

                  modelBuilder.Entity("Microting.eForm.Infrastructure.Data.Entities.CheckListVersion", b =>
                      {
                          b.Property<int>("Id")
                              .ValueGeneratedOnAdd()
                              .HasColumnType("int");
      eFormCore/Migrations/20211116085744_AddingDoneAtEditable.Designer.cs on lines 846..999
      eFormCore/Migrations/20220207094729_AddingIsLockedToSiteUnitWorkers.Designer.cs on lines 846..999
      eFormCore/Migrations/20221129082337_AddingReceivedByServerAtToCases.Designer.cs on lines 852..1005
      eFormCore/Migrations/20230506062507_AddingInitialsToWorkers.Designer.cs on lines 853..1006
      eFormCore/Migrations/20230607084834_AddingOriginalFileLocationToUploadedData.Designer.cs on lines 853..1006

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

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

                  modelBuilder.Entity("Microting.eForm.Infrastructure.Data.Entities.CheckList", b =>
                      {
                          b.Property<int>("Id")
                              .ValueGeneratedOnAdd()
                              .HasColumnType("int");
      eFormCore/Migrations/20211116085744_AddingDoneAtEditable.Designer.cs on lines 445..597
      eFormCore/Migrations/20220207094729_AddingIsLockedToSiteUnitWorkers.Designer.cs on lines 445..597
      eFormCore/Migrations/20221129082337_AddingReceivedByServerAtToCases.Designer.cs on lines 451..603
      eFormCore/Migrations/20230506062507_AddingInitialsToWorkers.Designer.cs on lines 452..604
      eFormCore/Migrations/20230607084834_AddingOriginalFileLocationToUploadedData.Designer.cs on lines 452..604

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

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

                  modelBuilder.Entity("Microting.eForm.Infrastructure.Data.Entities.Case", b =>
                      {
                          b.Property<int>("Id")
                              .ValueGeneratedOnAdd()
                              .HasColumnType("int");
      eFormCore/Migrations/20211116085744_AddingDoneAtEditable.Designer.cs on lines 234..342
      eFormCore/Migrations/20220207094729_AddingIsLockedToSiteUnitWorkers.Designer.cs on lines 234..342

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

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

                  modelBuilder.Entity("Microting.eForm.Infrastructure.Data.Entities.CaseVersion", b =>
                      {
                          b.Property<int>("Id")
                              .ValueGeneratedOnAdd()
                              .HasColumnType("int");
      eFormCore/Migrations/20211116085744_AddingDoneAtEditable.Designer.cs on lines 344..443
      eFormCore/Migrations/20220207094729_AddingIsLockedToSiteUnitWorkers.Designer.cs on lines 344..443

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

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

                  modelBuilder.Entity("Microting.eForm.Infrastructure.Data.Entities.UnitVersion", b =>
                      {
                          b.Property<int>("Id")
                              .ValueGeneratedOnAdd()
                              .HasColumnType("int");
      eFormCore/Migrations/20220207094729_AddingIsLockedToSiteUnitWorkers.Designer.cs on lines 3603..3691
      eFormCore/Migrations/20221129082337_AddingReceivedByServerAtToCases.Designer.cs on lines 3615..3703
      eFormCore/Migrations/20230506062507_AddingInitialsToWorkers.Designer.cs on lines 3616..3704
      eFormCore/Migrations/20230607084834_AddingOriginalFileLocationToUploadedData.Designer.cs on lines 3616..3704

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

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

                  modelBuilder.Entity("Microting.eForm.Infrastructure.Data.Entities.Unit", b =>
                      {
                          b.Property<int>("Id")
                              .ValueGeneratedOnAdd()
                              .HasColumnType("int");
      eFormCore/Migrations/20220207094729_AddingIsLockedToSiteUnitWorkers.Designer.cs on lines 3514..3601
      eFormCore/Migrations/20221129082337_AddingReceivedByServerAtToCases.Designer.cs on lines 3526..3613
      eFormCore/Migrations/20230506062507_AddingInitialsToWorkers.Designer.cs on lines 3527..3614
      eFormCore/Migrations/20230607084834_AddingOriginalFileLocationToUploadedData.Designer.cs on lines 3527..3614

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

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

                  modelBuilder.Entity("Microting.eForm.Infrastructure.Data.Entities.ExtraFieldValueVersion", b =>
                      {
                          b.Property<int>("Id")
                              .ValueGeneratedOnAdd()
                              .HasColumnType("int");
      eFormCore/Migrations/20210405153325_AddingExtraFieldValues.Designer.cs on lines 1206..1284
      eFormCore/Migrations/20210407134630_AddingFolderTranslations.Designer.cs on lines 1206..1284
      eFormCore/Migrations/20210609072417_AddingLinkingOfSitesAndEntities.Designer.cs on lines 1218..1296
      eFormCore/Migrations/20210730085329_AddingDefaultValueToFieldTranslations.Designer.cs on lines 1218..1296
      eFormCore/Migrations/20211014105943_CLAttributes.Designer.cs on lines 1236..1314
      eFormCore/Migrations/20211108111024_AddingIsArchivedToCases.Designer.cs on lines 1242..1320
      eFormCore/Migrations/20211116085744_AddingDoneAtEditable.Designer.cs on lines 1262..1340
      eFormCore/Migrations/20220207094729_AddingIsLockedToSiteUnitWorkers.Designer.cs on lines 1262..1340
      eFormCore/Migrations/20221129082337_AddingReceivedByServerAtToCases.Designer.cs on lines 1268..1346
      eFormCore/Migrations/20230506062507_AddingInitialsToWorkers.Designer.cs on lines 1269..1347
      eFormCore/Migrations/20230607084834_AddingOriginalFileLocationToUploadedData.Designer.cs on lines 1269..1347

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

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

                  modelBuilder.Entity("Microting.eForm.Infrastructure.Data.Entities.ExtraFieldValue", b =>
                      {
                          b.Property<int>("Id")
                              .ValueGeneratedOnAdd()
                              .HasColumnType("int");
      eFormCore/Migrations/20210405153325_AddingExtraFieldValues.Designer.cs on lines 1129..1204
      eFormCore/Migrations/20210407134630_AddingFolderTranslations.Designer.cs on lines 1129..1204
      eFormCore/Migrations/20210609072417_AddingLinkingOfSitesAndEntities.Designer.cs on lines 1141..1216
      eFormCore/Migrations/20210730085329_AddingDefaultValueToFieldTranslations.Designer.cs on lines 1141..1216
      eFormCore/Migrations/20211014105943_CLAttributes.Designer.cs on lines 1159..1234
      eFormCore/Migrations/20211108111024_AddingIsArchivedToCases.Designer.cs on lines 1165..1240
      eFormCore/Migrations/20211116085744_AddingDoneAtEditable.Designer.cs on lines 1185..1260
      eFormCore/Migrations/20220207094729_AddingIsLockedToSiteUnitWorkers.Designer.cs on lines 1185..1260
      eFormCore/Migrations/20221129082337_AddingReceivedByServerAtToCases.Designer.cs on lines 1191..1266
      eFormCore/Migrations/20230506062507_AddingInitialsToWorkers.Designer.cs on lines 1192..1267
      eFormCore/Migrations/20230607084834_AddingOriginalFileLocationToUploadedData.Designer.cs on lines 1192..1267

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

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

                  modelBuilder.Entity("Microting.eForm.Infrastructure.Data.Entities.SiteVersion", b =>
                      {
                          b.Property<int>("Id")
                              .ValueGeneratedOnAdd()
                              .HasColumnType("int");
      eFormCore/Migrations/20220207094729_AddingIsLockedToSiteUnitWorkers.Designer.cs on lines 3160..3204
      eFormCore/Migrations/20221129082337_AddingReceivedByServerAtToCases.Designer.cs on lines 3172..3216
      eFormCore/Migrations/20230506062507_AddingInitialsToWorkers.Designer.cs on lines 3173..3217
      eFormCore/Migrations/20230607084834_AddingOriginalFileLocationToUploadedData.Designer.cs on lines 3173..3217

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

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

                  modelBuilder.Entity("Microting.eForm.Infrastructure.Data.Entities.EntityGroupVersion", b =>
                      {
                          b.Property<int>("Id")
                              .ValueGeneratedOnAdd()
                              .HasColumnType("int");
      eFormCore/Migrations/20210609072417_AddingLinkingOfSitesAndEntities.Designer.cs on lines 1000..1044
      eFormCore/Migrations/20210730085329_AddingDefaultValueToFieldTranslations.Designer.cs on lines 1000..1044
      eFormCore/Migrations/20211014105943_CLAttributes.Designer.cs on lines 1018..1062
      eFormCore/Migrations/20211108111024_AddingIsArchivedToCases.Designer.cs on lines 1024..1068
      eFormCore/Migrations/20211116085744_AddingDoneAtEditable.Designer.cs on lines 1044..1088
      eFormCore/Migrations/20220207094729_AddingIsLockedToSiteUnitWorkers.Designer.cs on lines 1044..1088
      eFormCore/Migrations/20221129082337_AddingReceivedByServerAtToCases.Designer.cs on lines 1050..1094
      eFormCore/Migrations/20230506062507_AddingInitialsToWorkers.Designer.cs on lines 1051..1095
      eFormCore/Migrations/20230607084834_AddingOriginalFileLocationToUploadedData.Designer.cs on lines 1051..1095

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

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

                  modelBuilder.Entity("Microting.eForm.Infrastructure.Data.Entities.WorkerVersion", b =>
                      {
                          b.Property<int>("Id")
                              .ValueGeneratedOnAdd()
                              .HasColumnType("int");
      eFormCore/Migrations/20220207094729_AddingIsLockedToSiteUnitWorkers.Designer.cs on lines 3858..3901
      eFormCore/Migrations/20221129082337_AddingReceivedByServerAtToCases.Designer.cs on lines 3870..3913

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

      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/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.FieldTranslation", b =>
                      {
                          b.Property<int>("Id")
                              .ValueGeneratedOnAdd()
                              .HasColumnType("int");
      eFormCore/Migrations/20210730085329_AddingDefaultValueToFieldTranslations.Designer.cs on lines 1578..1620
      eFormCore/Migrations/20211014105943_CLAttributes.Designer.cs on lines 1596..1638
      eFormCore/Migrations/20211108111024_AddingIsArchivedToCases.Designer.cs on lines 1602..1644
      eFormCore/Migrations/20211116085744_AddingDoneAtEditable.Designer.cs on lines 1622..1664
      eFormCore/Migrations/20220207094729_AddingIsLockedToSiteUnitWorkers.Designer.cs on lines 1622..1664
      eFormCore/Migrations/20221129082337_AddingReceivedByServerAtToCases.Designer.cs on lines 1628..1670
      eFormCore/Migrations/20230506062507_AddingInitialsToWorkers.Designer.cs on lines 1629..1671
      eFormCore/Migrations/20230607084834_AddingOriginalFileLocationToUploadedData.Designer.cs on lines 1629..1671

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

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

                  modelBuilder.Entity("Microting.eForm.Infrastructure.Data.Entities.Site", b =>
                      {
                          b.Property<int>("Id")
                              .ValueGeneratedOnAdd()
                              .HasColumnType("int");
      eFormCore/Migrations/20220207094729_AddingIsLockedToSiteUnitWorkers.Designer.cs on lines 2975..3016
      eFormCore/Migrations/20221129082337_AddingReceivedByServerAtToCases.Designer.cs on lines 2987..3028
      eFormCore/Migrations/20230506062507_AddingInitialsToWorkers.Designer.cs on lines 2988..3029
      eFormCore/Migrations/20230607084834_AddingOriginalFileLocationToUploadedData.Designer.cs on lines 2988..3029

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

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

                  modelBuilder.Entity("Microting.eForm.Infrastructure.Data.Entities.EntityGroup", b =>
                      {
                          b.Property<int>("Id")
                              .ValueGeneratedOnAdd()
                              .HasColumnType("int");
      eFormCore/Migrations/20210609072417_AddingLinkingOfSitesAndEntities.Designer.cs on lines 957..998
      eFormCore/Migrations/20210730085329_AddingDefaultValueToFieldTranslations.Designer.cs on lines 957..998
      eFormCore/Migrations/20211014105943_CLAttributes.Designer.cs on lines 975..1016
      eFormCore/Migrations/20211108111024_AddingIsArchivedToCases.Designer.cs on lines 981..1022
      eFormCore/Migrations/20211116085744_AddingDoneAtEditable.Designer.cs on lines 1001..1042
      eFormCore/Migrations/20220207094729_AddingIsLockedToSiteUnitWorkers.Designer.cs on lines 1001..1042
      eFormCore/Migrations/20221129082337_AddingReceivedByServerAtToCases.Designer.cs on lines 1007..1048
      eFormCore/Migrations/20230506062507_AddingInitialsToWorkers.Designer.cs on lines 1008..1049
      eFormCore/Migrations/20230607084834_AddingOriginalFileLocationToUploadedData.Designer.cs on lines 1008..1049

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

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

                  modelBuilder.Entity("Microting.eForm.Infrastructure.Data.Entities.Worker", b =>
                      {
                          b.Property<int>("Id")
                              .ValueGeneratedOnAdd()
                              .HasColumnType("int");
      eFormCore/Migrations/20220207094729_AddingIsLockedToSiteUnitWorkers.Designer.cs on lines 3816..3856
      eFormCore/Migrations/20221129082337_AddingReceivedByServerAtToCases.Designer.cs on lines 3828..3868

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

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

                  modelBuilder.Entity("Microting.eForm.Infrastructure.Data.Entities.FolderTranslationVersion", b =>
                      {
                          b.Property<int>("Id")
                              .ValueGeneratedOnAdd()
                              .HasColumnType("int");
      eFormCore/Migrations/20210407134630_AddingFolderTranslations.Designer.cs on lines 2021..2061
      eFormCore/Migrations/20210609072417_AddingLinkingOfSitesAndEntities.Designer.cs on lines 2037..2077
      eFormCore/Migrations/20210730085329_AddingDefaultValueToFieldTranslations.Designer.cs on lines 2049..2089
      eFormCore/Migrations/20211014105943_CLAttributes.Designer.cs on lines 2067..2107
      eFormCore/Migrations/20211108111024_AddingIsArchivedToCases.Designer.cs on lines 2073..2113
      eFormCore/Migrations/20211116085744_AddingDoneAtEditable.Designer.cs on lines 2093..2133
      eFormCore/Migrations/20220207094729_AddingIsLockedToSiteUnitWorkers.Designer.cs on lines 2093..2133
      eFormCore/Migrations/20221129082337_AddingReceivedByServerAtToCases.Designer.cs on lines 2099..2139
      eFormCore/Migrations/20230506062507_AddingInitialsToWorkers.Designer.cs on lines 2100..2140
      eFormCore/Migrations/20230607084834_AddingOriginalFileLocationToUploadedData.Designer.cs on lines 2100..2140

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

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

                  modelBuilder.Entity("Microting.eForm.Infrastructure.Data.Entities.FolderTranslation", b =>
                      {
                          b.Property<int>("Id")
                              .ValueGeneratedOnAdd()
                              .HasColumnType("int");
      eFormCore/Migrations/20210609072417_AddingLinkingOfSitesAndEntities.Designer.cs on lines 1994..2035
      eFormCore/Migrations/20210730085329_AddingDefaultValueToFieldTranslations.Designer.cs on lines 2006..2047
      eFormCore/Migrations/20211014105943_CLAttributes.Designer.cs on lines 2024..2065
      eFormCore/Migrations/20211108111024_AddingIsArchivedToCases.Designer.cs on lines 2030..2071
      eFormCore/Migrations/20211116085744_AddingDoneAtEditable.Designer.cs on lines 2050..2091
      eFormCore/Migrations/20220207094729_AddingIsLockedToSiteUnitWorkers.Designer.cs on lines 2050..2091
      eFormCore/Migrations/20221129082337_AddingReceivedByServerAtToCases.Designer.cs on lines 2056..2097
      eFormCore/Migrations/20230506062507_AddingInitialsToWorkers.Designer.cs on lines 2057..2098
      eFormCore/Migrations/20230607084834_AddingOriginalFileLocationToUploadedData.Designer.cs on lines 2057..2098

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

      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

      There are no issues that match your filters.

      Category
      Status