microting/eform-sdk-dotnet

View on GitHub

Showing 3,203 of 3,219 total issues

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

            Case theCase = new Case
            {
                Custom = Guid.NewGuid().ToString(),
                Status = rnd.Next(1, 255),
                Type = Guid.NewGuid().ToString(),
Severity: Major
Found in eFormSDK.CheckLists.Tests/CheckListValuesUTest.cs and 8 other locations - About 4 hrs to fix
eFormSDK.CheckLists.Tests/CasesUTest.cs on lines 113..136
eFormSDK.CheckLists.Tests/CasesUTest.cs on lines 283..306
eFormSDK.CheckLists.Tests/CasesUTest.cs on lines 519..542
eFormSDK.CheckLists.Tests/CheckListValuesUTest.cs on lines 113..136
eFormSDK.CheckLists.Tests/CheckListValuesUTest.cs on lines 411..434
eFormSDK.CheckLists.Tests/FieldValuesUTest.cs on lines 162..185
eFormSDK.CheckLists.Tests/FieldValuesUTest.cs on lines 393..416
eFormSDK.CheckLists.Tests/FieldValuesUTest.cs on lines 663..686

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

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

            Case theCase = new Case
            {
                Custom = Guid.NewGuid().ToString(),
                Status = rnd.Next(1, 255),
                Type = Guid.NewGuid().ToString(),
Severity: Major
Found in eFormSDK.CheckLists.Tests/CheckListValuesUTest.cs and 8 other locations - About 4 hrs to fix
eFormSDK.CheckLists.Tests/CasesUTest.cs on lines 113..136
eFormSDK.CheckLists.Tests/CasesUTest.cs on lines 283..306
eFormSDK.CheckLists.Tests/CasesUTest.cs on lines 519..542
eFormSDK.CheckLists.Tests/CheckListValuesUTest.cs on lines 113..136
eFormSDK.CheckLists.Tests/CheckListValuesUTest.cs on lines 254..277
eFormSDK.CheckLists.Tests/FieldValuesUTest.cs on lines 162..185
eFormSDK.CheckLists.Tests/FieldValuesUTest.cs on lines 393..416
eFormSDK.CheckLists.Tests/FieldValuesUTest.cs on lines 663..686

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

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

            Case theCase = new Case
            {
                Custom = Guid.NewGuid().ToString(),
                Status = rnd.Next(1, 255),
                Type = Guid.NewGuid().ToString(),
Severity: Major
Found in eFormSDK.CheckLists.Tests/FieldValuesUTest.cs and 8 other locations - About 4 hrs to fix
eFormSDK.CheckLists.Tests/CasesUTest.cs on lines 113..136
eFormSDK.CheckLists.Tests/CasesUTest.cs on lines 283..306
eFormSDK.CheckLists.Tests/CasesUTest.cs on lines 519..542
eFormSDK.CheckLists.Tests/CheckListValuesUTest.cs on lines 113..136
eFormSDK.CheckLists.Tests/CheckListValuesUTest.cs on lines 254..277
eFormSDK.CheckLists.Tests/CheckListValuesUTest.cs on lines 411..434
eFormSDK.CheckLists.Tests/FieldValuesUTest.cs on lines 162..185
eFormSDK.CheckLists.Tests/FieldValuesUTest.cs on lines 393..416

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

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

            Case theCase = new Case
            {
                Custom = Guid.NewGuid().ToString(),
                Status = rnd.Next(1, 255),
                Type = Guid.NewGuid().ToString(),
Severity: Major
Found in eFormSDK.CheckLists.Tests/CasesUTest.cs and 8 other locations - About 4 hrs to fix
eFormSDK.CheckLists.Tests/CasesUTest.cs on lines 283..306
eFormSDK.CheckLists.Tests/CasesUTest.cs on lines 519..542
eFormSDK.CheckLists.Tests/CheckListValuesUTest.cs on lines 113..136
eFormSDK.CheckLists.Tests/CheckListValuesUTest.cs on lines 254..277
eFormSDK.CheckLists.Tests/CheckListValuesUTest.cs on lines 411..434
eFormSDK.CheckLists.Tests/FieldValuesUTest.cs on lines 162..185
eFormSDK.CheckLists.Tests/FieldValuesUTest.cs on lines 393..416
eFormSDK.CheckLists.Tests/FieldValuesUTest.cs on lines 663..686

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

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

            Case theCase = new Case
            {
                Custom = Guid.NewGuid().ToString(),
                Status = rnd.Next(1, 255),
                Type = Guid.NewGuid().ToString(),
Severity: Major
Found in eFormSDK.CheckLists.Tests/CasesUTest.cs and 8 other locations - About 4 hrs to fix
eFormSDK.CheckLists.Tests/CasesUTest.cs on lines 113..136
eFormSDK.CheckLists.Tests/CasesUTest.cs on lines 283..306
eFormSDK.CheckLists.Tests/CheckListValuesUTest.cs on lines 113..136
eFormSDK.CheckLists.Tests/CheckListValuesUTest.cs on lines 254..277
eFormSDK.CheckLists.Tests/CheckListValuesUTest.cs on lines 411..434
eFormSDK.CheckLists.Tests/FieldValuesUTest.cs on lines 162..185
eFormSDK.CheckLists.Tests/FieldValuesUTest.cs on lines 393..416
eFormSDK.CheckLists.Tests/FieldValuesUTest.cs on lines 663..686

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

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

            Case theCase = new Case
            {
                Custom = Guid.NewGuid().ToString(),
                Status = rnd.Next(1, 255),
                Type = Guid.NewGuid().ToString(),
Severity: Major
Found in eFormSDK.CheckLists.Tests/CheckListValuesUTest.cs and 8 other locations - About 4 hrs to fix
eFormSDK.CheckLists.Tests/CasesUTest.cs on lines 113..136
eFormSDK.CheckLists.Tests/CasesUTest.cs on lines 283..306
eFormSDK.CheckLists.Tests/CasesUTest.cs on lines 519..542
eFormSDK.CheckLists.Tests/CheckListValuesUTest.cs on lines 254..277
eFormSDK.CheckLists.Tests/CheckListValuesUTest.cs on lines 411..434
eFormSDK.CheckLists.Tests/FieldValuesUTest.cs on lines 162..185
eFormSDK.CheckLists.Tests/FieldValuesUTest.cs on lines 393..416
eFormSDK.CheckLists.Tests/FieldValuesUTest.cs on lines 663..686

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

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

            Case theCase = new Case
            {
                Custom = Guid.NewGuid().ToString(),
                Status = rnd.Next(1, 255),
                Type = Guid.NewGuid().ToString(),
Severity: Major
Found in eFormSDK.CheckLists.Tests/FieldValuesUTest.cs and 8 other locations - About 4 hrs to fix
eFormSDK.CheckLists.Tests/CasesUTest.cs on lines 113..136
eFormSDK.CheckLists.Tests/CasesUTest.cs on lines 283..306
eFormSDK.CheckLists.Tests/CasesUTest.cs on lines 519..542
eFormSDK.CheckLists.Tests/CheckListValuesUTest.cs on lines 113..136
eFormSDK.CheckLists.Tests/CheckListValuesUTest.cs on lines 254..277
eFormSDK.CheckLists.Tests/CheckListValuesUTest.cs on lines 411..434
eFormSDK.CheckLists.Tests/FieldValuesUTest.cs on lines 162..185
eFormSDK.CheckLists.Tests/FieldValuesUTest.cs on lines 663..686

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

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

            Case theCase = new Case
            {
                Custom = Guid.NewGuid().ToString(),
                Status = rnd.Next(1, 255),
                Type = Guid.NewGuid().ToString(),
Severity: Major
Found in eFormSDK.CheckLists.Tests/CasesUTest.cs and 8 other locations - About 4 hrs to fix
eFormSDK.CheckLists.Tests/CasesUTest.cs on lines 113..136
eFormSDK.CheckLists.Tests/CasesUTest.cs on lines 519..542
eFormSDK.CheckLists.Tests/CheckListValuesUTest.cs on lines 113..136
eFormSDK.CheckLists.Tests/CheckListValuesUTest.cs on lines 254..277
eFormSDK.CheckLists.Tests/CheckListValuesUTest.cs on lines 411..434
eFormSDK.CheckLists.Tests/FieldValuesUTest.cs on lines 162..185
eFormSDK.CheckLists.Tests/FieldValuesUTest.cs on lines 393..416
eFormSDK.CheckLists.Tests/FieldValuesUTest.cs on lines 663..686

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

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: "answer_value_versions",
                columns: table => new
                {
                    id = table.Column<int>(nullable: false)
eFormCore/Migrations/20190315092242_AddingModelseForInsight.cs on lines 243..262

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

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: "question_sets",
                columns: table => new
                {
                    id = table.Column<int>(nullable: false)
eFormCore/Migrations/20190315092242_AddingModelseForInsight.cs on lines 47..66

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

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

        protected override void Up(MigrationBuilder migrationBuilder)
        {
            //Setup for SQL Server Provider
           
            string autoIDGenStrategy = "SqlServer:ValueGenerationStrategy";
Severity: Major
Found in eFormCore/Migrations/20200116074236_AddingSiteTaggins.cs - About 4 hrs to fix

    File SqlControllerTestUnit.cs has 358 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    using System;
    using System.IO;
    using System.Linq;
    using System.Reflection;
    using System.Threading.Tasks;
    Severity: Minor
    Found in eFormSDK.Integration.Base.SqlControllerTests/SqlControllerTestUnit.cs - About 4 hrs to fix

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

                  modelBuilder.Entity("Microting.eForm.Infrastructure.Data.Entities.options", b =>
                      {
                          b.Property<int>("Id")
                              .ValueGeneratedOnAdd()
                              .HasAnnotation(autoIDGenStrategy, autoIDGenStrategyValue);
      eFormCore/Migrations/20200120093951_CleanupInSight.Designer.cs on lines 1360..1394
      eFormCore/Migrations/20200120171433_AddingMicrotingUidToInSight.Designer.cs on lines 1482..1516
      eFormCore/Migrations/20200122103229_ChangingValueToBeStringForAnswerValue.Designer.cs on lines 1458..1492

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

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

                  modelBuilder.Entity("Microting.eForm.Infrastructure.Data.Entities.options", b =>
                      {
                          b.Property<int>("Id")
                              .ValueGeneratedOnAdd()
                              .HasAnnotation(autoIDGenStrategy, autoIDGenStrategyValue);
      eFormCore/Migrations/20200120164857_AddingTranslationsToInSight.Designer.cs on lines 1474..1508
      eFormCore/Migrations/20200120171433_AddingMicrotingUidToInSight.Designer.cs on lines 1482..1516
      eFormCore/Migrations/20200122103229_ChangingValueToBeStringForAnswerValue.Designer.cs on lines 1458..1492

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

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

                  modelBuilder.Entity("Microting.eForm.Infrastructure.Data.Entities.options", b =>
                      {
                          b.Property<int>("Id")
                              .ValueGeneratedOnAdd()
                              .HasAnnotation(autoIDGenStrategy, autoIDGenStrategyValue);
      eFormCore/Migrations/20200120093951_CleanupInSight.Designer.cs on lines 1360..1394
      eFormCore/Migrations/20200120164857_AddingTranslationsToInSight.Designer.cs on lines 1474..1508
      eFormCore/Migrations/20200120171433_AddingMicrotingUidToInSight.Designer.cs on lines 1482..1516

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

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

                  modelBuilder.Entity("Microting.eForm.Infrastructure.Data.Entities.options", b =>
                      {
                          b.Property<int>("Id")
                              .ValueGeneratedOnAdd()
                              .HasAnnotation(autoIDGenStrategy, autoIDGenStrategyValue);
      eFormCore/Migrations/20200120093951_CleanupInSight.Designer.cs on lines 1360..1394
      eFormCore/Migrations/20200120164857_AddingTranslationsToInSight.Designer.cs on lines 1474..1508
      eFormCore/Migrations/20200122103229_ChangingValueToBeStringForAnswerValue.Designer.cs on lines 1458..1492

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

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

      using Microsoft.EntityFrameworkCore.Migrations;
      
      namespace Microting.eForm.Migrations
      {
          public partial class AddingMissingForeignKeys : Migration
      Severity: Minor
      Found in eFormCore/Migrations/20190319130214_AddingMissingForeignKeys.cs - About 4 hrs to fix

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

                public static IOrderedQueryable<TSource> CustomOrderByDescending<TSource>(
                    this IQueryable<TSource> query, string propertyName)
                {
                    var entityType = typeof(TSource);
                    //Create x=>x.PropName
        eFormCore/Infrastructure/Extensions/OrderedQueryableExtensions.cs on lines 32..62

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

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

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

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

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

        Refactorings

        Further Reading

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

                public static IOrderedQueryable<TSource> CustomOrderBy<TSource>(
                    this IQueryable<TSource> query, string propertyName)
                {
                    var entityType = typeof(TSource);
                    //Create x=>x.PropName
        eFormCore/Infrastructure/Extensions/OrderedQueryableExtensions.cs on lines 64..94

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

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

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