microting/eform-sdk-dotnet

View on GitHub
eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCaseReadAllShort.cs

Summary

Maintainability
F
2 wks
Test Coverage

File SqlControllerTestCaseReadAllShort.cs has 988 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;

    Method SQL_Template_TemplateItemReadAll_DoesSortAccordingly has 211 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

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

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

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

        Method SQL_Template_TemplateSetTags_SetsTag has 150 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

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

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

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

            Method SQL_Template_TemplateUpdateFieldIdsForColumns_UpdatesIds has 125 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

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

              Method SQL_Template_TemplateDisplayIndexChange_ChangesDisplayIndex has 40 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

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

                Method SQL_Template_TemplateCreate_CreatesTemplate has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        [Test] //might need aditional testing
                        public async Task SQL_Template_TemplateCreate_CreatesTemplate()
                        {
                            // Arrance
                            CoreElement CElement = new CoreElement();

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

                          [Test]
                          public async Task SQL_Template_TemplateFieldReadAll_ReturnsFieldList()
                          {
                              // Arrance
                  
                  
                  eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs on lines 335..583

                  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

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

                          public override async Task DoSetup()
                          {
                              #region Setup SettingsTableContent
                  
                              #region Setup SettingsTableContent
                  eFormSDK.Integration.Base.SqlControllerTests/SqlControllerTestField.cs on lines 46..66
                  eFormSDK.Integration.Base.SqlControllerTests/SqlControllerTestFieldValue.cs on lines 50..70
                  eFormSDK.Integration.CheckLists.SqlControllerTests/SqlControllerTestReplyElementy.cs on lines 52..72

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

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

                              var match2 = await sut.TemplateUpdateFieldIdsForColumns(Template2.Id, Field1.Id, Field2.Id, Field3.Id,
                                  Field4.Id, Field5.Id, Field6.Id, Field7.Id, Field8.Id, Field9.Id, Field10.Id);
                  eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCaseReadAllShort.cs on lines 1417..1418
                  eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCaseReadAllShort.cs on lines 1421..1422
                  eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCaseReadAllShort.cs on lines 1423..1424

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

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

                              var match1 = await sut.TemplateUpdateFieldIdsForColumns(Template1.Id, Field1.Id, Field2.Id, Field3.Id,
                                  Field4.Id, Field5.Id, Field6.Id, Field7.Id, Field8.Id, Field9.Id, Field10.Id);
                  eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCaseReadAllShort.cs on lines 1419..1420
                  eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCaseReadAllShort.cs on lines 1421..1422
                  eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCaseReadAllShort.cs on lines 1423..1424

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

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

                              var match3 = await sut.TemplateUpdateFieldIdsForColumns(Template3.Id, Field1.Id, Field2.Id, Field3.Id,
                                  Field4.Id, Field5.Id, Field6.Id, Field7.Id, Field8.Id, Field9.Id, Field10.Id);
                  eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCaseReadAllShort.cs on lines 1417..1418
                  eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCaseReadAllShort.cs on lines 1419..1420
                  eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCaseReadAllShort.cs on lines 1423..1424

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

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

                              var match4 = await sut.TemplateUpdateFieldIdsForColumns(Template4.Id, Field1.Id, Field2.Id, Field3.Id,
                                  Field4.Id, Field5.Id, Field6.Id, Field7.Id, Field8.Id, Field9.Id, Field10.Id);
                  eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCaseReadAllShort.cs on lines 1417..1418
                  eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCaseReadAllShort.cs on lines 1419..1420
                  eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCaseReadAllShort.cs on lines 1421..1422

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

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

                              MainElement main = new MainElement(1, "label1", 4, "folderWithList", 1, startDt,
                                  endDt, "Swahili", false, true, false, true, "type1", "MessageTitle",
                                  "MessageBody", false, CElement.ElementList, "");
                  eFormSDK.Integration.CheckLists.CoreTests/CoreTesteForm.cs on lines 581..583
                  eFormSDK.Integration.CheckLists.CoreTests/CoreTesteForm.cs on lines 600..602
                  eFormSDK.Integration.CheckLists.CoreTests/CoreTesteForm.cs on lines 643..645

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

                  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