microting/eform-sdk-dotnet

View on GitHub

Showing 3,203 of 3,219 total issues

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

        [Test]
        public async Task Core_eFormSimpleSaveButtonFormCreateInDB_ReturnseFormId()
        {
            string xmlstring = @"
                <?xml version='1.0' encoding='UTF-8'?>
eFormSDK.Integration.CheckLists.CoreTests/CoreTesteFormCreateInDB.cs on lines 1926..2008

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

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

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

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

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

Refactorings

Further Reading

Method Core_Template_TemplateItemReadAll_DoesReturnSortedTemplates has 359 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        [Test]
        public async Task Core_Template_TemplateItemReadAll_DoesReturnSortedTemplates()
        {
            // Arrance

Severity: Major
Found in eFormSDK.Integration.CheckLists.CoreTests/CoreTesteForm.cs - About 1 day to fix

    File SqlControllerTestSite.cs has 762 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    using eFormCore;
    using Microsoft.EntityFrameworkCore;
    using NUnit.Framework;
    using System;
    using System.Collections.Generic;
    Severity: Major
    Found in eFormSDK.Integration.Tests/SqlControllerTestSite.cs - About 1 day to fix

      Method Up has 356 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

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

        Method AddDefaultLanguages has 350 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                public static async Task AddDefaultLanguages(MicrotingDbContext dbContext)
                {
        
                    if (dbContext.Languages.FirstOrDefault(x => x.Name == "Danish") != null)
                    {
        Severity: Major
        Found in eFormCore/Infrastructure/Data/Entities/Language.cs - About 1 day to fix

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

                  [Test]
                  public async Task Core_Advanced_FieldRead_ReadsFieldId()
                  {
                      // Arrance
          
          
          eFormSDK.Integration.Base.SqlControllerTests/SqlControllerTestField.cs on lines 68..145

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

          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

                  [Test]
                  public async Task SQL_Check_FieldRead_ReturnsField()
                  {
                      // Arrance
          
          
          eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 1987..2064

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

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

                  [Test]
                  public async Task question_Delete_DoesDelete_QuestionSetTrue_BackButtonEnabledTrue()
                  {
                      // Arrange
                      string name = Guid.NewGuid().ToString();
          Severity: Major
          Found in eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs and 9 other locations - About 1 day to fix
          eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4326..4390
          eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4392..4456
          eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4460..4524
          eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4526..4590
          eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4659..4723
          eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4728..4792
          eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4794..4857
          eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4859..4922
          eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4924..4987

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

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

                  [Test]
                  public async Task question_Delete_DoesDelete_AllFalse()
                  {
                      // Arrange
                      string name = Guid.NewGuid().ToString();
          Severity: Major
          Found in eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs and 9 other locations - About 1 day to fix
          eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4392..4456
          eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4460..4524
          eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4526..4590
          eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4592..4657
          eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4659..4723
          eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4728..4792
          eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4794..4857
          eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4859..4922
          eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4924..4987

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

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

                  [Test]
                  public async Task question_Delete_DoesDelete_QuestionSetTrue_ValidDisplayTrue()
                  {
                      // Arrange
                      string name = Guid.NewGuid().ToString();
          Severity: Major
          Found in eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs and 9 other locations - About 1 day to fix
          eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4326..4390
          eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4392..4456
          eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4460..4524
          eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4592..4657
          eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4659..4723
          eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4728..4792
          eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4794..4857
          eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4859..4922
          eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4924..4987

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

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

                  [Test]
                  public async Task question_Delete_DoesDelete_QuestionSetFalse_BackButtonEnabledTrue()
                  {
                      // Arrange
                      string name = Guid.NewGuid().ToString();
          Severity: Major
          Found in eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs and 9 other locations - About 1 day to fix
          eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4326..4390
          eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4392..4456
          eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4460..4524
          eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4526..4590
          eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4592..4657
          eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4659..4723
          eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4728..4792
          eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4794..4857
          eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4924..4987

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

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

                  [Test]
                  public async Task question_Delete_DoesDelete_QuestionSetTrue_ImageTrue()
                  {
                      // Arrange
                      string name = Guid.NewGuid().ToString();
          Severity: Major
          Found in eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs and 9 other locations - About 1 day to fix
          eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4326..4390
          eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4392..4456
          eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4460..4524
          eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4526..4590
          eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4592..4657
          eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4728..4792
          eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4794..4857
          eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4859..4922
          eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4924..4987

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

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

                  [Test]
                  public async Task question_Delete_DoesDelete_QuestionSetFalse_ImageTrue()
                  {
                      // Arrange
                      string name = Guid.NewGuid().ToString();
          Severity: Major
          Found in eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs and 9 other locations - About 1 day to fix
          eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4326..4390
          eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4392..4456
          eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4460..4524
          eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4526..4590
          eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4592..4657
          eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4659..4723
          eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4728..4792
          eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4794..4857
          eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4859..4922

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

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

                  [Test]
                  public async Task question_Delete_DoesDelete_QuestionSetFalse_ValidDisplayTrue()
                  {
                      // Arrange
                      string name = Guid.NewGuid().ToString();
          Severity: Major
          Found in eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs and 9 other locations - About 1 day to fix
          eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4326..4390
          eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4392..4456
          eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4460..4524
          eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4526..4590
          eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4592..4657
          eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4659..4723
          eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4728..4792
          eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4859..4922
          eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4924..4987

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

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

                  [Test]
                  public async Task question_Delete_DoesDelete_AllTrue()
                  {
                      // Arrange
                      string name = Guid.NewGuid().ToString();
          Severity: Major
          Found in eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs and 9 other locations - About 1 day to fix
          eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4326..4390
          eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4460..4524
          eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4526..4590
          eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4592..4657
          eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4659..4723
          eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4728..4792
          eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4794..4857
          eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4859..4922
          eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4924..4987

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

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

                  [Test]
                  public async Task question_Delete_DoesDelete_QuestionSetTrue_PrioritisedTrue()
                  {
                      // Arrange
                      string name = Guid.NewGuid().ToString();
          Severity: Major
          Found in eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs and 9 other locations - About 1 day to fix
          eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4326..4390
          eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4392..4456
          eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4526..4590
          eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4592..4657
          eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4659..4723
          eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4728..4792
          eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4794..4857
          eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4859..4922
          eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4924..4987

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

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

                  [Test]
                  public async Task question_Delete_DoesDelete_QuestionSetFalse_PrioritisedTrue()
                  {
                      // Arrange
                      string name = Guid.NewGuid().ToString();
          Severity: Major
          Found in eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs and 9 other locations - About 1 day to fix
          eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4326..4390
          eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4392..4456
          eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4460..4524
          eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4526..4590
          eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4592..4657
          eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4659..4723
          eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4794..4857
          eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4859..4922
          eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4924..4987

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

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

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

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

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

          Refactorings

          Further Reading

          File CoreTesteForm.cs has 728 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          using System;
          using System.Collections.Generic;
          using System.IO;
          using System.Linq;
          using System.Reflection;
          Severity: Major
          Found in eFormSDK.Integration.CheckLists.CoreTests/CoreTesteForm.cs - About 1 day to fix

            Method Core_Advanced_UpdateCaseFieldValue_UpdatesFieldValue has 336 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                    [Test]
                    public async Task Core_Advanced_UpdateCaseFieldValue_UpdatesFieldValue()
                    {
                        // Arrange
            
            
            Severity: Major
            Found in eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs - About 1 day to fix

              File SqlControllerTestFieldValue.cs has 726 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
                Category
                Status
                Source
                Language