microting/eform-sdk-dotnet

View on GitHub
eFormSDK.CheckLists.Tests/FieldValuesUTest.cs

Summary

Maintainability
F
2 wks
Test Coverage

File FieldValuesUTest.cs has 688 lines of code (exceeds 250 allowed). Consider refactoring.
Open

using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
Severity: Major
Found in eFormSDK.CheckLists.Tests/FieldValuesUTest.cs - About 1 day to fix

    Method FieldValues_Update_DoesUpdate has 239 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            [Test]
            public async Task FieldValues_Update_DoesUpdate()
            {
                short shortMinValue = Int16.MinValue;
                short shortmaxValue = Int16.MaxValue;
    Severity: Major
    Found in eFormSDK.CheckLists.Tests/FieldValuesUTest.cs - About 1 day to fix

      Method FieldValues_Delete_DoesSetWorkflowStateToRemoved has 223 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              [Test]
              public async Task FieldValues_Delete_DoesSetWorkflowStateToRemoved()
              {
                  short shortMinValue = Int16.MinValue;
                  short shortmaxValue = Int16.MaxValue;
      Severity: Major
      Found in eFormSDK.CheckLists.Tests/FieldValuesUTest.cs - About 1 day to fix

        Method FieldValues_Create_DoesCreate has 204 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                [Test]
                public async Task FieldValues_Create_DoesCreate()
                {
                    short shortMinValue = Int16.MinValue;
                    short shortmaxValue = Int16.MaxValue;
        Severity: Major
        Found in eFormSDK.CheckLists.Tests/FieldValuesUTest.cs - About 1 day to fix

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

                      Field field = new Field
                      {
                          Color = Guid.NewGuid().ToString(),
                          Custom = Guid.NewGuid().ToString(),
                          Description = Guid.NewGuid().ToString(),
          Severity: Major
          Found in eFormSDK.CheckLists.Tests/FieldValuesUTest.cs and 5 other locations - About 1 day to fix
          eFormSDK.CheckLists.Tests/FieldValuesUTest.cs on lines 114..147
          eFormSDK.CheckLists.Tests/FieldValuesUTest.cs on lines 616..649
          eFormSDK.CheckLists.Tests/FieldsUTest.cs on lines 115..148
          eFormSDK.CheckLists.Tests/FieldsUTest.cs on lines 353..386
          eFormSDK.CheckLists.Tests/FieldsUTest.cs on lines 690..723

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

          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

                      Field field = new Field
                      {
                          Color = Guid.NewGuid().ToString(),
                          Custom = Guid.NewGuid().ToString(),
                          Description = Guid.NewGuid().ToString(),
          Severity: Major
          Found in eFormSDK.CheckLists.Tests/FieldValuesUTest.cs and 5 other locations - About 1 day to fix
          eFormSDK.CheckLists.Tests/FieldValuesUTest.cs on lines 114..147
          eFormSDK.CheckLists.Tests/FieldValuesUTest.cs on lines 346..379
          eFormSDK.CheckLists.Tests/FieldsUTest.cs on lines 115..148
          eFormSDK.CheckLists.Tests/FieldsUTest.cs on lines 353..386
          eFormSDK.CheckLists.Tests/FieldsUTest.cs on lines 690..723

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

          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

                      Field field = new Field
                      {
                          Color = Guid.NewGuid().ToString(),
                          Custom = Guid.NewGuid().ToString(),
                          Description = Guid.NewGuid().ToString(),
          Severity: Major
          Found in eFormSDK.CheckLists.Tests/FieldValuesUTest.cs and 5 other locations - About 1 day to fix
          eFormSDK.CheckLists.Tests/FieldValuesUTest.cs on lines 346..379
          eFormSDK.CheckLists.Tests/FieldValuesUTest.cs on lines 616..649
          eFormSDK.CheckLists.Tests/FieldsUTest.cs on lines 115..148
          eFormSDK.CheckLists.Tests/FieldsUTest.cs on lines 353..386
          eFormSDK.CheckLists.Tests/FieldsUTest.cs on lines 690..723

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

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

                      CheckList checklist = new CheckList
                      {
                          Color = Guid.NewGuid().ToString(),
                          Custom = Guid.NewGuid().ToString(),
                          Description = Guid.NewGuid().ToString(),
          Severity: Major
          Found in eFormSDK.CheckLists.Tests/FieldValuesUTest.cs and 17 other locations - About 7 hrs to fix
          eFormSDK.CheckLists.Tests/CasesUTest.cs on lines 79..110
          eFormSDK.CheckLists.Tests/CasesUTest.cs on lines 249..280
          eFormSDK.CheckLists.Tests/CasesUTest.cs on lines 485..516
          eFormSDK.CheckLists.Tests/CheckListSitesUTest.cs on lines 59..90
          eFormSDK.CheckLists.Tests/CheckListSitesUTest.cs on lines 157..188
          eFormSDK.CheckLists.Tests/CheckListSitesUTest.cs on lines 274..305
          eFormSDK.CheckLists.Tests/CheckListValuesUTest.cs on lines 79..110
          eFormSDK.CheckLists.Tests/CheckListValuesUTest.cs on lines 220..251
          eFormSDK.CheckLists.Tests/CheckListValuesUTest.cs on lines 377..408
          eFormSDK.CheckLists.Tests/CheckListsUTest.cs on lines 52..83
          eFormSDK.CheckLists.Tests/CheckListsUTest.cs on lines 223..254
          eFormSDK.CheckLists.Tests/CheckListsUTest.cs on lines 496..527
          eFormSDK.CheckLists.Tests/FieldValuesUTest.cs on lines 297..328
          eFormSDK.CheckLists.Tests/FieldValuesUTest.cs on lines 567..598
          eFormSDK.CheckLists.Tests/FieldsUTest.cs on lines 66..97
          eFormSDK.CheckLists.Tests/FieldsUTest.cs on lines 305..336
          eFormSDK.CheckLists.Tests/FieldsUTest.cs on lines 642..673

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

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

                      CheckList checklist = new CheckList
                      {
                          Color = Guid.NewGuid().ToString(),
                          Custom = Guid.NewGuid().ToString(),
                          Description = Guid.NewGuid().ToString(),
          Severity: Major
          Found in eFormSDK.CheckLists.Tests/FieldValuesUTest.cs and 17 other locations - About 7 hrs to fix
          eFormSDK.CheckLists.Tests/CasesUTest.cs on lines 79..110
          eFormSDK.CheckLists.Tests/CasesUTest.cs on lines 249..280
          eFormSDK.CheckLists.Tests/CasesUTest.cs on lines 485..516
          eFormSDK.CheckLists.Tests/CheckListSitesUTest.cs on lines 59..90
          eFormSDK.CheckLists.Tests/CheckListSitesUTest.cs on lines 157..188
          eFormSDK.CheckLists.Tests/CheckListSitesUTest.cs on lines 274..305
          eFormSDK.CheckLists.Tests/CheckListValuesUTest.cs on lines 79..110
          eFormSDK.CheckLists.Tests/CheckListValuesUTest.cs on lines 220..251
          eFormSDK.CheckLists.Tests/CheckListValuesUTest.cs on lines 377..408
          eFormSDK.CheckLists.Tests/CheckListsUTest.cs on lines 52..83
          eFormSDK.CheckLists.Tests/CheckListsUTest.cs on lines 223..254
          eFormSDK.CheckLists.Tests/CheckListsUTest.cs on lines 496..527
          eFormSDK.CheckLists.Tests/FieldValuesUTest.cs on lines 66..97
          eFormSDK.CheckLists.Tests/FieldValuesUTest.cs on lines 567..598
          eFormSDK.CheckLists.Tests/FieldsUTest.cs on lines 66..97
          eFormSDK.CheckLists.Tests/FieldsUTest.cs on lines 305..336
          eFormSDK.CheckLists.Tests/FieldsUTest.cs on lines 642..673

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

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

                      CheckList checklist = new CheckList
                      {
                          Color = Guid.NewGuid().ToString(),
                          Custom = Guid.NewGuid().ToString(),
                          Description = Guid.NewGuid().ToString(),
          Severity: Major
          Found in eFormSDK.CheckLists.Tests/FieldValuesUTest.cs and 17 other locations - About 7 hrs to fix
          eFormSDK.CheckLists.Tests/CasesUTest.cs on lines 79..110
          eFormSDK.CheckLists.Tests/CasesUTest.cs on lines 249..280
          eFormSDK.CheckLists.Tests/CasesUTest.cs on lines 485..516
          eFormSDK.CheckLists.Tests/CheckListSitesUTest.cs on lines 59..90
          eFormSDK.CheckLists.Tests/CheckListSitesUTest.cs on lines 157..188
          eFormSDK.CheckLists.Tests/CheckListSitesUTest.cs on lines 274..305
          eFormSDK.CheckLists.Tests/CheckListValuesUTest.cs on lines 79..110
          eFormSDK.CheckLists.Tests/CheckListValuesUTest.cs on lines 220..251
          eFormSDK.CheckLists.Tests/CheckListValuesUTest.cs on lines 377..408
          eFormSDK.CheckLists.Tests/CheckListsUTest.cs on lines 52..83
          eFormSDK.CheckLists.Tests/CheckListsUTest.cs on lines 223..254
          eFormSDK.CheckLists.Tests/CheckListsUTest.cs on lines 496..527
          eFormSDK.CheckLists.Tests/FieldValuesUTest.cs on lines 66..97
          eFormSDK.CheckLists.Tests/FieldValuesUTest.cs on lines 297..328
          eFormSDK.CheckLists.Tests/FieldsUTest.cs on lines 66..97
          eFormSDK.CheckLists.Tests/FieldsUTest.cs on lines 305..336
          eFormSDK.CheckLists.Tests/FieldsUTest.cs on lines 642..673

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

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

                      UploadedData uploadedData = new UploadedData
                      {
                          Checksum = Guid.NewGuid().ToString(),
                          Extension = Guid.NewGuid().ToString(),
                          Local = (short)rnd.Next(shortMinValue, shortmaxValue),
          Severity: Major
          Found in eFormSDK.CheckLists.Tests/FieldValuesUTest.cs and 5 other locations - About 2 hrs to fix
          eFormSDK.CheckLists.Tests/FieldValuesUTest.cs on lines 419..431
          eFormSDK.CheckLists.Tests/FieldValuesUTest.cs on lines 689..701
          eFormSDK.CheckLists.Tests/UploadedDataUTest.cs on lines 49..61
          eFormSDK.CheckLists.Tests/UploadedDataUTest.cs on lines 122..134
          eFormSDK.CheckLists.Tests/UploadedDataUTest.cs on lines 233..245

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

          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

                      UploadedData uploadedData = new UploadedData
                      {
                          Checksum = Guid.NewGuid().ToString(),
                          Extension = Guid.NewGuid().ToString(),
                          Local = (short)rnd.Next(shortMinValue, shortmaxValue),
          Severity: Major
          Found in eFormSDK.CheckLists.Tests/FieldValuesUTest.cs and 5 other locations - About 2 hrs to fix
          eFormSDK.CheckLists.Tests/FieldValuesUTest.cs on lines 188..200
          eFormSDK.CheckLists.Tests/FieldValuesUTest.cs on lines 419..431
          eFormSDK.CheckLists.Tests/UploadedDataUTest.cs on lines 49..61
          eFormSDK.CheckLists.Tests/UploadedDataUTest.cs on lines 122..134
          eFormSDK.CheckLists.Tests/UploadedDataUTest.cs on lines 233..245

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

          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

                      UploadedData uploadedData = new UploadedData
                      {
                          Checksum = Guid.NewGuid().ToString(),
                          Extension = Guid.NewGuid().ToString(),
                          Local = (short)rnd.Next(shortMinValue, shortmaxValue),
          Severity: Major
          Found in eFormSDK.CheckLists.Tests/FieldValuesUTest.cs and 5 other locations - About 2 hrs to fix
          eFormSDK.CheckLists.Tests/FieldValuesUTest.cs on lines 188..200
          eFormSDK.CheckLists.Tests/FieldValuesUTest.cs on lines 689..701
          eFormSDK.CheckLists.Tests/UploadedDataUTest.cs on lines 49..61
          eFormSDK.CheckLists.Tests/UploadedDataUTest.cs on lines 122..134
          eFormSDK.CheckLists.Tests/UploadedDataUTest.cs on lines 233..245

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

          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

                      FieldValue fieldValue = new FieldValue
                      {
                          Accuracy = Guid.NewGuid().ToString(),
                          Altitude = Guid.NewGuid().ToString(),
                          Date = DateTime.UtcNow,
          Severity: Major
          Found in eFormSDK.CheckLists.Tests/FieldValuesUTest.cs and 2 other locations - About 2 hrs to fix
          eFormSDK.CheckLists.Tests/FieldValuesUTest.cs on lines 203..218
          eFormSDK.CheckLists.Tests/FieldValuesUTest.cs on lines 704..719

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

          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

                      FieldValue fieldValue = new FieldValue
                      {
                          Accuracy = Guid.NewGuid().ToString(),
                          Altitude = Guid.NewGuid().ToString(),
                          Date = DateTime.UtcNow,
          Severity: Major
          Found in eFormSDK.CheckLists.Tests/FieldValuesUTest.cs and 2 other locations - About 2 hrs to fix
          eFormSDK.CheckLists.Tests/FieldValuesUTest.cs on lines 203..218
          eFormSDK.CheckLists.Tests/FieldValuesUTest.cs on lines 434..449

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

          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

                      FieldValue fieldValue = new FieldValue
                      {
                          Accuracy = Guid.NewGuid().ToString(),
                          Altitude = Guid.NewGuid().ToString(),
                          Date = DateTime.UtcNow,
          Severity: Major
          Found in eFormSDK.CheckLists.Tests/FieldValuesUTest.cs and 2 other locations - About 2 hrs to fix
          eFormSDK.CheckLists.Tests/FieldValuesUTest.cs on lines 434..449
          eFormSDK.CheckLists.Tests/FieldValuesUTest.cs on lines 704..719

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

          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

                      Worker worker = new Worker
                      {
                          Email = Guid.NewGuid().ToString(),
                          FirstName = Guid.NewGuid().ToString(),
                          LastName = Guid.NewGuid().ToString(),
          Severity: Major
          Found in eFormSDK.CheckLists.Tests/FieldValuesUTest.cs and 8 other locations - About 55 mins to fix
          eFormSDK.CheckLists.Tests/CasesUTest.cs on lines 68..76
          eFormSDK.CheckLists.Tests/CasesUTest.cs on lines 238..246
          eFormSDK.CheckLists.Tests/CasesUTest.cs on lines 474..482
          eFormSDK.CheckLists.Tests/CheckListValuesUTest.cs on lines 68..76
          eFormSDK.CheckLists.Tests/CheckListValuesUTest.cs on lines 209..217
          eFormSDK.CheckLists.Tests/CheckListValuesUTest.cs on lines 366..374
          eFormSDK.CheckLists.Tests/FieldValuesUTest.cs on lines 151..159
          eFormSDK.CheckLists.Tests/FieldValuesUTest.cs on lines 652..660

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

          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

                      Worker worker = new Worker
                      {
                          Email = Guid.NewGuid().ToString(),
                          FirstName = Guid.NewGuid().ToString(),
                          LastName = Guid.NewGuid().ToString(),
          Severity: Major
          Found in eFormSDK.CheckLists.Tests/FieldValuesUTest.cs and 8 other locations - About 55 mins to fix
          eFormSDK.CheckLists.Tests/CasesUTest.cs on lines 68..76
          eFormSDK.CheckLists.Tests/CasesUTest.cs on lines 238..246
          eFormSDK.CheckLists.Tests/CasesUTest.cs on lines 474..482
          eFormSDK.CheckLists.Tests/CheckListValuesUTest.cs on lines 68..76
          eFormSDK.CheckLists.Tests/CheckListValuesUTest.cs on lines 209..217
          eFormSDK.CheckLists.Tests/CheckListValuesUTest.cs on lines 366..374
          eFormSDK.CheckLists.Tests/FieldValuesUTest.cs on lines 151..159
          eFormSDK.CheckLists.Tests/FieldValuesUTest.cs on lines 382..390

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

          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

                      Worker worker = new Worker
                      {
                          Email = Guid.NewGuid().ToString(),
                          FirstName = Guid.NewGuid().ToString(),
                          LastName = Guid.NewGuid().ToString(),
          Severity: Major
          Found in eFormSDK.CheckLists.Tests/FieldValuesUTest.cs and 8 other locations - About 55 mins to fix
          eFormSDK.CheckLists.Tests/CasesUTest.cs on lines 68..76
          eFormSDK.CheckLists.Tests/CasesUTest.cs on lines 238..246
          eFormSDK.CheckLists.Tests/CasesUTest.cs on lines 474..482
          eFormSDK.CheckLists.Tests/CheckListValuesUTest.cs on lines 68..76
          eFormSDK.CheckLists.Tests/CheckListValuesUTest.cs on lines 209..217
          eFormSDK.CheckLists.Tests/CheckListValuesUTest.cs on lines 366..374
          eFormSDK.CheckLists.Tests/FieldValuesUTest.cs on lines 382..390
          eFormSDK.CheckLists.Tests/FieldValuesUTest.cs on lines 652..660

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

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

                      Unit unit = new Unit
                      {
                          CustomerNo = rnd.Next(1, 255),
                          MicrotingUid = rnd.Next(1, 255),
                          OtpCode = rnd.Next(1, 255),
          Severity: Major
          Found in eFormSDK.CheckLists.Tests/FieldValuesUTest.cs and 29 other locations - About 40 mins to fix
          eFormSDK.CheckLists.Tests/CasesUTest.cs on lines 59..65
          eFormSDK.CheckLists.Tests/CasesUTest.cs on lines 229..235
          eFormSDK.CheckLists.Tests/CasesUTest.cs on lines 465..471
          eFormSDK.CheckLists.Tests/CheckListValuesUTest.cs on lines 59..65
          eFormSDK.CheckLists.Tests/CheckListValuesUTest.cs on lines 200..206
          eFormSDK.CheckLists.Tests/CheckListValuesUTest.cs on lines 357..363
          eFormSDK.CheckLists.Tests/FieldValuesUTest.cs on lines 57..63
          eFormSDK.CheckLists.Tests/FieldValuesUTest.cs on lines 288..294
          eFormSDK.CheckLists.Tests/FieldsUTest.cs on lines 57..63
          eFormSDK.CheckLists.Tests/FieldsUTest.cs on lines 296..302
          eFormSDK.CheckLists.Tests/FieldsUTest.cs on lines 633..639
          eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 63..69
          eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 235..241
          eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 425..431
          eFormSDK.InSight.Tests/AnswersUTest.cs on lines 323..329
          eFormSDK.InSight.Tests/OptionTranslationUTest.cs on lines 78..84
          eFormSDK.InSight.Tests/OptionTranslationUTest.cs on lines 166..172
          eFormSDK.InSight.Tests/OptionTranslationUTest.cs on lines 281..287
          eFormSDK.InSight.Tests/OptionTranslationUTest.cs on lines 290..296
          eFormSDK.InSight.Tests/OptionTranslationUTest.cs on lines 430..436
          eFormSDK.InSight.Tests/OptionTranslationUTest.cs on lines 439..445
          eFormSDK.InSight.Tests/OptionTranslationUTest.cs on lines 575..581
          eFormSDK.InSight.Tests/OptionTranslationUTest.cs on lines 584..590
          eFormSDK.InSight.Tests/OptionTranslationUTest.cs on lines 724..730
          eFormSDK.InSight.Tests/OptionTranslationUTest.cs on lines 733..739
          eFormSDK.InSight.Tests/OptionTranslationUTest.cs on lines 843..849
          eFormSDK.InSight.Tests/OptionsUTest.cs on lines 76..82
          eFormSDK.InSight.Tests/OptionsUTest.cs on lines 154..160
          eFormSDK.InSight.Tests/OptionsUTest.cs on lines 253..259

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

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

                      Unit unit = new Unit
                      {
                          CustomerNo = rnd.Next(1, 255),
                          MicrotingUid = rnd.Next(1, 255),
                          OtpCode = rnd.Next(1, 255),
          Severity: Major
          Found in eFormSDK.CheckLists.Tests/FieldValuesUTest.cs and 29 other locations - About 40 mins to fix
          eFormSDK.CheckLists.Tests/CasesUTest.cs on lines 59..65
          eFormSDK.CheckLists.Tests/CasesUTest.cs on lines 229..235
          eFormSDK.CheckLists.Tests/CasesUTest.cs on lines 465..471
          eFormSDK.CheckLists.Tests/CheckListValuesUTest.cs on lines 59..65
          eFormSDK.CheckLists.Tests/CheckListValuesUTest.cs on lines 200..206
          eFormSDK.CheckLists.Tests/CheckListValuesUTest.cs on lines 357..363
          eFormSDK.CheckLists.Tests/FieldValuesUTest.cs on lines 288..294
          eFormSDK.CheckLists.Tests/FieldValuesUTest.cs on lines 558..564
          eFormSDK.CheckLists.Tests/FieldsUTest.cs on lines 57..63
          eFormSDK.CheckLists.Tests/FieldsUTest.cs on lines 296..302
          eFormSDK.CheckLists.Tests/FieldsUTest.cs on lines 633..639
          eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 63..69
          eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 235..241
          eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 425..431
          eFormSDK.InSight.Tests/AnswersUTest.cs on lines 323..329
          eFormSDK.InSight.Tests/OptionTranslationUTest.cs on lines 78..84
          eFormSDK.InSight.Tests/OptionTranslationUTest.cs on lines 166..172
          eFormSDK.InSight.Tests/OptionTranslationUTest.cs on lines 281..287
          eFormSDK.InSight.Tests/OptionTranslationUTest.cs on lines 290..296
          eFormSDK.InSight.Tests/OptionTranslationUTest.cs on lines 430..436
          eFormSDK.InSight.Tests/OptionTranslationUTest.cs on lines 439..445
          eFormSDK.InSight.Tests/OptionTranslationUTest.cs on lines 575..581
          eFormSDK.InSight.Tests/OptionTranslationUTest.cs on lines 584..590
          eFormSDK.InSight.Tests/OptionTranslationUTest.cs on lines 724..730
          eFormSDK.InSight.Tests/OptionTranslationUTest.cs on lines 733..739
          eFormSDK.InSight.Tests/OptionTranslationUTest.cs on lines 843..849
          eFormSDK.InSight.Tests/OptionsUTest.cs on lines 76..82
          eFormSDK.InSight.Tests/OptionsUTest.cs on lines 154..160
          eFormSDK.InSight.Tests/OptionsUTest.cs on lines 253..259

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

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

                      Unit unit = new Unit
                      {
                          CustomerNo = rnd.Next(1, 255),
                          MicrotingUid = rnd.Next(1, 255),
                          OtpCode = rnd.Next(1, 255),
          Severity: Major
          Found in eFormSDK.CheckLists.Tests/FieldValuesUTest.cs and 29 other locations - About 40 mins to fix
          eFormSDK.CheckLists.Tests/CasesUTest.cs on lines 59..65
          eFormSDK.CheckLists.Tests/CasesUTest.cs on lines 229..235
          eFormSDK.CheckLists.Tests/CasesUTest.cs on lines 465..471
          eFormSDK.CheckLists.Tests/CheckListValuesUTest.cs on lines 59..65
          eFormSDK.CheckLists.Tests/CheckListValuesUTest.cs on lines 200..206
          eFormSDK.CheckLists.Tests/CheckListValuesUTest.cs on lines 357..363
          eFormSDK.CheckLists.Tests/FieldValuesUTest.cs on lines 57..63
          eFormSDK.CheckLists.Tests/FieldValuesUTest.cs on lines 558..564
          eFormSDK.CheckLists.Tests/FieldsUTest.cs on lines 57..63
          eFormSDK.CheckLists.Tests/FieldsUTest.cs on lines 296..302
          eFormSDK.CheckLists.Tests/FieldsUTest.cs on lines 633..639
          eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 63..69
          eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 235..241
          eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 425..431
          eFormSDK.InSight.Tests/AnswersUTest.cs on lines 323..329
          eFormSDK.InSight.Tests/OptionTranslationUTest.cs on lines 78..84
          eFormSDK.InSight.Tests/OptionTranslationUTest.cs on lines 166..172
          eFormSDK.InSight.Tests/OptionTranslationUTest.cs on lines 281..287
          eFormSDK.InSight.Tests/OptionTranslationUTest.cs on lines 290..296
          eFormSDK.InSight.Tests/OptionTranslationUTest.cs on lines 430..436
          eFormSDK.InSight.Tests/OptionTranslationUTest.cs on lines 439..445
          eFormSDK.InSight.Tests/OptionTranslationUTest.cs on lines 575..581
          eFormSDK.InSight.Tests/OptionTranslationUTest.cs on lines 584..590
          eFormSDK.InSight.Tests/OptionTranslationUTest.cs on lines 724..730
          eFormSDK.InSight.Tests/OptionTranslationUTest.cs on lines 733..739
          eFormSDK.InSight.Tests/OptionTranslationUTest.cs on lines 843..849
          eFormSDK.InSight.Tests/OptionsUTest.cs on lines 76..82
          eFormSDK.InSight.Tests/OptionsUTest.cs on lines 154..160
          eFormSDK.InSight.Tests/OptionsUTest.cs on lines 253..259

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

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

                      EntityGroup entityGroup = new EntityGroup
                      {
                          Name = Guid.NewGuid().ToString(),
                          Type = Guid.NewGuid().ToString(),
                          MicrotingUid = Guid.NewGuid().ToString()
          Severity: Major
          Found in eFormSDK.CheckLists.Tests/FieldValuesUTest.cs and 11 other locations - About 30 mins to fix
          eFormSDK.CheckLists.Tests/EntityGroupsUTest.cs on lines 43..48
          eFormSDK.CheckLists.Tests/EntityGroupsUTest.cs on lines 88..93
          eFormSDK.CheckLists.Tests/EntityGroupsUTest.cs on lines 153..158
          eFormSDK.CheckLists.Tests/EntityItemsUTest.cs on lines 50..55
          eFormSDK.CheckLists.Tests/EntityItemsUTest.cs on lines 122..127
          eFormSDK.CheckLists.Tests/EntityItemsUTest.cs on lines 223..228
          eFormSDK.CheckLists.Tests/FieldValuesUTest.cs on lines 100..105
          eFormSDK.CheckLists.Tests/FieldValuesUTest.cs on lines 331..336
          eFormSDK.CheckLists.Tests/FieldsUTest.cs on lines 100..105
          eFormSDK.CheckLists.Tests/FieldsUTest.cs on lines 339..344
          eFormSDK.CheckLists.Tests/FieldsUTest.cs on lines 676..681

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

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

                      EntityGroup entityGroup = new EntityGroup
                      {
                          Name = Guid.NewGuid().ToString(),
                          Type = Guid.NewGuid().ToString(),
                          MicrotingUid = Guid.NewGuid().ToString()
          Severity: Major
          Found in eFormSDK.CheckLists.Tests/FieldValuesUTest.cs and 11 other locations - About 30 mins to fix
          eFormSDK.CheckLists.Tests/EntityGroupsUTest.cs on lines 43..48
          eFormSDK.CheckLists.Tests/EntityGroupsUTest.cs on lines 88..93
          eFormSDK.CheckLists.Tests/EntityGroupsUTest.cs on lines 153..158
          eFormSDK.CheckLists.Tests/EntityItemsUTest.cs on lines 50..55
          eFormSDK.CheckLists.Tests/EntityItemsUTest.cs on lines 122..127
          eFormSDK.CheckLists.Tests/EntityItemsUTest.cs on lines 223..228
          eFormSDK.CheckLists.Tests/FieldValuesUTest.cs on lines 100..105
          eFormSDK.CheckLists.Tests/FieldValuesUTest.cs on lines 601..606
          eFormSDK.CheckLists.Tests/FieldsUTest.cs on lines 100..105
          eFormSDK.CheckLists.Tests/FieldsUTest.cs on lines 339..344
          eFormSDK.CheckLists.Tests/FieldsUTest.cs on lines 676..681

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

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

                      EntityGroup entityGroup = new EntityGroup
                      {
                          Name = Guid.NewGuid().ToString(),
                          Type = Guid.NewGuid().ToString(),
                          MicrotingUid = Guid.NewGuid().ToString()
          Severity: Major
          Found in eFormSDK.CheckLists.Tests/FieldValuesUTest.cs and 11 other locations - About 30 mins to fix
          eFormSDK.CheckLists.Tests/EntityGroupsUTest.cs on lines 43..48
          eFormSDK.CheckLists.Tests/EntityGroupsUTest.cs on lines 88..93
          eFormSDK.CheckLists.Tests/EntityGroupsUTest.cs on lines 153..158
          eFormSDK.CheckLists.Tests/EntityItemsUTest.cs on lines 50..55
          eFormSDK.CheckLists.Tests/EntityItemsUTest.cs on lines 122..127
          eFormSDK.CheckLists.Tests/EntityItemsUTest.cs on lines 223..228
          eFormSDK.CheckLists.Tests/FieldValuesUTest.cs on lines 331..336
          eFormSDK.CheckLists.Tests/FieldValuesUTest.cs on lines 601..606
          eFormSDK.CheckLists.Tests/FieldsUTest.cs on lines 100..105
          eFormSDK.CheckLists.Tests/FieldsUTest.cs on lines 339..344
          eFormSDK.CheckLists.Tests/FieldsUTest.cs on lines 676..681

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

          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

          There are no issues that match your filters.

          Category
          Status