microting/eform-sdk-dotnet

View on GitHub

Showing 3,203 of 3,219 total issues

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/20221016081344_AddingIsActiveToLanguage.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 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/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/20221016081344_AddingIsActiveToLanguage.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 2 locations. Consider refactoring.
Open

                                try
                                {
                                    var profile = image.GetExifProfile();
                                    if (profile != null)
                                    {
Severity: Major
Found in eFormCore/Core.cs and 1 other location - About 5 hrs to fix
eFormCore/Core.cs on lines 6223..6277

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

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

                                try
                                {
                                    var profile = image.GetExifProfile();
                                    if (profile != null)
                                    {
Severity: Major
Found in eFormCore/Core.cs and 1 other location - About 5 hrs to fix
eFormCore/Core.cs on lines 6151..6205

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

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

        [Test]
        public async Task Core_eFormSimpleSingleSelectFormFromXML_ReturnseMainElement()
        {
            string xmlstring = @"
                <?xml version='1.0' encoding='UTF-8'?>
Severity: Major
Found in eFormSDK.Integration.CheckLists.CoreTests/CoreTesteFormFromXML.cs - About 5 hrs to fix

    Method CaseUpdateFieldValues has 143 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            public async Task<bool> CaseUpdateFieldValues(int caseId, Language language)
            {
                string methodName = "SqlController.CaseUpdateFieldValues";
                try
                {
    Severity: Major
    Found in eFormCore/Infrastructure/SqlController.cs - About 5 hrs to fix

      File LanguageQuestionSetUTest.cs has 405 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      using System;
      using System.Collections.Generic;
      using System.Linq;
      using System.Threading.Tasks;
      using Microsoft.EntityFrameworkCore;
      Severity: Minor
      Found in eFormSDK.InSight.Tests/LanguageQuestionSetUTest.cs - About 5 hrs to fix

        Method AnswerValues_Create_DoesCreate has 142 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

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

          Identical blocks of code found in 7 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/CoreTestEvent.cs and 6 other locations - About 5 hrs to fix
          eFormSDK.Integration.Base.CoreTests/CoreTestUnit.cs on lines 51..80
          eFormSDK.Integration.Base.CoreTests/CoreTestUploadedData.cs on lines 48..77
          eFormSDK.Integration.Base.CoreTests/CoreTestWorker.cs on lines 46..75
          eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 52..81
          eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 52..81
          eFormSDK.Integration.CheckLists.CoreTests/CoreTesteFormFromXMLLarge.cs on lines 53..82

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

          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

                  public override async Task DoSetup()
                  {
                      #region Setup SettingsTableContent
          
                      DbContextHelper dbContextHelper = new DbContextHelper(ConnectionString);
          eFormSDK.Integration.Base.CoreTests/CoreTestEvent.cs on lines 47..76
          eFormSDK.Integration.Base.CoreTests/CoreTestUnit.cs on lines 51..80
          eFormSDK.Integration.Base.CoreTests/CoreTestUploadedData.cs on lines 48..77
          eFormSDK.Integration.Base.CoreTests/CoreTestWorker.cs on lines 46..75
          eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 52..81
          eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 52..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 369.

          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

                  public override async Task DoSetup()
                  {
                      #region Setup SettingsTableContent
          
                      DbContextHelper dbContextHelper = new DbContextHelper(ConnectionString);
          eFormSDK.Integration.Base.CoreTests/CoreTestEvent.cs on lines 47..76
          eFormSDK.Integration.Base.CoreTests/CoreTestUnit.cs on lines 51..80
          eFormSDK.Integration.Base.CoreTests/CoreTestUploadedData.cs on lines 48..77
          eFormSDK.Integration.Base.CoreTests/CoreTestWorker.cs on lines 46..75
          eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 52..81
          eFormSDK.Integration.CheckLists.CoreTests/CoreTesteFormFromXMLLarge.cs on lines 53..82

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

          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

                  public override async Task DoSetup()
                  {
                      #region Setup SettingsTableContent
          
                      DbContextHelper dbContextHelper = new DbContextHelper(ConnectionString);
          Severity: Major
          Found in eFormSDK.Integration.Base.CoreTests/CoreTestUploadedData.cs and 6 other locations - About 5 hrs to fix
          eFormSDK.Integration.Base.CoreTests/CoreTestEvent.cs on lines 47..76
          eFormSDK.Integration.Base.CoreTests/CoreTestUnit.cs on lines 51..80
          eFormSDK.Integration.Base.CoreTests/CoreTestWorker.cs on lines 46..75
          eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 52..81
          eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 52..81
          eFormSDK.Integration.CheckLists.CoreTests/CoreTesteFormFromXMLLarge.cs on lines 53..82

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

          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

                  public override async Task DoSetup()
                  {
                      #region Setup SettingsTableContent
          
                      DbContextHelper dbContextHelper = new DbContextHelper(ConnectionString);
          Severity: Major
          Found in eFormSDK.Integration.Base.CoreTests/CoreTestWorker.cs and 6 other locations - About 5 hrs to fix
          eFormSDK.Integration.Base.CoreTests/CoreTestEvent.cs on lines 47..76
          eFormSDK.Integration.Base.CoreTests/CoreTestUnit.cs on lines 51..80
          eFormSDK.Integration.Base.CoreTests/CoreTestUploadedData.cs on lines 48..77
          eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 52..81
          eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 52..81
          eFormSDK.Integration.CheckLists.CoreTests/CoreTesteFormFromXMLLarge.cs on lines 53..82

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

          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

                  public override async Task DoSetup()
                  {
                      #region Setup SettingsTableContent
          
                      DbContextHelper dbContextHelper = new DbContextHelper(ConnectionString);
          eFormSDK.Integration.Base.CoreTests/CoreTestEvent.cs on lines 47..76
          eFormSDK.Integration.Base.CoreTests/CoreTestUnit.cs on lines 51..80
          eFormSDK.Integration.Base.CoreTests/CoreTestUploadedData.cs on lines 48..77
          eFormSDK.Integration.Base.CoreTests/CoreTestWorker.cs on lines 46..75
          eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 52..81
          eFormSDK.Integration.CheckLists.CoreTests/CoreTesteFormFromXMLLarge.cs on lines 53..82

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

          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

                  public override async Task DoSetup()
                  {
                      #region Setup SettingsTableContent
          
                      DbContextHelper dbContextHelper = new DbContextHelper(ConnectionString);
          Severity: Major
          Found in eFormSDK.Integration.Base.CoreTests/CoreTestUnit.cs and 6 other locations - About 5 hrs to fix
          eFormSDK.Integration.Base.CoreTests/CoreTestEvent.cs on lines 47..76
          eFormSDK.Integration.Base.CoreTests/CoreTestUploadedData.cs on lines 48..77
          eFormSDK.Integration.Base.CoreTests/CoreTestWorker.cs on lines 46..75
          eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllMedium.cs on lines 52..81
          eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs on lines 52..81
          eFormSDK.Integration.CheckLists.CoreTests/CoreTesteFormFromXMLLarge.cs on lines 53..82

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

          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 SqlControllerTestReplyElementy.cs has 402 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          using System;
          using System.Linq;
          using System.Threading.Tasks;
          using Microting.eForm;
          using Microting.eForm.Dto;

            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

            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/20221016081344_AddingIsActiveToLanguage.Designer.cs on lines 3822..3862

            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

            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/20221016081344_AddingIsActiveToLanguage.Designer.cs on lines 3822..3862
            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

            Method StartSqlOnly has 140 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                    public async Task<bool> StartSqlOnly(string connectionString)
                    {
                        string methodName = "Core.StartSqlOnly";
                        try
                        {
            Severity: Major
            Found in eFormCore/Core.cs - About 5 hrs to fix
              Severity
              Category
              Status
              Source
              Language