microting/eform-sdk-dotnet

View on GitHub

Showing 3,203 of 3,219 total issues

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

            migrationBuilder.CreateTable(
                name: "sites",
                columns: table => new
                {
                    id = table.Column<int>(nullable: false)
Severity: Major
Found in eFormCore/Migrations/20180810124416_InitialCreate.cs and 1 other location - About 3 hrs to fix
eFormCore/Migrations/20180810124416_InitialCreate.cs on lines 538..554

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

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

            migrationBuilder.CreateTable(
                name: "tags",
                columns: table => new
                {
                    id = table.Column<int>(nullable: false)
Severity: Major
Found in eFormCore/Migrations/20180810124416_InitialCreate.cs and 1 other location - About 3 hrs to fix
eFormCore/Migrations/20180810124416_InitialCreate.cs on lines 481..497

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

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

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

    Method SQL_Unit_UnitGetAll_ReturnsAllUnits has 89 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            [Test]
            public async Task SQL_Unit_UnitGetAll_ReturnsAllUnits()
            {
                // Arrance
    
    
    Severity: Major
    Found in eFormSDK.Integration.Base.SqlControllerTests/SqlControllerTestUnit.cs - About 3 hrs to fix

      Method CheckListSites_Update_DoesUpdate has 89 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

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

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

                [Test]
                public async Task questionSet_Create_DoesCreate_PosiblyDeployedTrue()
                {
                    // Arrange
                    string name = Guid.NewGuid().ToString();
        Severity: Major
        Found in eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs and 7 other locations - About 3 hrs to fix
        eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 68..92
        eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 93..117
        eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 118..142
        eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 143..167
        eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 193..217
        eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 218..242
        eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 243..267

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

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

                [Test]
                public async Task questionSet_Create_DoesCreate_AllFalse()
                {
                    // Arrange
                    string name = Guid.NewGuid().ToString();
        Severity: Major
        Found in eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs and 7 other locations - About 3 hrs to fix
        eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 93..117
        eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 118..142
        eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 143..167
        eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 168..192
        eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 193..217
        eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 218..242
        eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 243..267

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

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

                [Test]
                public async Task questionSet_Create_DoesCreate_ShareAndPosiblyDeployedTrue()
                {
                    // Arrange
                    string name = Guid.NewGuid().ToString();
        Severity: Major
        Found in eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs and 7 other locations - About 3 hrs to fix
        eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 68..92
        eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 93..117
        eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 118..142
        eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 143..167
        eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 168..192
        eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 193..217
        eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 243..267

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

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

                [Test]
                public async Task questionSet_Create_DoesCreate_ShareAndHasChildTrue()
                {
                    // Arrange
                    string name = Guid.NewGuid().ToString();
        Severity: Major
        Found in eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs and 7 other locations - About 3 hrs to fix
        eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 68..92
        eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 93..117
        eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 118..142
        eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 143..167
        eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 168..192
        eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 218..242
        eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 243..267

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

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

                [Test]
                public async Task questionSet_Create_DoesCreate_HasChildAndPosiblyDeployedTrue()
                {
                    // Arrange
                    string name = Guid.NewGuid().ToString();
        Severity: Major
        Found in eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs and 7 other locations - About 3 hrs to fix
        eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 68..92
        eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 93..117
        eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 118..142
        eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 143..167
        eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 168..192
        eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 193..217
        eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 218..242

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

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

                [Test]
                public async Task questionSet_Create_DoesCreate_ShareTrue()
                {
                    // Arrange
                    string name = Guid.NewGuid().ToString();
        Severity: Major
        Found in eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs and 7 other locations - About 3 hrs to fix
        eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 68..92
        eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 93..117
        eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 143..167
        eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 168..192
        eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 193..217
        eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 218..242
        eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 243..267

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

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

                [Test]
                public async Task questionSet_Create_DoesCreate_HasChildTrue()
                {
                    // Arrange
                    string name = Guid.NewGuid().ToString();
        Severity: Major
        Found in eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs and 7 other locations - About 3 hrs to fix
        eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 68..92
        eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 93..117
        eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 118..142
        eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 168..192
        eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 193..217
        eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 218..242
        eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 243..267

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

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

                [Test]
                public async Task questionSet_Create_DoesCreate_AllTrue()
                {
                    // Arrange
                    string name = Guid.NewGuid().ToString();
        Severity: Major
        Found in eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs and 7 other locations - About 3 hrs to fix
        eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 68..92
        eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 118..142
        eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 143..167
        eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 168..192
        eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 193..217
        eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 218..242
        eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 243..267

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

        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

                private async Task<int> SendJson(MainElement mainElement, int siteId)
                {
                    string methodName = "Core.SendJson";
                    Log.LogEverything(methodName, "siteId:" + siteId + ", requested sent eForm");
        
        
        Severity: Major
        Found in eFormCore/Core.cs and 1 other location - About 3 hrs to fix
        eFormCore/Core.cs on lines 5299..5322

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

        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

                private async Task<int> SendXml(MainElement mainElement, int siteId)
                {
                    string methodName = "Core.SendXml";
                    Log.LogEverything(methodName, "siteId:" + siteId + ", requested sent eForm");
        
        
        Severity: Major
        Found in eFormCore/Core.cs and 1 other location - About 3 hrs to fix
        eFormCore/Core.cs on lines 5324..5347

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

        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

                    modelBuilder.Entity("Microting.eForm.Infrastructure.Data.Entities.option_translations", b =>
                        {
                            b.Property<int>("Id")
                                .ValueGeneratedOnAdd()
                                .HasAnnotation(autoIDGenStrategy, autoIDGenStrategyValue);
        eFormCore/Migrations/20200120164857_AddingTranslationsToInSight.Designer.cs on lines 1608..1636

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

        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

                    modelBuilder.Entity("Microting.eForm.Infrastructure.Data.Entities.question_translations", b =>
                        {
                            b.Property<int>("Id")
                                .ValueGeneratedOnAdd()
                                .HasAnnotation(autoIDGenStrategy, autoIDGenStrategyValue);
        eFormCore/Migrations/20200120164857_AddingTranslationsToInSight.Designer.cs on lines 1406..1434

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

        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

                            if (site.SearchableEntityItemId == 0)
                            {
                                Microting.eForm.Infrastructure.Data.Entities.EntityGroup searchableList = await db.EntityGroups
                                        .FirstOrDefaultAsync(x =>
                                            x.Name == "Device users" && x.Type == Constants.FieldTypes.EntitySearch) ??
        Severity: Major
        Found in eFormCore/Core.cs and 1 other location - About 3 hrs to fix
        eFormCore/Core.cs on lines 4568..4585

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

        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

                            if (site.SelectableEntityItemId == 0)
                            {
                                Microting.eForm.Infrastructure.Data.Entities.EntityGroup selectableList = await db.EntityGroups
                                        .FirstOrDefaultAsync(x =>
                                            x.Name == "Device users" && x.Type == Constants.FieldTypes.EntitySelect) ??
        Severity: Major
        Found in eFormCore/Core.cs and 1 other location - About 3 hrs to fix
        eFormCore/Core.cs on lines 4549..4566

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

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

                [Test]
                public async Task Core_Advanced_FieldValueReadList_ReturnsList()
                {
                    // Arrance
        
        
        Severity: Major
        Found in eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs - About 3 hrs to fix
          Severity
          Category
          Status
          Source
          Language