microting/eform-sdk-dotnet

View on GitHub

Showing 3,203 of 3,219 total issues

Method Core_eFormSimpleTimerFormFromXML_ReturnseMainElement has 63 lines of code (exceeds 25 allowed). Consider refactoring.
Open

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

    Method Core_eFormSimpleCheckBoxFormFromXML_ReturnseMainElement has 63 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

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

      Method Core_eForm_SimplePdfFormFromXML_ReturnseMainElement has 63 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              [Test]
              public async Task Core_eForm_SimplePdfFormFromXML_ReturnseMainElement()
              {
                  // Arrange
                  string xmlstring = @"
      Severity: Major
      Found in eFormSDK.Integration.CheckLists.CoreTests/CoreTesteFormFromXML.cs - About 2 hrs to fix

        Method EntityItems_Delete_DoesSetWorkflowStateToRemoved has 63 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

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

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

                  [Test]
                  public async Task SQL_EntitySelectItemCreate_CreatesEntitySelectItem()
                  {
                      // Arrance
                      EntityGroup eG1 = await testHelpers.CreateEntityGroup("microtingUIdC1", "EntityGroup1",
          eFormSDK.Integration.Base.SqlControllerTests/SqlControllerTestEntity.cs on lines 4595..4616

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

          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

              public class Number : DataItem
              {
                  internal Number()
                  {
                  }
          Severity: Major
          Found in eFormCore/Infrastructure/Models/DataItem.cs and 1 other location - About 2 hrs to fix
          eFormCore/Infrastructure/Models/DataItem.cs on lines 292..327

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

          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_EntitySearchItemCreate_CreatesEntitySearchItem()
                  {
                      // Arrance
                      EntityGroup eG1 = await testHelpers.CreateEntityGroup("microtingUIdC1", "EntityGroup1",
          eFormSDK.Integration.Base.SqlControllerTests/SqlControllerTestEntity.cs on lines 4618..4639

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

          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

              public class NumberStepper : DataItem
              {
                  internal NumberStepper()
                  {
                  }
          Severity: Major
          Found in eFormCore/Infrastructure/Models/DataItem.cs and 1 other location - About 2 hrs to fix
          eFormCore/Infrastructure/Models/DataItem.cs on lines 253..288

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

          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 CheckListSitesUTest.cs has 271 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.CheckLists.Tests/CheckListSitesUTest.cs - About 2 hrs to fix

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

                            if (f4 != null)
                            {
                                FieldTranslation translation = await db.FieldTranslations
                                                                   .FirstOrDefaultAsync(x =>
                                                                       x.FieldId == f4.Id && x.LanguageId == language.Id) ??
            Severity: Major
            Found in eFormCore/Infrastructure/SqlController.cs and 8 other locations - About 2 hrs to fix
            eFormCore/Infrastructure/SqlController.cs on lines 252..261
            eFormCore/Infrastructure/SqlController.cs on lines 264..273
            eFormCore/Infrastructure/SqlController.cs on lines 288..297
            eFormCore/Infrastructure/SqlController.cs on lines 300..309
            eFormCore/Infrastructure/SqlController.cs on lines 312..321
            eFormCore/Infrastructure/SqlController.cs on lines 324..333
            eFormCore/Infrastructure/SqlController.cs on lines 336..345
            eFormCore/Infrastructure/SqlController.cs on lines 348..357

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

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

                            if (f2 != null)
                            {
                                FieldTranslation translation = await db.FieldTranslations
                                                                   .FirstOrDefaultAsync(x =>
                                                                       x.FieldId == f2.Id && x.LanguageId == language.Id) ??
            Severity: Major
            Found in eFormCore/Infrastructure/SqlController.cs and 8 other locations - About 2 hrs to fix
            eFormCore/Infrastructure/SqlController.cs on lines 264..273
            eFormCore/Infrastructure/SqlController.cs on lines 276..285
            eFormCore/Infrastructure/SqlController.cs on lines 288..297
            eFormCore/Infrastructure/SqlController.cs on lines 300..309
            eFormCore/Infrastructure/SqlController.cs on lines 312..321
            eFormCore/Infrastructure/SqlController.cs on lines 324..333
            eFormCore/Infrastructure/SqlController.cs on lines 336..345
            eFormCore/Infrastructure/SqlController.cs on lines 348..357

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

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

                            if (f3 != null)
                            {
                                FieldTranslation translation = await db.FieldTranslations
                                                                   .FirstOrDefaultAsync(x =>
                                                                       x.FieldId == f3.Id && x.LanguageId == language.Id) ??
            Severity: Major
            Found in eFormCore/Infrastructure/SqlController.cs and 8 other locations - About 2 hrs to fix
            eFormCore/Infrastructure/SqlController.cs on lines 252..261
            eFormCore/Infrastructure/SqlController.cs on lines 276..285
            eFormCore/Infrastructure/SqlController.cs on lines 288..297
            eFormCore/Infrastructure/SqlController.cs on lines 300..309
            eFormCore/Infrastructure/SqlController.cs on lines 312..321
            eFormCore/Infrastructure/SqlController.cs on lines 324..333
            eFormCore/Infrastructure/SqlController.cs on lines 336..345
            eFormCore/Infrastructure/SqlController.cs on lines 348..357

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

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

                            if (f6 != null)
                            {
                                FieldTranslation translation = await db.FieldTranslations
                                                                   .FirstOrDefaultAsync(x =>
                                                                       x.FieldId == f6.Id && x.LanguageId == language.Id) ??
            Severity: Major
            Found in eFormCore/Infrastructure/SqlController.cs and 8 other locations - About 2 hrs to fix
            eFormCore/Infrastructure/SqlController.cs on lines 252..261
            eFormCore/Infrastructure/SqlController.cs on lines 264..273
            eFormCore/Infrastructure/SqlController.cs on lines 276..285
            eFormCore/Infrastructure/SqlController.cs on lines 288..297
            eFormCore/Infrastructure/SqlController.cs on lines 312..321
            eFormCore/Infrastructure/SqlController.cs on lines 324..333
            eFormCore/Infrastructure/SqlController.cs on lines 336..345
            eFormCore/Infrastructure/SqlController.cs on lines 348..357

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

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

                            if (f9 != null)
                            {
                                FieldTranslation translation = await db.FieldTranslations
                                                                   .FirstOrDefaultAsync(x =>
                                                                       x.FieldId == f9.Id && x.LanguageId == language.Id) ??
            Severity: Major
            Found in eFormCore/Infrastructure/SqlController.cs and 8 other locations - About 2 hrs to fix
            eFormCore/Infrastructure/SqlController.cs on lines 252..261
            eFormCore/Infrastructure/SqlController.cs on lines 264..273
            eFormCore/Infrastructure/SqlController.cs on lines 276..285
            eFormCore/Infrastructure/SqlController.cs on lines 288..297
            eFormCore/Infrastructure/SqlController.cs on lines 300..309
            eFormCore/Infrastructure/SqlController.cs on lines 312..321
            eFormCore/Infrastructure/SqlController.cs on lines 324..333
            eFormCore/Infrastructure/SqlController.cs on lines 348..357

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

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

                            if (f10 != null)
                            {
                                FieldTranslation translation = await db.FieldTranslations
                                                                   .FirstOrDefaultAsync(x =>
                                                                       x.FieldId == f10.Id && x.LanguageId == language.Id) ??
            Severity: Major
            Found in eFormCore/Infrastructure/SqlController.cs and 8 other locations - About 2 hrs to fix
            eFormCore/Infrastructure/SqlController.cs on lines 252..261
            eFormCore/Infrastructure/SqlController.cs on lines 264..273
            eFormCore/Infrastructure/SqlController.cs on lines 276..285
            eFormCore/Infrastructure/SqlController.cs on lines 288..297
            eFormCore/Infrastructure/SqlController.cs on lines 300..309
            eFormCore/Infrastructure/SqlController.cs on lines 312..321
            eFormCore/Infrastructure/SqlController.cs on lines 324..333
            eFormCore/Infrastructure/SqlController.cs on lines 336..345

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

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

                            if (f8 != null)
                            {
                                FieldTranslation translation = await db.FieldTranslations
                                                                   .FirstOrDefaultAsync(x =>
                                                                       x.FieldId == f8.Id && x.LanguageId == language.Id) ??
            Severity: Major
            Found in eFormCore/Infrastructure/SqlController.cs and 8 other locations - About 2 hrs to fix
            eFormCore/Infrastructure/SqlController.cs on lines 252..261
            eFormCore/Infrastructure/SqlController.cs on lines 264..273
            eFormCore/Infrastructure/SqlController.cs on lines 276..285
            eFormCore/Infrastructure/SqlController.cs on lines 288..297
            eFormCore/Infrastructure/SqlController.cs on lines 300..309
            eFormCore/Infrastructure/SqlController.cs on lines 312..321
            eFormCore/Infrastructure/SqlController.cs on lines 336..345
            eFormCore/Infrastructure/SqlController.cs on lines 348..357

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

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

                            if (f5 != null)
                            {
                                FieldTranslation translation = await db.FieldTranslations
                                                                   .FirstOrDefaultAsync(x =>
                                                                       x.FieldId == f5.Id && x.LanguageId == language.Id) ??
            Severity: Major
            Found in eFormCore/Infrastructure/SqlController.cs and 8 other locations - About 2 hrs to fix
            eFormCore/Infrastructure/SqlController.cs on lines 252..261
            eFormCore/Infrastructure/SqlController.cs on lines 264..273
            eFormCore/Infrastructure/SqlController.cs on lines 276..285
            eFormCore/Infrastructure/SqlController.cs on lines 300..309
            eFormCore/Infrastructure/SqlController.cs on lines 312..321
            eFormCore/Infrastructure/SqlController.cs on lines 324..333
            eFormCore/Infrastructure/SqlController.cs on lines 336..345
            eFormCore/Infrastructure/SqlController.cs on lines 348..357

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

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

                            if (f7 != null)
                            {
                                FieldTranslation translation = await db.FieldTranslations
                                                                   .FirstOrDefaultAsync(x =>
                                                                       x.FieldId == f7.Id && x.LanguageId == language.Id) ??
            Severity: Major
            Found in eFormCore/Infrastructure/SqlController.cs and 8 other locations - About 2 hrs to fix
            eFormCore/Infrastructure/SqlController.cs on lines 252..261
            eFormCore/Infrastructure/SqlController.cs on lines 264..273
            eFormCore/Infrastructure/SqlController.cs on lines 276..285
            eFormCore/Infrastructure/SqlController.cs on lines 288..297
            eFormCore/Infrastructure/SqlController.cs on lines 300..309
            eFormCore/Infrastructure/SqlController.cs on lines 324..333
            eFormCore/Infrastructure/SqlController.cs on lines 336..345
            eFormCore/Infrastructure/SqlController.cs on lines 348..357

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

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

                            constraints: table =>
                            {
                                table.PrimaryKey("PK_answer_values", x => x.Id);
                                table.ForeignKey(
                                    name: "FK_answer_values_answers_AnswerId",
            Severity: Major
            Found in eFormCore/Migrations/20201222125152_HugheTableRenaming.cs and 2 other locations - About 2 hrs to fix
            eFormCore/Migrations/20180810124416_InitialCreate.cs on lines 921..942
            eFormCore/Migrations/20201222125152_HugheTableRenaming.cs on lines 1712..1733

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

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

                            constraints: table =>
                            {
                                table.PrimaryKey("PK_check_list_sites", x => x.Id);
                                table.ForeignKey(
                                    name: "FK_check_list_sites_check_lists_CheckListId",
            Severity: Major
            Found in eFormCore/Migrations/20201222125152_HugheTableRenaming.cs and 2 other locations - About 2 hrs to fix
            eFormCore/Migrations/20180810124416_InitialCreate.cs on lines 921..942
            eFormCore/Migrations/20201222125152_HugheTableRenaming.cs on lines 884..905

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

            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