microting/eform-sdk-dotnet

View on GitHub

Showing 886 of 3,221 total issues

Method Advanced_SiteItemUpdate has 67 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        public async Task<bool> Advanced_SiteItemUpdate(int siteId, string name, string languageCode)
        {
            string methodName = "Core.Advanced_SiteItemUpdate";
            try
            {
Severity: Major
Found in eFormCore/Core.cs - About 2 hrs to fix

    Class CoreTesteFormCreateInDB has 24 methods (exceeds 20 allowed). Consider refactoring.
    Open

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

      Class CoreTesteFormFromXML has 24 methods (exceeds 20 allowed). Consider refactoring.
      Open

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

        Class CoreTestCase has 24 methods (exceeds 20 allowed). Consider refactoring.
        Open

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

          Method Core_eForm_SimpleDateFormFromXML_ReturnseMainElement has 66 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

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

            Method UploadedData_Delete_DoesSetWorkflowstateToRemoved has 66 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

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

              Method Down has 66 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      protected override void Down(MigrationBuilder migrationBuilder)
                      {
                          migrationBuilder.DropForeignKey(
                              name: "FK_field_values_uploaded_datas_UploadedDatasId",
                              table: "field_values");
              Severity: Major
              Found in eFormCore/Migrations/20201220194822_FixingTableColumnNames.cs - About 2 hrs to fix

                Method OptionTranslation_Create_DoesCreate_WO_MicrotingUid has 66 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

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

                  Method SurveyConfigurations_Update_DoesUpdate has 66 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                          [Test]
                          public async Task SurveyConfigurations_Update_DoesUpdate()
                          {
                              //Arrange
                              Random rnd = new Random();
                  Severity: Major
                  Found in eFormSDK.InSight.Tests/SurveyConfigurationsUTest.cs - About 2 hrs to fix

                    File SqlControllerTestUploadedData.cs has 276 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 Up has 65 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                              protected override void Up(MigrationBuilder migrationBuilder)
                              {
                                  migrationBuilder.CreateTable(
                                      name: "ExtraFieldValues",
                                      columns: table => new
                      Severity: Major
                      Found in eFormCore/Migrations/20210405153325_AddingExtraFieldValues.cs - About 2 hrs to fix

                        Method GetJasperFieldValue has 65 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                private async Task<string> GetJasperFieldValue(Field field, FieldValue answer, string customPathForUploadedData)
                                {
                                    var token = await GetSdkSetting(Settings.token);
                                    StringBuilder jasperFieldXml = new StringBuilder();
                                    string latitude = answer.Latitude;
                        Severity: Major
                        Found in eFormCore/Core.cs - About 2 hrs to fix

                          Method SQL_PostCase_CaseReadFirstId has 64 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                  [Test]
                                  public async Task SQL_PostCase_CaseReadFirstId()
                                  {
                                      // Arrance
                                      Random rnd = new Random();
                          Severity: Major
                          Found in eFormSDK.Integration.Case.SqlControllerTests/SqlControllerTestCase.cs - About 2 hrs to fix

                            Method options_Delete_DoesDelete has 64 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                    [Test]
                                    public async Task options_Delete_DoesDelete()
                                    {        
                                        // Arrange
                                        #region QuestionSet
                            Severity: Major
                            Found in eFormSDK.Integration.Tests/SqlControllerTestOptions.cs - About 2 hrs to fix

                              Method LanguageQuestionSet_Update_DoesUpdate_W_MicrotingUid has 64 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                      [Test]
                                      public async Task LanguageQuestionSet_Update_DoesUpdate_W_MicrotingUid()
                                      {
                                          //Assert
                                          Random rnd = new Random();
                              Severity: Major
                              Found in eFormSDK.InSight.Tests/LanguageQuestionSetUTest.cs - About 2 hrs to fix

                                Method CasesToCsv has 64 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                        public async Task<string> CasesToCsv(int templateId, DateTime? start, DateTime? end, string pathAndName,
                                            string customPathForUploadedData, string decimalSeparator, string thousandSeparator, bool utcTime,
                                            CultureInfo cultureInfo, TimeZoneInfo timeZoneInfo, Language language, bool gpsCoordinates,
                                            bool includeCheckListText)
                                        {
                                Severity: Major
                                Found in eFormCore/Core.cs - About 2 hrs to fix

                                  Method LanguageQuestionSet_Update_DoesUpdate_W_MicrotingUid_RemovesUid has 64 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                          [Test]
                                          public async Task LanguageQuestionSet_Update_DoesUpdate_W_MicrotingUid_RemovesUid()
                                          {
                                              //Assert
                                              Random rnd = new Random();
                                  Severity: Major
                                  Found in eFormSDK.InSight.Tests/LanguageQuestionSetUTest.cs - About 2 hrs to fix

                                    File Field.cs has 272 lines of code (exceeds 250 allowed). Consider refactoring.
                                    Open

                                    using System;
                                    using System.Collections.Generic;
                                    using System.ComponentModel.DataAnnotations;
                                    using System.ComponentModel.DataAnnotations.Schema;
                                    using System.Linq;
                                    Severity: Minor
                                    Found in eFormCore/Infrastructure/Data/Entities/Field.cs - About 2 hrs to fix

                                      Method Core_eFormSimpleTimerFormFromXML_ReturnseMainElement has 63 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

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

                                        Method Core_eForm_SimplePdfFormFromXML_ReturnseMainElement has 63 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

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