microting/eform-sdk-dotnet

View on GitHub
eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs

Summary

Maintainability
F
2 wks
Test Coverage

File CoreTestAdvanced.cs has 1402 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/CoreTestAdvanced.cs - About 3 days 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

      Method Core_AdvancedTemplate_Advanced_TemplateFieldReadAll_returnslistofids has 165 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              [Test]
              public async Task Core_AdvancedTemplate_Advanced_TemplateFieldReadAll_returnslistofids()
              {
                  #region Templates
      
      
      Severity: Major
      Found in eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs - About 6 hrs to fix

        Method Core_Advanced_DeleteUploadedData_DeletesData has 148 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

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

          Method Core_AdvancedTemplate_Advanced_TemplateUpdateFieldIdsForColumns_ChangesIdsForColumns has 119 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

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

            Method Core_Unit_Advanced_UnitReadAll_ReturnsListOfUnits has 112 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

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

              Method Core_Advanced_FieldValueReadList_ReturnsList has 88 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      [Test]
                      public async Task Core_Advanced_FieldValueReadList_ReturnsList()
                      {
                          // Arrance
              
              
              Severity: Major
              Found in eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs - About 3 hrs to fix

                Method Core_SiteWorkers_Advanced_SiteWorkerRead_ReadsSiteWorker has 79 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

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

                  Method Core_Unit_Advanced_UnitRead_ReadsUnit has 73 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                          [Test]
                          public async Task Core_Unit_Advanced_UnitRead_ReadsUnit()
                          {
                              // Arrange
                  //            #region Checklist
                  Severity: Major
                  Found in eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs - About 2 hrs to fix

                    Class CoreTestAdvanced has 21 methods (exceeds 20 allowed). Consider refactoring.
                    Open

                        [Parallelizable(ParallelScope.Fixtures)]
                        [TestFixture]
                        public class CoreTestAdvanced : DbTestFixture
                        {
                            private Core sut;
                    Severity: Minor
                    Found in eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs - About 2 hrs to fix

                      Method Core_Advanced_FieldRead_ReadsFieldId has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                              [Test]
                              public async Task Core_Advanced_FieldRead_ReadsFieldId()
                              {
                                  // Arrance
                      
                      
                      Severity: Minor
                      Found in eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs - About 1 hr to fix

                        Method Core_SiteWorkers_Advanced_SiteWorkerDelete_MarksAsRemoved has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

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

                          Method Core_SiteWorkers_Advanced_SiteWorkerCreate_CreatesWorker has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                  [Test] //mangler mock
                                  public async Task Core_SiteWorkers_Advanced_SiteWorkerCreate_CreatesWorker()
                                  {
                                      // Arrange
                          
                          
                          Severity: Minor
                          Found in eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs - About 1 hr to fix

                            Method DoSetup has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                    public override async Task DoSetup()
                                    {
                                        #region Setup SettingsTableContent
                            
                                        DbContextHelper dbContextHelper = new DbContextHelper(ConnectionString);
                            Severity: Minor
                            Found in eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs - About 1 hr to fix

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

                                      [Test]
                                      public async Task Core_AdvancedTemplate_Advanced_TemplateFieldReadAll_returnslistofids()
                                      {
                                          #region Templates
                              
                              
                              Severity: Major
                              Found in eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs and 1 other location - About 6 days to fix
                              eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCaseReadAllShort.cs on lines 690..940

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

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

                              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

                                          Field f6 = await testHelpers.CreateField(0, "barcode", cl2, "ffe4e4", "custom", null, "",
                                              "picture Description",
                                              86, 0, DbContext.FieldTypes.Where(x => x.Type == "comment").First(), 1, 0, 1, 0,
                                              "Picture", 1, 69, "69", "1", 0, 1, null, 0, 1, 0, 0, "", 1).ConfigureAwait(false);
                              eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 234..238
                              eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 244..247
                              eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 253..256
                              eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 262..265
                              eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 271..274
                              eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 289..292
                              eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 298..301
                              eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 307..310
                              eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 316..319

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

                              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

                                          Field f9 = await testHelpers.CreateField(0, "barcode", cl2, "ffe4e4", "custom", null, "",
                                              "picture Description",
                                              89, 0, DbContext.FieldTypes.Where(x => x.Type == "comment").First(), 1, 0, 1, 0,
                                              "Picture", 1, 69, "69", "1", 0, 1, null, 0, 1, 0, 0, "", 1).ConfigureAwait(false);
                              eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 234..238
                              eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 244..247
                              eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 253..256
                              eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 262..265
                              eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 271..274
                              eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 280..283
                              eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 289..292
                              eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 298..301
                              eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 316..319

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

                              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

                                          Field f1 = await testHelpers.CreateField(1, "barcode", cl2, "e2f4fb", "custom", null, "",
                                              "Comment field description",
                                              5, 1, DbContext.FieldTypes.Where(x => x.Type == "comment").First(), 0, 0, 1, 0, "Comment field", 1, 55,
                                              "55", "0", 0, 0, null, 1, 0,
                                              0, 0, "", 49).ConfigureAwait(false);
                              eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 244..247
                              eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 253..256
                              eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 262..265
                              eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 271..274
                              eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 280..283
                              eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 289..292
                              eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 298..301
                              eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 307..310
                              eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 316..319

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

                              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

                                          Field f5 = await testHelpers.CreateField(0, "barcode", cl2, "ffe4e4", "custom", null, "",
                                              "picture Description",
                                              85, 0, DbContext.FieldTypes.Where(x => x.Type == "comment").First(), 1, 0, 1, 0,
                                              "Picture", 1, 69, "69", "1", 0, 1, null, 0, 1, 0, 0, "", 1).ConfigureAwait(false);
                              eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 234..238
                              eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 244..247
                              eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 253..256
                              eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 262..265
                              eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 280..283
                              eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 289..292
                              eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 298..301
                              eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 307..310
                              eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 316..319

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

                              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

                                          Field f3 = await testHelpers.CreateField(0, "barcode", cl2, "f0f8db", "custom", 3, "",
                                              "Number Field Description",
                                              83, 0, DbContext.FieldTypes.Where(x => x.Type == "comment").First(), 0, 0, 1, 0,
                                              "Numberfield", 1, 8, "4865", "0", 0, 1, null, 1, 0, 0, 0, "", 1).ConfigureAwait(false);
                              eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 234..238
                              eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 244..247
                              eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 262..265
                              eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 271..274
                              eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 280..283
                              eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 289..292
                              eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 298..301
                              eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 307..310
                              eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 316..319

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

                              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

                                          Field f4 = await testHelpers.CreateField(1, "barcode", cl2, "fff6df", "custom", null, "",
                                              "date Description",
                                              84, 0, DbContext.FieldTypes.Where(x => x.Type == "comment").First(), 0, 0, 1, 0,
                                              "Date", 1, 666, "41153", "0", 0, 1, null, 0, 1, 0, 0, "", 1).ConfigureAwait(false);
                              eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 234..238
                              eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 244..247
                              eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 253..256
                              eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 271..274
                              eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 280..283
                              eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 289..292
                              eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 298..301
                              eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 307..310
                              eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 316..319

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

                              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

                                          Field f7 = await testHelpers.CreateField(0, "barcode", cl2, "ffe4e4", "custom", null, "",
                                              "picture Description",
                                              87, 0, DbContext.FieldTypes.Where(x => x.Type == "comment").First(), 1, 0, 1, 0,
                                              "Picture", 1, 69, "69", "1", 0, 1, null, 0, 1, 0, 0, "", 1).ConfigureAwait(false);
                              eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 234..238
                              eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 244..247
                              eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 253..256
                              eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 262..265
                              eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 271..274
                              eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 280..283
                              eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 298..301
                              eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 307..310
                              eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 316..319

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

                              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

                                          Field f10 = await testHelpers.CreateField(0, "barcode", cl2, "ffe4e4", "custom", null, "",
                                              "picture Description",
                                              90, 0, DbContext.FieldTypes.Where(x => x.Type == "comment").First(), 1, 0, 1, 0,
                                              "Picture", 1, 69, "69", "1", 0, 1, null, 0, 1, 0, 0, "", 1).ConfigureAwait(false);
                              eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 234..238
                              eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 244..247
                              eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 253..256
                              eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 262..265
                              eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 271..274
                              eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 280..283
                              eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 289..292
                              eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 298..301
                              eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 307..310

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

                              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

                                          Field f8 = await testHelpers.CreateField(0, "barcode", cl2, "ffe4e4", "custom", null, "",
                                              "picture Description",
                                              88, 0, DbContext.FieldTypes.Where(x => x.Type == "comment").First(), 1, 0, 1, 0,
                                              "Picture", 1, 69, "69", "1", 0, 1, null, 0, 1, 0, 0, "", 1).ConfigureAwait(false);
                              eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 234..238
                              eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 244..247
                              eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 253..256
                              eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 262..265
                              eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 271..274
                              eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 280..283
                              eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 289..292
                              eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 307..310
                              eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 316..319

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

                              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

                                          Field f2 = await testHelpers.CreateField(1, "barcode", cl2, "f5eafa", "custom", null, "",
                                              "showPDf Description",
                                              45, 1, DbContext.FieldTypes.Where(x => x.Type == "comment").First(), 0, 1, 0, 0,
                                              "ShowPdf", 0, 5, "5", "0", 0, 0, null, 0, 0, 0, 0, "", 9).ConfigureAwait(false);
                              eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 234..238
                              eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 253..256
                              eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 262..265
                              eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 271..274
                              eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 280..283
                              eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 289..292
                              eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 298..301
                              eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 307..310
                              eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 316..319

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

                              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

                                          WorkerDto worker_Dto = new WorkerDto
                                          {
                                              WorkerUId = worker.MicrotingUid,
                                              CreatedAt = worker.CreatedAt,
                                              Email = worker.Email,
                              Severity: Minor
                              Found in eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs and 1 other location - About 35 mins to fix
                              eFormCore/Infrastructure/SqlController.cs on lines 4185..4194

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

                              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