microting/eform-sdk-dotnet

View on GitHub

Showing 886 of 3,221 total issues

Method question_Update_DoesUpdate_ValidDisplayTrue has 74 lines of code (exceeds 25 allowed). Consider refactoring.
Open

                [Test]
                public async Task question_Update_DoesUpdate_ValidDisplayTrue()
                {
                    // Arrange
                    string name = Guid.NewGuid().ToString();
Severity: Major
Found in eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs - About 2 hrs to fix

    Method question_Update_DoesUpdate_PrioritisedValidDisplayTrue has 74 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

                                    [Test]
                    public async Task question_Update_DoesUpdate_PrioritisedValidDisplayTrue()
                    {
                        // Arrange
                        string name = Guid.NewGuid().ToString();
    Severity: Major
    Found in eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs - About 2 hrs to fix

      Method SaveResult has 74 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              private async Task<int> SaveResult(Response resp, string respXml, MicrotingDbContext dbContext,
                  int microtingUid, int? checkIdLastKnown, CaseDto aCase)
              {
                  XmlDocument xDoc = new XmlDocument();
      
      
      Severity: Major
      Found in eFormCore/Handlers/EformCompletedHandler.cs - About 2 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

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

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

            File SqlControllerTestCheckListValue.cs has 287 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/SqlControllerTestCheckListValue.cs - About 2 hrs to fix

              Method Core_eForm_SimpleCommenteFormFromXML_ReturnseMainElement has 72 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

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

                Method Up has 72 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        protected override void Up(MigrationBuilder migrationBuilder)
                        {
                            migrationBuilder.AlterColumn<int>(
                                name: "MicrotingUid",
                                table: "notifications",
                Severity: Major
                Found in eFormCore/Migrations/20190923100451_ChangeStringToInt.cs - About 2 hrs to fix

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

                          protected override void Down(MigrationBuilder migrationBuilder)
                          {
                              migrationBuilder.DropTable(
                                  name: "case_versions");
                  
                  
                  Severity: Major
                  Found in eFormCore/Migrations/20180810124416_InitialCreate.cs - About 2 hrs to fix

                    Method XmlToClassUsingXmlDocument has 72 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                            public Response XmlToClassUsingXmlDocument(string xmlStr)
                            {
                                try
                                {
                                    ResponseTypes rType = ResponseTypes.Invalid;
                    Severity: Major
                    Found in eFormCore/Infrastructure/Models/reply/Response.cs - About 2 hrs to fix

                      Method EntityGroupAll has 72 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                              public async Task<EntityGroupList> EntityGroupAll(string sort, string nameFilter, int offSet, int pageSize,
                                  string entityType, bool desc, string workflowState)
                              {
                                  if (entityType != Constants.Constants.FieldTypes.EntitySearch &&
                                      entityType != Constants.Constants.FieldTypes.EntitySelect)
                      Severity: Major
                      Found in eFormCore/Infrastructure/SqlController.cs - About 2 hrs to fix

                        Method Core_eFormSimpleCheckBoxFormCreateInDB_ReturnseFormId has 71 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

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

                          Method Core_eForm_SimplePdfFormCreateInDB_ReturnseFormId has 71 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

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

                            Method SimpleSiteGetAll has 71 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                    public async Task<List<SiteDto>> SimpleSiteGetAll(string workflowState, int? offSet, int? limit)
                                    {
                                        List<SiteDto> siteList = new List<SiteDto>();
                                        await using var db = GetContext();
                                        List<Site> matches = null;
                            Severity: Major
                            Found in eFormCore/Infrastructure/SqlController.cs - About 2 hrs to fix

                              Method Options_Delete_DoesSetWorkflowStateToRemoved has 71 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

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

                                Class SqlControllerTestQuestionSet has 25 methods (exceeds 20 allowed). Consider refactoring.
                                Open

                                    [TestFixture]
                                    public class SqlControllerTestQuestionSet : DbTestFixture
                                    {
                                        private SqlController sut;
                                        private TestHelpers testHelpers;
                                Severity: Minor
                                Found in eFormSDK.Integration.Tests/SqlControllerTestQuestionSet.cs - About 2 hrs to fix

                                  Method Core_eFormSimpleTimerFormCreateInDB_ReturnseFormId has 70 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

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

                                    Method Core_eFormSimpleNumberFormFromXML_ReturnseMainElement has 70 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                            [Test]
                                            public async Task Core_eFormSimpleNumberFormFromXML_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 SQL_Site_SiteGetAll_DoesReturnAllSites has 70 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                              [Test]
                                              public async Task SQL_Site_SiteGetAll_DoesReturnAllSites()
                                              {
                                                  // Arrance
                                      
                                      
                                      Severity: Major
                                      Found in eFormSDK.Integration.Base.SqlControllerTests/SqlControllerTestSite.cs - About 2 hrs to fix

                                        Method Up has 70 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                                protected override void Up(MigrationBuilder migrationBuilder)
                                                {
                                        //            migrationBuilder.DropForeignKey(
                                        //                name: "FK_field_values_check_lists_check_list_id",
                                        //                table: "field_values");
                                        Severity: Major
                                        Found in eFormCore/Migrations/20190515064952_FixingNamingForFieldValues.cs - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language