microting/eform-sdk-dotnet

View on GitHub

Showing 3,203 of 3,219 total issues

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

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

Duplicated Code

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

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

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

Tuning

This issue has a mass of 406.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

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

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

Duplicated Code

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

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

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

Tuning

This issue has a mass of 406.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

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

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

Duplicated Code

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

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

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

Tuning

This issue has a mass of 406.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

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

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

Duplicated Code

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

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

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

Tuning

This issue has a mass of 406.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

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

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

Duplicated Code

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

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

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

Tuning

This issue has a mass of 406.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

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

            modelBuilder.Entity("Microting.eForm.Infrastructure.Data.Entities.Worker", b =>
                {
                    b.Property<int>("Id")
                        .ValueGeneratedOnAdd()
                        .HasColumnType("int");
eFormCore/Migrations/20230506062507_AddingInitialsToWorkers.Designer.cs on lines 3829..3873

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

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

            modelBuilder.Entity("Microting.eForm.Infrastructure.Data.Entities.Worker", b =>
                {
                    b.Property<int>("Id")
                        .ValueGeneratedOnAdd()
                        .HasColumnType("int");
eFormCore/Migrations/20230607084834_AddingOriginalFileLocationToUploadedData.Designer.cs on lines 3835..3879

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

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

using System;
using System.IO;
using System.Net;
using System.Net.Security;
using System.Security.Cryptography.X509Certificates;
Severity: Minor
Found in eFormCore/Communication/HttpFake.cs - About 6 hrs to fix

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

                modelBuilder.Entity("Microting.eForm.Infrastructure.Data.Entities.answers", b =>
                    {
                        b.Property<int>("Id")
                            .ValueGeneratedOnAdd()
                            .HasAnnotation(autoIDGenStrategy, autoIDGenStrategyValue);
    eFormCore/Migrations/20200120093951_CleanupInSight.Designer.cs on lines 167..215
    eFormCore/Migrations/20200120164857_AddingTranslationsToInSight.Designer.cs on lines 167..215
    eFormCore/Migrations/20200120171433_AddingMicrotingUidToInSight.Designer.cs on lines 167..215
    eFormCore/Migrations/20200122103229_ChangingValueToBeStringForAnswerValue.Designer.cs on lines 143..191
    eFormCore/Migrations/20200222140656_AddinDisplayIndexToOptions.Designer.cs on lines 143..191
    eFormCore/Migrations/20200224092512_AddingMoreAttributesToUnits.Designer.cs on lines 143..191
    eFormCore/Migrations/20200226182616_MakingNextQuestionIdNullable.Designer.cs on lines 143..191

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

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

                modelBuilder.Entity("Microting.eForm.Infrastructure.Data.Entities.answers", b =>
                    {
                        b.Property<int>("Id")
                            .ValueGeneratedOnAdd()
                            .HasAnnotation(autoIDGenStrategy, autoIDGenStrategyValue);
    eFormCore/Migrations/20200120093951_CleanupInSight.Designer.cs on lines 167..215
    eFormCore/Migrations/20200120164857_AddingTranslationsToInSight.Designer.cs on lines 167..215
    eFormCore/Migrations/20200120171433_AddingMicrotingUidToInSight.Designer.cs on lines 167..215
    eFormCore/Migrations/20200122103229_ChangingValueToBeStringForAnswerValue.Designer.cs on lines 143..191
    eFormCore/Migrations/20200224084023_AddingAttributesToUnits.Designer.cs on lines 143..191
    eFormCore/Migrations/20200224092512_AddingMoreAttributesToUnits.Designer.cs on lines 143..191
    eFormCore/Migrations/20200226182616_MakingNextQuestionIdNullable.Designer.cs on lines 143..191

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

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

                modelBuilder.Entity("Microting.eForm.Infrastructure.Data.Entities.answers", b =>
                    {
                        b.Property<int>("Id")
                            .ValueGeneratedOnAdd()
                            .HasAnnotation(autoIDGenStrategy, autoIDGenStrategyValue);
    eFormCore/Migrations/20200120093951_CleanupInSight.Designer.cs on lines 167..215
    eFormCore/Migrations/20200120164857_AddingTranslationsToInSight.Designer.cs on lines 167..215
    eFormCore/Migrations/20200120171433_AddingMicrotingUidToInSight.Designer.cs on lines 167..215
    eFormCore/Migrations/20200222140656_AddinDisplayIndexToOptions.Designer.cs on lines 143..191
    eFormCore/Migrations/20200224084023_AddingAttributesToUnits.Designer.cs on lines 143..191
    eFormCore/Migrations/20200224092512_AddingMoreAttributesToUnits.Designer.cs on lines 143..191
    eFormCore/Migrations/20200226182616_MakingNextQuestionIdNullable.Designer.cs on lines 143..191

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

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

                modelBuilder.Entity("Microting.eForm.Infrastructure.Data.Entities.answers", b =>
                    {
                        b.Property<int>("Id")
                            .ValueGeneratedOnAdd()
                            .HasAnnotation(autoIDGenStrategy, autoIDGenStrategyValue);
    eFormCore/Migrations/20200120093951_CleanupInSight.Designer.cs on lines 167..215
    eFormCore/Migrations/20200120171433_AddingMicrotingUidToInSight.Designer.cs on lines 167..215
    eFormCore/Migrations/20200122103229_ChangingValueToBeStringForAnswerValue.Designer.cs on lines 143..191
    eFormCore/Migrations/20200222140656_AddinDisplayIndexToOptions.Designer.cs on lines 143..191
    eFormCore/Migrations/20200224084023_AddingAttributesToUnits.Designer.cs on lines 143..191
    eFormCore/Migrations/20200224092512_AddingMoreAttributesToUnits.Designer.cs on lines 143..191
    eFormCore/Migrations/20200226182616_MakingNextQuestionIdNullable.Designer.cs on lines 143..191

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

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

                modelBuilder.Entity("Microting.eForm.Infrastructure.Data.Entities.answers", b =>
                    {
                        b.Property<int>("Id")
                            .ValueGeneratedOnAdd()
                            .HasAnnotation(autoIDGenStrategy, autoIDGenStrategyValue);
    eFormCore/Migrations/20200120093951_CleanupInSight.Designer.cs on lines 167..215
    eFormCore/Migrations/20200120164857_AddingTranslationsToInSight.Designer.cs on lines 167..215
    eFormCore/Migrations/20200122103229_ChangingValueToBeStringForAnswerValue.Designer.cs on lines 143..191
    eFormCore/Migrations/20200222140656_AddinDisplayIndexToOptions.Designer.cs on lines 143..191
    eFormCore/Migrations/20200224084023_AddingAttributesToUnits.Designer.cs on lines 143..191
    eFormCore/Migrations/20200224092512_AddingMoreAttributesToUnits.Designer.cs on lines 143..191
    eFormCore/Migrations/20200226182616_MakingNextQuestionIdNullable.Designer.cs on lines 143..191

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

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

                modelBuilder.Entity("Microting.eForm.Infrastructure.Data.Entities.answers", b =>
                    {
                        b.Property<int>("Id")
                            .ValueGeneratedOnAdd()
                            .HasAnnotation(autoIDGenStrategy, autoIDGenStrategyValue);
    eFormCore/Migrations/20200120093951_CleanupInSight.Designer.cs on lines 167..215
    eFormCore/Migrations/20200120164857_AddingTranslationsToInSight.Designer.cs on lines 167..215
    eFormCore/Migrations/20200120171433_AddingMicrotingUidToInSight.Designer.cs on lines 167..215
    eFormCore/Migrations/20200122103229_ChangingValueToBeStringForAnswerValue.Designer.cs on lines 143..191
    eFormCore/Migrations/20200222140656_AddinDisplayIndexToOptions.Designer.cs on lines 143..191
    eFormCore/Migrations/20200224084023_AddingAttributesToUnits.Designer.cs on lines 143..191
    eFormCore/Migrations/20200224092512_AddingMoreAttributesToUnits.Designer.cs on lines 143..191

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

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

                modelBuilder.Entity("Microting.eForm.Infrastructure.Data.Entities.answers", b =>
                    {
                        b.Property<int>("Id")
                            .ValueGeneratedOnAdd()
                            .HasAnnotation(autoIDGenStrategy, autoIDGenStrategyValue);
    eFormCore/Migrations/20200120164857_AddingTranslationsToInSight.Designer.cs on lines 167..215
    eFormCore/Migrations/20200120171433_AddingMicrotingUidToInSight.Designer.cs on lines 167..215
    eFormCore/Migrations/20200122103229_ChangingValueToBeStringForAnswerValue.Designer.cs on lines 143..191
    eFormCore/Migrations/20200222140656_AddinDisplayIndexToOptions.Designer.cs on lines 143..191
    eFormCore/Migrations/20200224084023_AddingAttributesToUnits.Designer.cs on lines 143..191
    eFormCore/Migrations/20200224092512_AddingMoreAttributesToUnits.Designer.cs on lines 143..191
    eFormCore/Migrations/20200226182616_MakingNextQuestionIdNullable.Designer.cs on lines 143..191

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

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

                modelBuilder.Entity("Microting.eForm.Infrastructure.Data.Entities.answers", b =>
                    {
                        b.Property<int>("Id")
                            .ValueGeneratedOnAdd()
                            .HasAnnotation(autoIDGenStrategy, autoIDGenStrategyValue);
    eFormCore/Migrations/20200120093951_CleanupInSight.Designer.cs on lines 167..215
    eFormCore/Migrations/20200120164857_AddingTranslationsToInSight.Designer.cs on lines 167..215
    eFormCore/Migrations/20200120171433_AddingMicrotingUidToInSight.Designer.cs on lines 167..215
    eFormCore/Migrations/20200122103229_ChangingValueToBeStringForAnswerValue.Designer.cs on lines 143..191
    eFormCore/Migrations/20200222140656_AddinDisplayIndexToOptions.Designer.cs on lines 143..191
    eFormCore/Migrations/20200224084023_AddingAttributesToUnits.Designer.cs on lines 143..191
    eFormCore/Migrations/20200226182616_MakingNextQuestionIdNullable.Designer.cs on lines 143..191

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

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

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

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

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

      Duplicated Code

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

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

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

      Tuning

      This issue has a mass of 402.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

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

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

      Duplicated Code

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

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

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

      Tuning

      This issue has a mass of 402.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

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

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

      Duplicated Code

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

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

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

      Tuning

      This issue has a mass of 402.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Severity
      Category
      Status
      Source
      Language