microting/eform-sdk-dotnet

View on GitHub

Showing 886 of 3,221 total issues

File AnswerValuesUTest.cs has 470 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: Minor
Found in eFormSDK.InSight.Tests/AnswerValuesUTest.cs - About 7 hrs to fix

    Method SQL_Unit_UnitGetAll_ReturnsAllUnits has 175 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            [Test]
            public async Task SQL_Unit_UnitGetAll_ReturnsAllUnits()
            {
    
                // Arrance
    Severity: Major
    Found in eFormSDK.Integration.Tests/SqlControllerTestUnit.cs - About 7 hrs to fix

      Class Communicator has 50 methods (exceeds 20 allowed). Consider refactoring.
      Open

          public class Communicator
          {
              #region var
      
              //SqlController sqlController;
      Severity: Minor
      Found in eFormCore/Communication/Communicator.cs - About 7 hrs to fix

        Method MoveTranslations has 173 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                public static async Task MoveTranslations(MicrotingDbContext dbContext)
                {
                    try
                    {
                        List<Field> fields = await dbContext.Fields.ToListAsync();
        Severity: Major
        Found in eFormCore/Infrastructure/Data/Entities/Field.cs - About 6 hrs to fix

          Method Cases_Delete_DoesSetWorkflowStateToRemoved has 171 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  [Test]
                  public async Task Cases_Delete_DoesSetWorkflowStateToRemoved()
                  {
                      //Arrange
          
          
          Severity: Major
          Found in eFormSDK.CheckLists.Tests/CasesUTest.cs - About 6 hrs to fix

            Class IHttp has 49 methods (exceeds 20 allowed). Consider refactoring.
            Open

                internal interface IHttp
                {
                    Task<string> Post(string xmlData, string siteId, string contentType = "application/xml");
            
                    Task<string> Status(string elementId, string siteId);
            Severity: Minor
            Found in eFormCore/Communication/IHttp.cs - About 6 hrs to fix

              File 20201223104631_AddingTranslations.cs has 445 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              using System;
              using Microsoft.EntityFrameworkCore.Metadata;
              using Microsoft.EntityFrameworkCore.Migrations;
              
              namespace Microting.eForm.Migrations
              Severity: Minor
              Found in eFormCore/Migrations/20201223104631_AddingTranslations.cs - About 6 hrs to fix

                Method SQL_Unit_UnitRead_ReadsUnit has 166 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        [Test]
                        public async Task SQL_Unit_UnitRead_ReadsUnit()
                        {
                
                            // Arrance
                Severity: Major
                Found in eFormSDK.Integration.Tests/SqlControllerTestUnit.cs - About 6 hrs 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 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_Unit_UnitDelete_DeletesUnit has 165 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                              [Test]
                              public async Task SQL_Unit_UnitDelete_DeletesUnit()
                              {  // Arrance
                                  #region Arrance
                      
                      
                      Severity: Major
                      Found in eFormSDK.Integration.Tests/SqlControllerTestUnit.cs - About 6 hrs to fix

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

                                [Test]
                                public async Task SQL_Unit_UnitUpdate_UpdatesUnit()
                                {
                        
                                    // Arrance
                        Severity: Major
                        Found in eFormSDK.Integration.Tests/SqlControllerTestUnit.cs - About 6 hrs to fix

                          Method SQL_answerValues_Update_DoesUpdate has 162 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                  [Test]
                                  public async Task SQL_answerValues_Update_DoesUpdate()
                                  {
                                      // Arrange
                                      Random rnd = new Random();
                          Severity: Major
                          Found in eFormSDK.Integration.Tests/SqlControllerTestAnswerValue.cs - About 6 hrs to fix

                            Method Core_eForm_MultiLvleFormCreateInDB_ReturnseFormId has 159 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                    [Test]
                                    public async Task Core_eForm_MultiLvleFormCreateInDB_ReturnseFormId()
                                    {
                                        // Arrange
                                        string xmlstring = @"
                            Severity: Major
                            Found in eFormSDK.Integration.CheckLists.CoreTests/CoreTesteFormCreateInDB.cs - About 6 hrs to fix

                              Method SQL_Worker_WorkerGetAll_ReturnsAllWorkers has 158 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                      [Test]
                                      public async Task SQL_Worker_WorkerGetAll_ReturnsAllWorkers()
                                      {
                                          // Arrance
                                          #region Arrance
                              Severity: Major
                              Found in eFormSDK.Integration.Tests/SqlControllerTestWorker.cs - About 6 hrs to fix

                                File HttpFake.cs has 427 lines of code (exceeds 250 allowed). Consider refactoring.
                                Open

                                using System;
                                using System.IO;
                                using System.Net;
                                using System.Net.Security;
                                using System.Security.Cryptography.X509Certificates;
                                Severity: Minor
                                Found in eFormCore/Communication/HttpFake.cs - About 6 hrs to fix

                                  Method AnswerValues_Update_DoesUpdate has 155 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

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

                                    File TestHelpers.cs has 423 lines of code (exceeds 250 allowed). Consider refactoring.
                                    Open

                                    using System;
                                    using System.IO;
                                    using System.Linq;
                                    using System.Threading;
                                    using System.Threading.Tasks;
                                    Severity: Minor
                                    Found in eFormCore/Helpers/TestHelpers.cs - About 6 hrs to fix

                                      Method Core_eForm_MultiLvleFormFromXML_ReturnseMainElement has 153 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                              [Test]
                                              public async Task Core_eForm_MultiLvleFormFromXML_ReturnseMainElement()
                                              {
                                                  // Arrange
                                                  string xmlstring = @"
                                      Severity: Major
                                      Found in eFormSDK.Integration.CheckLists.CoreTests/CoreTesteFormFromXML.cs - About 6 hrs to fix

                                        File 20190315092242_AddingModelseForInsight.cs has 419 lines of code (exceeds 250 allowed). Consider refactoring.
                                        Open

                                        using System;
                                        using Microsoft.EntityFrameworkCore.Metadata;
                                        using Microsoft.EntityFrameworkCore.Migrations;
                                        
                                        namespace Microting.eForm.Migrations
                                        Severity: Minor
                                        Found in eFormCore/Migrations/20190315092242_AddingModelseForInsight.cs - About 6 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language