microting/eform-sdk-dotnet

View on GitHub

Showing 886 of 3,221 total issues

Method AnswerValues_Delete_DoesSetWorkflowStateToRemoved has 151 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        [Test]
        public async Task AnswerValues_Delete_DoesSetWorkflowStateToRemoved()
        {
            //Arrange

Severity: Major
Found in eFormSDK.InSight.Tests/AnswerValuesUTest.cs - About 6 hrs to fix

    File SqlControllerTestAnswer.cs has 418 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    using eFormCore;
    using Microsoft.EntityFrameworkCore;
    using NUnit.Framework;
    using System;
    using System.Collections.Generic;
    Severity: Minor
    Found in eFormSDK.Integration.Tests/SqlControllerTestAnswer.cs - About 6 hrs to fix

      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 Checklists_create_DoesCreate has 149 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

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

          Method GetQuestionSet has 149 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  public async Task<bool> GetQuestionSet(int microtingUid, int questionSetId, int threadNumber)
                  {
                      var jsonSerializerSettings = new JsonSerializerSettings
                      {
                          NullValueHandling = NullValueHandling.Ignore,
          Severity: Major
          Found in eFormCore/Core.cs - About 5 hrs to fix

            File SqlControllerTestAnswerValue.cs has 414 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            using eFormCore;
            using Microsoft.EntityFrameworkCore;
            using NUnit.Framework;
            using System;
            using System.Collections.Generic;
            Severity: Minor
            Found in eFormSDK.Integration.Tests/SqlControllerTestAnswerValue.cs - About 5 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 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 Core_Template_TemplateItemRead_ReadsTemplateItems has 147 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

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

                    Method Core_eFormSimpleSingleSelectFormCreateInDB_ReturnseFormId has 146 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                            [Test]
                            public async Task Core_eFormSimpleSingleSelectFormCreateInDB_ReturnseFormId()
                            {
                                string xmlstring = @"
                                    <?xml version='1.0' encoding='UTF-8'?>
                    Severity: Major
                    Found in eFormSDK.Integration.CheckLists.CoreTests/CoreTesteFormCreateInDB.cs - About 5 hrs to fix

                      Method TemplateFromXml has 146 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                              public async Task<MainElement> TemplateFromXml(string xmlString)
                      #pragma warning restore 1998
                              {
                                  if (string.IsNullOrEmpty(xmlString))
                                      throw new ArgumentNullException("xmlString cannot be null or empty");
                      Severity: Major
                      Found in eFormCore/Core.cs - About 5 hrs to fix

                        Method Core_eForm_SimpleMultiSelectFormCreateInDB_ReturnseFormId has 144 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

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

                          Method Cases_Create_DoesCreate has 144 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

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

                            Method Core_eFormSimpleSingleSelectFormFromXML_ReturnseMainElement has 143 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                    [Test]
                                    public async Task Core_eFormSimpleSingleSelectFormFromXML_ReturnseMainElement()
                                    {
                                        string xmlstring = @"
                                            <?xml version='1.0' encoding='UTF-8'?>
                            Severity: Major
                            Found in eFormSDK.Integration.CheckLists.CoreTests/CoreTesteFormFromXML.cs - About 5 hrs to fix

                              Method CaseUpdateFieldValues has 143 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                      public async Task<bool> CaseUpdateFieldValues(int caseId, Language language)
                                      {
                                          string methodName = "SqlController.CaseUpdateFieldValues";
                                          try
                                          {
                              Severity: Major
                              Found in eFormCore/Infrastructure/SqlController.cs - About 5 hrs to fix

                                File LanguageQuestionSetUTest.cs has 405 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/LanguageQuestionSetUTest.cs - About 5 hrs to fix

                                  Method AnswerValues_Create_DoesCreate has 142 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

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

                                    File SqlControllerTestReplyElementy.cs has 402 lines of code (exceeds 250 allowed). Consider refactoring.
                                    Open

                                    using System;
                                    using System.Linq;
                                    using System.Threading.Tasks;
                                    using Microting.eForm;
                                    using Microting.eForm.Dto;

                                      Method StartSqlOnly has 140 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                              public async Task<bool> StartSqlOnly(string connectionString)
                                              {
                                                  // SentrySdk.Init(options =>
                                                  // {
                                                  //     // A Sentry Data Source Name (DSN) is required.
                                      Severity: Major
                                      Found in eFormCore/Core.cs - About 5 hrs to fix

                                        Method GenerateDataSetFromCases has 139 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                                public async Task<List<List<string>>> GenerateDataSetFromCases(int? checkListId, DateTime? start, DateTime? end,
                                                    string customPathForUploadedData, string decimalSeparator, string thousandSeparator, bool utcTime,
                                                    CultureInfo cultureInfo, TimeZoneInfo timeZoneInfo, Language language, bool includeCheckListText,
                                                    bool gpsCoordinates)
                                                {
                                        Severity: Major
                                        Found in eFormCore/Core.cs - About 5 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language