microting/eform-sdk-dotnet

View on GitHub

Showing 3,203 of 3,219 total issues

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

        [Test]
        public async Task questionSet_Delete_DoesDelete_HasChildAndPosiblyDeployedTrue()
        {
            // Arrange
            string name = Guid.NewGuid().ToString();
Severity: Major
Found in eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs and 5 other locations - About 5 hrs to fix
eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 582..613
eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 614..645
eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 646..677
eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 678..709
eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 710..741

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

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

        [Test]
        public async Task questionSet_Delete_DoesDelete_HasChildTrue()
        {
            // Arrange
            string name = Guid.NewGuid().ToString();
Severity: Major
Found in eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs and 5 other locations - About 5 hrs to fix
eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 582..613
eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 646..677
eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 678..709
eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 710..741
eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 742..773

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

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

        [Test]
        public async Task questionSet_Delete_DoesDelete_ShareAndHasChildTrue()
        {
            // Arrange
            string name = Guid.NewGuid().ToString();
Severity: Major
Found in eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs and 5 other locations - About 5 hrs to fix
eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 582..613
eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 614..645
eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 646..677
eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 710..741
eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 742..773

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

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

        [Test]
        public async Task questionSet_Delete_DoesDelete_PosiblyDeployedTrue()
        {
            // Arrange
            string name = Guid.NewGuid().ToString();
Severity: Major
Found in eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs and 5 other locations - About 5 hrs to fix
eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 582..613
eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 614..645
eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 678..709
eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 710..741
eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 742..773

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

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

        [Test]
        public async Task questionSet_Delete_DoesDelete_ShareAndPosiblyDeployedTrue()
        {
            // Arrange
            string name = Guid.NewGuid().ToString();
Severity: Major
Found in eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs and 5 other locations - About 5 hrs to fix
eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 582..613
eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 614..645
eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 646..677
eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 678..709
eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 742..773

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

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

        [Test]
        public async Task questionSet_Delete_DoesDelete_ShareTrue()
        {
            // Arrange
            string name = Guid.NewGuid().ToString();
Severity: Major
Found in eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs and 5 other locations - About 5 hrs to fix
eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 614..645
eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 646..677
eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 678..709
eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 710..741
eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 742..773

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

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

            modelBuilder.Entity("eFormSqlController.answer_versions", b =>
                {
                    b.Property<int>("Id")
                        .ValueGeneratedOnAdd()
                        .HasAnnotation(autoIDGenStrategy, autoIDGenStrategyValue);
eFormCore/Migrations/20190531092007_AddingMissingAIonLogs.Designer.cs on lines 121..159
eFormCore/Migrations/20190711053344_AddingJasperDocxEnabledAttributesToCheckList.Designer.cs on lines 121..159
eFormCore/Migrations/20190806093044_AddingSiteGroups.Designer.cs on lines 97..135
eFormCore/Migrations/20190828054730_AddingNewVersionClasses.Designer.cs on lines 121..159
eFormCore/Migrations/20190828074017_AddingMissingClasses.Designer.cs on lines 121..159
eFormCore/Migrations/20190923100451_ChangeStringToInt.Designer.cs on lines 121..159
eFormCore/Migrations/20190924172326_AddingNewIndexOnCases.Designer.cs on lines 121..159
eFormCore/Migrations/20200116074236_AddingSiteTaggins.Designer.cs on lines 121..159

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

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

            modelBuilder.Entity("Microting.eForm.Infrastructure.Data.Entities.answer_versions", b =>
                {
                    b.Property<int>("Id")
                        .ValueGeneratedOnAdd()
                        .HasAnnotation(autoIDGenStrategy, autoIDGenStrategyValue);
eFormCore/Migrations/20190515064952_FixingNamingForFieldValues.Designer.cs on lines 121..159
eFormCore/Migrations/20190531092007_AddingMissingAIonLogs.Designer.cs on lines 121..159
eFormCore/Migrations/20190711053344_AddingJasperDocxEnabledAttributesToCheckList.Designer.cs on lines 121..159
eFormCore/Migrations/20190806093044_AddingSiteGroups.Designer.cs on lines 97..135
eFormCore/Migrations/20190828074017_AddingMissingClasses.Designer.cs on lines 121..159
eFormCore/Migrations/20190923100451_ChangeStringToInt.Designer.cs on lines 121..159
eFormCore/Migrations/20190924172326_AddingNewIndexOnCases.Designer.cs on lines 121..159
eFormCore/Migrations/20200116074236_AddingSiteTaggins.Designer.cs on lines 121..159

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

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

            modelBuilder.Entity("Microting.eForm.Infrastructure.Data.Entities.answer_versions", b =>
                {
                    b.Property<int>("Id")
                        .ValueGeneratedOnAdd()
                        .HasAnnotation(autoIDGenStrategy, autoIDGenStrategyValue);
eFormCore/Migrations/20190515064952_FixingNamingForFieldValues.Designer.cs on lines 121..159
eFormCore/Migrations/20190531092007_AddingMissingAIonLogs.Designer.cs on lines 121..159
eFormCore/Migrations/20190711053344_AddingJasperDocxEnabledAttributesToCheckList.Designer.cs on lines 121..159
eFormCore/Migrations/20190806093044_AddingSiteGroups.Designer.cs on lines 97..135
eFormCore/Migrations/20190828054730_AddingNewVersionClasses.Designer.cs on lines 121..159
eFormCore/Migrations/20190828074017_AddingMissingClasses.Designer.cs on lines 121..159
eFormCore/Migrations/20190924172326_AddingNewIndexOnCases.Designer.cs on lines 121..159
eFormCore/Migrations/20200116074236_AddingSiteTaggins.Designer.cs on lines 121..159

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

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

            modelBuilder.Entity("Microting.eForm.Infrastructure.Data.Entities.answer_versions", b =>
                {
                    b.Property<int>("Id")
                        .ValueGeneratedOnAdd()
                        .HasAnnotation(autoIDGenStrategy, autoIDGenStrategyValue);
eFormCore/Migrations/20190515064952_FixingNamingForFieldValues.Designer.cs on lines 121..159
eFormCore/Migrations/20190531092007_AddingMissingAIonLogs.Designer.cs on lines 121..159
eFormCore/Migrations/20190711053344_AddingJasperDocxEnabledAttributesToCheckList.Designer.cs on lines 121..159
eFormCore/Migrations/20190806093044_AddingSiteGroups.Designer.cs on lines 97..135
eFormCore/Migrations/20190828054730_AddingNewVersionClasses.Designer.cs on lines 121..159
eFormCore/Migrations/20190923100451_ChangeStringToInt.Designer.cs on lines 121..159
eFormCore/Migrations/20190924172326_AddingNewIndexOnCases.Designer.cs on lines 121..159
eFormCore/Migrations/20200116074236_AddingSiteTaggins.Designer.cs on lines 121..159

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

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

            modelBuilder.Entity("Microting.eForm.Infrastructure.Data.Entities.answer_versions", b =>
                {
                    b.Property<int>("Id")
                        .ValueGeneratedOnAdd()
                        .HasAnnotation(autoIDGenStrategy, autoIDGenStrategyValue);
eFormCore/Migrations/20190515064952_FixingNamingForFieldValues.Designer.cs on lines 121..159
eFormCore/Migrations/20190531092007_AddingMissingAIonLogs.Designer.cs on lines 121..159
eFormCore/Migrations/20190711053344_AddingJasperDocxEnabledAttributesToCheckList.Designer.cs on lines 121..159
eFormCore/Migrations/20190806093044_AddingSiteGroups.Designer.cs on lines 97..135
eFormCore/Migrations/20190828054730_AddingNewVersionClasses.Designer.cs on lines 121..159
eFormCore/Migrations/20190828074017_AddingMissingClasses.Designer.cs on lines 121..159
eFormCore/Migrations/20190923100451_ChangeStringToInt.Designer.cs on lines 121..159
eFormCore/Migrations/20190924172326_AddingNewIndexOnCases.Designer.cs on lines 121..159

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

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

            modelBuilder.Entity("Microting.eForm.Infrastructure.Data.Entities.answer_versions", b =>
                {
                    b.Property<int>("Id")
                        .ValueGeneratedOnAdd()
                        .HasAnnotation(autoIDGenStrategy, autoIDGenStrategyValue);
eFormCore/Migrations/20190515064952_FixingNamingForFieldValues.Designer.cs on lines 121..159
eFormCore/Migrations/20190531092007_AddingMissingAIonLogs.Designer.cs on lines 121..159
eFormCore/Migrations/20190711053344_AddingJasperDocxEnabledAttributesToCheckList.Designer.cs on lines 121..159
eFormCore/Migrations/20190828054730_AddingNewVersionClasses.Designer.cs on lines 121..159
eFormCore/Migrations/20190828074017_AddingMissingClasses.Designer.cs on lines 121..159
eFormCore/Migrations/20190923100451_ChangeStringToInt.Designer.cs on lines 121..159
eFormCore/Migrations/20190924172326_AddingNewIndexOnCases.Designer.cs on lines 121..159
eFormCore/Migrations/20200116074236_AddingSiteTaggins.Designer.cs on lines 121..159

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

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

            modelBuilder.Entity("eFormSqlController.answer_versions", b =>
                {
                    b.Property<int>("Id")
                        .ValueGeneratedOnAdd()
                        .HasAnnotation(autoIDGenStrategy, autoIDGenStrategyValue);
eFormCore/Migrations/20190515064952_FixingNamingForFieldValues.Designer.cs on lines 121..159
eFormCore/Migrations/20190711053344_AddingJasperDocxEnabledAttributesToCheckList.Designer.cs on lines 121..159
eFormCore/Migrations/20190806093044_AddingSiteGroups.Designer.cs on lines 97..135
eFormCore/Migrations/20190828054730_AddingNewVersionClasses.Designer.cs on lines 121..159
eFormCore/Migrations/20190828074017_AddingMissingClasses.Designer.cs on lines 121..159
eFormCore/Migrations/20190923100451_ChangeStringToInt.Designer.cs on lines 121..159
eFormCore/Migrations/20190924172326_AddingNewIndexOnCases.Designer.cs on lines 121..159
eFormCore/Migrations/20200116074236_AddingSiteTaggins.Designer.cs on lines 121..159

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

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

            modelBuilder.Entity("eFormSqlController.answer_versions", b =>
                {
                    b.Property<int>("Id")
                        .ValueGeneratedOnAdd()
                        .HasAnnotation(autoIDGenStrategy, autoIDGenStrategyValue);
eFormCore/Migrations/20190515064952_FixingNamingForFieldValues.Designer.cs on lines 121..159
eFormCore/Migrations/20190531092007_AddingMissingAIonLogs.Designer.cs on lines 121..159
eFormCore/Migrations/20190806093044_AddingSiteGroups.Designer.cs on lines 97..135
eFormCore/Migrations/20190828054730_AddingNewVersionClasses.Designer.cs on lines 121..159
eFormCore/Migrations/20190828074017_AddingMissingClasses.Designer.cs on lines 121..159
eFormCore/Migrations/20190923100451_ChangeStringToInt.Designer.cs on lines 121..159
eFormCore/Migrations/20190924172326_AddingNewIndexOnCases.Designer.cs on lines 121..159
eFormCore/Migrations/20200116074236_AddingSiteTaggins.Designer.cs on lines 121..159

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

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

            modelBuilder.Entity("Microting.eForm.Infrastructure.Data.Entities.answer_versions", b =>
                {
                    b.Property<int>("Id")
                        .ValueGeneratedOnAdd()
                        .HasAnnotation(autoIDGenStrategy, autoIDGenStrategyValue);
eFormCore/Migrations/20190515064952_FixingNamingForFieldValues.Designer.cs on lines 121..159
eFormCore/Migrations/20190531092007_AddingMissingAIonLogs.Designer.cs on lines 121..159
eFormCore/Migrations/20190711053344_AddingJasperDocxEnabledAttributesToCheckList.Designer.cs on lines 121..159
eFormCore/Migrations/20190806093044_AddingSiteGroups.Designer.cs on lines 97..135
eFormCore/Migrations/20190828054730_AddingNewVersionClasses.Designer.cs on lines 121..159
eFormCore/Migrations/20190828074017_AddingMissingClasses.Designer.cs on lines 121..159
eFormCore/Migrations/20190923100451_ChangeStringToInt.Designer.cs on lines 121..159
eFormCore/Migrations/20200116074236_AddingSiteTaggins.Designer.cs on lines 121..159

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

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

            migrationBuilder.CreateTable(
                name: "SiteTags",
                columns: table => new
                {
                    Id = table.Column<int>(nullable: false)
Severity: Major
Found in eFormCore/Migrations/20200116074236_AddingSiteTaggins.cs and 2 other locations - About 5 hrs to fix
eFormCore/Migrations/20190806093044_AddingSiteGroups.cs on lines 85..113
eFormCore/Migrations/20200120164857_AddingTranslationsToInSight.cs on lines 47..75

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

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

            migrationBuilder.CreateTable(
                name: "SiteGroupSites",
                columns: table => new
                {
                    Id = table.Column<int>(nullable: false)
Severity: Major
Found in eFormCore/Migrations/20190806093044_AddingSiteGroups.cs and 2 other locations - About 5 hrs to fix
eFormCore/Migrations/20200116074236_AddingSiteTaggins.cs on lines 109..137
eFormCore/Migrations/20200120164857_AddingTranslationsToInSight.cs on lines 47..75

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

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

            migrationBuilder.CreateTable(
                name: "FieldTranslations",
                columns: table => new
                {
                    Id = table.Column<int>(nullable: false)
Severity: Major
Found in eFormCore/Migrations/20201223104631_AddingTranslations.cs and 2 other locations - About 5 hrs to fix
eFormCore/Migrations/20201223104631_AddingTranslations.cs on lines 79..103
eFormCore/Migrations/20201223104631_AddingTranslations.cs on lines 126..150

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

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

            migrationBuilder.CreateTable(
                name: "FieldOptions",
                columns: table => new
                {
                    Id = table.Column<int>(nullable: false)
Severity: Major
Found in eFormCore/Migrations/20201223104631_AddingTranslations.cs and 2 other locations - About 5 hrs to fix
eFormCore/Migrations/20201223104631_AddingTranslations.cs on lines 79..103
eFormCore/Migrations/20201223104631_AddingTranslations.cs on lines 193..217

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

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

            migrationBuilder.CreateTable(
                name: "CheckLisTranslations",
                columns: table => new
                {
                    Id = table.Column<int>(nullable: false)
Severity: Major
Found in eFormCore/Migrations/20201223104631_AddingTranslations.cs and 2 other locations - About 5 hrs to fix
eFormCore/Migrations/20201223104631_AddingTranslations.cs on lines 126..150
eFormCore/Migrations/20201223104631_AddingTranslations.cs on lines 193..217

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

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