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_Update_DoesUpdate_ShareTrue()
        {
            // Arrange
            string name = Guid.NewGuid().ToString();
Severity: Major
Found in eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs and 5 other locations - About 4 hrs to fix
eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 362..392
eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 393..423
eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 424..454
eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 455..485
eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 486..516

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

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_Update_DoesUpdate_HasChildAndPosiblyDeployedTrue()
        {
            // Arrange
            string name = Guid.NewGuid().ToString();
Severity: Major
Found in eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs and 5 other locations - About 4 hrs to fix
eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 331..361
eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 362..392
eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 393..423
eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 424..454
eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 455..485

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

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_Update_DoesUpdate_ShareAndPosiblyDeployedTrue()
        {
            // Arrange
            string name = Guid.NewGuid().ToString();
Severity: Major
Found in eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs and 5 other locations - About 4 hrs to fix
eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 331..361
eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 362..392
eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 393..423
eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 424..454
eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 486..516

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

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_Update_DoesUpdate_HasChildTrue()
        {
            // Arrange
            string name = Guid.NewGuid().ToString();
Severity: Major
Found in eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs and 5 other locations - About 4 hrs to fix
eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 331..361
eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 393..423
eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 424..454
eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 455..485
eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 486..516

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

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_Update_DoesUpdate_PosiblyDeployedTrue()
        {
            // Arrange
            string name = Guid.NewGuid().ToString();
Severity: Major
Found in eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs and 5 other locations - About 4 hrs to fix
eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 331..361
eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 362..392
eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 424..454
eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 455..485
eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 486..516

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

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_Update_DoesUpdate_ShareAndHasChildTrue()
        {
            // Arrange
            string name = Guid.NewGuid().ToString();
Severity: Major
Found in eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs and 5 other locations - About 4 hrs to fix
eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 331..361
eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 362..392
eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 393..423
eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 455..485
eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs on lines 486..516

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

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

        [Test]
        public async Task OptionTranslation_Update_DoesUpdate_W_MicrotingUid_RemovesUid()
        {
            //Arrange

Severity: Major
Found in eFormSDK.InSight.Tests/OptionTranslationUTest.cs - About 4 hrs to fix

    Method OptionTranslation_Update_DoesUpdate_W_MicrotingUid has 122 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

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

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

                  foreach (JToken child in parsedQuestionTranslations.Children())
                  {
                      var questionTranslation =
                          JsonConvert.DeserializeObject<QuestionTranslation>(child.ToString(), jsonSerializerSettings);
                      Log.LogStandard("Core.GetAllQuestionSets",
      Severity: Major
      Found in eFormCore/Core.cs and 1 other location - About 4 hrs to fix
      eFormCore/Core.cs on lines 3983..4009

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

      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

                  foreach (JToken child in parsedOptionTranslations.Children())
                  {
                      var optionTranslation =
                          JsonConvert.DeserializeObject<OptionTranslation>(child.ToString(), jsonSerializerSettings);
                      Log.LogStandard("Core.GetAllQuestionSets",
      Severity: Major
      Found in eFormCore/Core.cs and 1 other location - About 4 hrs to fix
      eFormCore/Core.cs on lines 3899..3925

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

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

              private void SubscriberThread()
              {
                  var token = _sqlController.SettingRead(Settings.token).GetAwaiter().GetResult();
                  if (token != "UNIT_TEST___________________L:32" && token != "abc1234567890abc1234567890abcdef")
                  {
      Severity: Major
      Found in eFormCore/Services/Subscriber.cs - About 4 hrs to fix

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

                private async Task<string> HttpPut(string url, StringContent content, string contentType = null,
                    bool addToken = false, bool followRedirect = false)
                {
                    try
                    {
        Severity: Major
        Found in eFormCore/Communication/Http.cs and 1 other location - About 4 hrs to fix
        eFormCore/Communication/Http.cs on lines 77..118

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

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

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

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

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

        Refactorings

        Further Reading

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

                private async Task<string> HttpPost(string url, StringContent content, string contentType = null,
                    bool addToken = false, bool followRedirect = false)
                {
                    try
                    {
        Severity: Major
        Found in eFormCore/Communication/Http.cs and 1 other location - About 4 hrs to fix
        eFormCore/Communication/Http.cs on lines 120..160

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

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

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

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

                      modelBuilder.Entity("Microting.eForm.Infrastructure.Data.Entities.option_versions", b =>
                          {
                              b.Property<int>("Id")
                                  .ValueGeneratedOnAdd()
                                  .HasAnnotation(autoIDGenStrategy, autoIDGenStrategyValue);
          eFormCore/Migrations/20200120164857_AddingTranslationsToInSight.Designer.cs on lines 1436..1472
          eFormCore/Migrations/20200120171433_AddingMicrotingUidToInSight.Designer.cs on lines 1444..1480
          eFormCore/Migrations/20200122103229_ChangingValueToBeStringForAnswerValue.Designer.cs on lines 1420..1456

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

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

                      modelBuilder.Entity("Microting.eForm.Infrastructure.Data.Entities.options", b =>
                          {
                              b.Property<int>("Id")
                                  .ValueGeneratedOnAdd()
                                  .HasAnnotation(autoIDGenStrategy, autoIDGenStrategyValue);
          eFormCore/Migrations/20200224084023_AddingAttributesToUnits.Designer.cs on lines 1460..1496
          eFormCore/Migrations/20200224092512_AddingMoreAttributesToUnits.Designer.cs on lines 1460..1496

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

          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.option_versions", b =>
                          {
                              b.Property<int>("Id")
                                  .ValueGeneratedOnAdd()
                                  .HasAnnotation(autoIDGenStrategy, autoIDGenStrategyValue);
          eFormCore/Migrations/20200120093951_CleanupInSight.Designer.cs on lines 1322..1358
          eFormCore/Migrations/20200120164857_AddingTranslationsToInSight.Designer.cs on lines 1436..1472
          eFormCore/Migrations/20200120171433_AddingMicrotingUidToInSight.Designer.cs on lines 1444..1480

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

          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.option_versions", b =>
                          {
                              b.Property<int>("Id")
                                  .ValueGeneratedOnAdd()
                                  .HasAnnotation(autoIDGenStrategy, autoIDGenStrategyValue);
          eFormCore/Migrations/20200120093951_CleanupInSight.Designer.cs on lines 1322..1358
          eFormCore/Migrations/20200120171433_AddingMicrotingUidToInSight.Designer.cs on lines 1444..1480
          eFormCore/Migrations/20200122103229_ChangingValueToBeStringForAnswerValue.Designer.cs on lines 1420..1456

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

          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.option_versions", b =>
                          {
                              b.Property<int>("Id")
                                  .ValueGeneratedOnAdd()
                                  .HasAnnotation(autoIDGenStrategy, autoIDGenStrategyValue);
          eFormCore/Migrations/20200120093951_CleanupInSight.Designer.cs on lines 1322..1358
          eFormCore/Migrations/20200120164857_AddingTranslationsToInSight.Designer.cs on lines 1436..1472
          eFormCore/Migrations/20200122103229_ChangingValueToBeStringForAnswerValue.Designer.cs on lines 1420..1456

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

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

                      modelBuilder.Entity("Microting.eForm.Infrastructure.Data.Entities.options", b =>
                          {
                              b.Property<int>("Id")
                                  .ValueGeneratedOnAdd()
                                  .HasAnnotation(autoIDGenStrategy, autoIDGenStrategyValue);
          eFormCore/Migrations/20200222140656_AddinDisplayIndexToOptions.Designer.cs on lines 1460..1496
          eFormCore/Migrations/20200224084023_AddingAttributesToUnits.Designer.cs on lines 1460..1496

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

          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