microting/eform-sdk-dotnet

View on GitHub

Showing 886 of 3,221 total issues

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

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

Severity: Major
Found in eFormSDK.Integration.Base.SqlControllerTests/SqlControllerTestUnit.cs - About 2 hrs to fix

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

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

      Method Core_Case_CaseReadByCaseId_Returns_cDto has 58 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

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

        Method Core_Case_CaseLookupCaseId_Returns_cDto has 58 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

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

          Method Core_Case_CaseLookupCaseUId_Returns_lstDto has 58 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

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

            Method Core_Case_CaseReadFirstId has 58 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

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

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

                      protected override void Down(MigrationBuilder migrationBuilder)
                      {
                          migrationBuilder.DropForeignKey(
                              name: "FK_LanguageQuestionSetVersions_LanguageQuestionSets_LanguageQue~",
                              table: "LanguageQuestionSetVersions");
              Severity: Major
              Found in eFormCore/Migrations/20201116164405_AddingDescriptionToEntityGroup.cs - About 2 hrs to fix

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

                        protected override void Up(MigrationBuilder migrationBuilder)
                        {
                            //Setup for SQL Server Provider
                           
                            string autoIDGenStrategy = "SqlServer:ValueGenerationStrategy";
                Severity: Major
                Found in eFormCore/Migrations/20190408081151_AddingFolders.cs - About 2 hrs to fix

                  File SqlControllerTestWorker.cs has 262 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  using System;
                  using System.IO;
                  using System.Linq;
                  using System.Reflection;
                  using System.Threading.Tasks;

                    Method SQL_Site_SimpleSiteGetAll_DoesReturnSiteList has 57 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

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

                      Method SQL_Unit_UnitDelete_DeletesUnit has 57 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

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

                        Method GetChecksAndFields has a Cognitive Complexity of 32 (exceeds 20 allowed). Consider refactoring.
                        Open

                                private void GetChecksAndFields(ref string clsLst, ref string fldLst, List<Element> elementLst,
                                    string customPathForUploadedData)
                                {
                                    var db = DbContextHelper.GetDbContext();
                                    string jasperFieldXml = "";
                        Severity: Minor
                        Found in eFormCore/Core.cs - About 2 hrs to fix

                        Cognitive Complexity

                        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                        A method's cognitive complexity is based on a few simple rules:

                        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                        • Code is considered more complex for each "break in the linear flow of the code"
                        • Code is considered more complex when "flow breaking structures are nested"

                        Further reading

                        Method question_Create_DoesCreate_AllTrue has 56 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

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

                          Method question_Create_DoesCreate_QuestionSetTrue_PrioritisedValidDisplayTrue has 56 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

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

                            Method question_Create_DoesCreate_QuestionSetTrue_BackButtonEnabledTrue has 56 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

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

                              Method question_Create_DoesCreate_QuestionSetTrue_ImageTrue has 56 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

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

                                Method question_Create_DoesCreate_QuestionSetTrue_ValidDisplayBackButtonEnabledTrue has 56 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

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

                                  Method question_Create_DoesCreate_QuestionSetFalse_PrioritisedTrue has 56 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

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

                                    Method question_Create_DoesCreate_QuestionSetTrue_PrioritisedImageTrue has 56 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

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

                                      Method question_Create_DoesCreate_QuestionSetTrue_PrioritisedValidDisplayImageTrue has 56 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

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