microting/eform-sdk-dotnet

View on GitHub

Showing 886 of 3,221 total issues

File CoreTestEntity.cs has 1682 lines of code (exceeds 250 allowed). Consider refactoring.
Open

using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
Severity: Major
Found in eFormSDK.Integration.Base.CoreTests/CoreTestEntity.cs - About 4 days to fix

    File 20200120093951_CleanupInSight.Designer.cs has 1645 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    using System;
    using Microsoft.EntityFrameworkCore;
    using Microsoft.EntityFrameworkCore.Infrastructure;
    using Microsoft.EntityFrameworkCore.Metadata;
    using Microsoft.EntityFrameworkCore.Migrations;
    Severity: Major
    Found in eFormCore/Migrations/20200120093951_CleanupInSight.Designer.cs - About 4 days to fix

      File 20200116074236_AddingSiteTaggins.Designer.cs has 1631 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      using System;
      using Microsoft.EntityFrameworkCore;
      using Microsoft.EntityFrameworkCore.Infrastructure;
      using Microsoft.EntityFrameworkCore.Metadata;
      using Microsoft.EntityFrameworkCore.Migrations;
      Severity: Major
      Found in eFormCore/Migrations/20200116074236_AddingSiteTaggins.Designer.cs - About 4 days to fix

        File 20190924172326_AddingNewIndexOnCases.Designer.cs has 1577 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        using System;
        using Microsoft.EntityFrameworkCore;
        using Microsoft.EntityFrameworkCore.Infrastructure;
        using Microsoft.EntityFrameworkCore.Metadata;
        using Microsoft.EntityFrameworkCore.Migrations;
        Severity: Major
        Found in eFormCore/Migrations/20190924172326_AddingNewIndexOnCases.Designer.cs - About 4 days to fix

          File 20190923100451_ChangeStringToInt.Designer.cs has 1576 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          using System;
          using Microsoft.EntityFrameworkCore;
          using Microsoft.EntityFrameworkCore.Infrastructure;
          using Microsoft.EntityFrameworkCore.Metadata;
          using Microsoft.EntityFrameworkCore.Migrations;
          Severity: Major
          Found in eFormCore/Migrations/20190923100451_ChangeStringToInt.Designer.cs - About 4 days to fix

            Method FieldValueReadAllValues has a Cognitive Complexity of 221 (exceeds 20 allowed). Consider refactoring.
            Open

                    public async Task<List<List<KeyValuePair>>> FieldValueReadAllValues(int fieldId, List<int> caseIds,
                        string customPathForUploadedData, string decimalSeparator, string thousandSeparator, Language language,
                        bool gpsCoordinates)
                    {
                        string methodName = "SqlController.FieldValueReadAllValues";
            Severity: Minor
            Found in eFormCore/Infrastructure/SqlController.cs - About 4 days 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

            File 20190828054730_AddingNewVersionClasses.Designer.cs has 1549 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            using System;
            using Microsoft.EntityFrameworkCore;
            using Microsoft.EntityFrameworkCore.Infrastructure;
            using Microsoft.EntityFrameworkCore.Metadata;
            using Microsoft.EntityFrameworkCore.Migrations;

              File 20190806093044_AddingSiteGroups.Designer.cs has 1528 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              using System;
              using Microsoft.EntityFrameworkCore;
              using Microsoft.EntityFrameworkCore.Infrastructure;
              using Microsoft.EntityFrameworkCore.Metadata;
              using Microsoft.EntityFrameworkCore.Migrations;
              Severity: Major
              Found in eFormCore/Migrations/20190806093044_AddingSiteGroups.Designer.cs - About 4 days to fix

                Method CreateDataItem has 810 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        private async Task CreateDataItem(int? parentFieldId, int elementId, DataItem dataItem, Language language)
                        {
                            string methodName = "SqlController.CreateDataItem";
                            try
                            {
                Severity: Major
                Found in eFormCore/Infrastructure/SqlController.cs - About 4 days to fix

                  File 20190711053344_AddingJasperDocxEnabledAttributesToCheckList.Designer.cs has 1462 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  using System;
                  using Microsoft.EntityFrameworkCore;
                  using Microsoft.EntityFrameworkCore.Infrastructure;
                  using Microsoft.EntityFrameworkCore.Metadata;
                  using Microsoft.EntityFrameworkCore.Migrations;

                    File 20190515064952_FixingNamingForFieldValues.Designer.cs has 1458 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    using System;
                    using Microsoft.EntityFrameworkCore;
                    using Microsoft.EntityFrameworkCore.Infrastructure;
                    using Microsoft.EntityFrameworkCore.Metadata;
                    using Microsoft.EntityFrameworkCore.Migrations;

                      File 20190531092007_AddingMissingAIonLogs.Designer.cs has 1458 lines of code (exceeds 250 allowed). Consider refactoring.
                      Open

                      using System;
                      using Microsoft.EntityFrameworkCore;
                      using Microsoft.EntityFrameworkCore.Infrastructure;
                      using Microsoft.EntityFrameworkCore.Metadata;
                      using Microsoft.EntityFrameworkCore.Migrations;
                      Severity: Major
                      Found in eFormCore/Migrations/20190531092007_AddingMissingAIonLogs.Designer.cs - About 3 days to fix

                        File 20190514053645_RefactoringAttributeNames.Designer.cs has 1457 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open

                        using System;
                        using Microsoft.EntityFrameworkCore;
                        using Microsoft.EntityFrameworkCore.Infrastructure;
                        using Microsoft.EntityFrameworkCore.Metadata;
                        using Microsoft.EntityFrameworkCore.Migrations;

                          File 20190509074123_RefactoringidtoId.Designer.cs has 1457 lines of code (exceeds 250 allowed). Consider refactoring.
                          Open

                          using System;
                          using Microsoft.EntityFrameworkCore;
                          using Microsoft.EntityFrameworkCore.Infrastructure;
                          using Microsoft.EntityFrameworkCore.Metadata;
                          using Microsoft.EntityFrameworkCore.Migrations;
                          Severity: Major
                          Found in eFormCore/Migrations/20190509074123_RefactoringidtoId.Designer.cs - About 3 days to fix

                            File 20190408084408_AddingMissingParentId.Designer.cs has 1457 lines of code (exceeds 250 allowed). Consider refactoring.
                            Open

                            using System;
                            using Microsoft.EntityFrameworkCore;
                            using Microsoft.EntityFrameworkCore.Infrastructure;
                            using Microsoft.EntityFrameworkCore.Metadata;
                            using Microsoft.EntityFrameworkCore.Migrations;
                            Severity: Major
                            Found in eFormCore/Migrations/20190408084408_AddingMissingParentId.Designer.cs - About 3 days to fix

                              File 20190408081151_AddingFolders.Designer.cs has 1455 lines of code (exceeds 250 allowed). Consider refactoring.
                              Open

                              using System;
                              using Microsoft.EntityFrameworkCore;
                              using Microsoft.EntityFrameworkCore.Infrastructure;
                              using Microsoft.EntityFrameworkCore.Metadata;
                              using Microsoft.EntityFrameworkCore.Migrations;
                              Severity: Major
                              Found in eFormCore/Migrations/20190408081151_AddingFolders.Designer.cs - About 3 days to fix

                                File 20190319130214_AddingMissingForeignKeys.Designer.cs has 1414 lines of code (exceeds 250 allowed). Consider refactoring.
                                Open

                                using System;
                                using Microsoft.EntityFrameworkCore;
                                using Microsoft.EntityFrameworkCore.Infrastructure;
                                using Microsoft.EntityFrameworkCore.Metadata;
                                using Microsoft.EntityFrameworkCore.Migrations;

                                  File CoreTestAdvanced.cs has 1402 lines of code (exceeds 250 allowed). Consider refactoring.
                                  Open

                                  using System;
                                  using System.Collections.Generic;
                                  using System.IO;
                                  using System.Linq;
                                  using System.Reflection;
                                  Severity: Major
                                  Found in eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs - About 3 days to fix

                                    Method Core_Case_CaseReadAll_Short has 733 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                            [Test]
                                            public async Task Core_Case_CaseReadAll_Short()
                                            {
                                                // Arrance
                                    
                                    
                                    Severity: Major
                                    Found in eFormSDK.Integration.Case.CoreTests/CoreTestCaseReadAllShort.cs - About 3 days to fix

                                      File 20190318122928_FixingNamingOfSurveyConfigurationSites.Designer.cs has 1283 lines of code (exceeds 250 allowed). Consider refactoring.
                                      Open

                                      using System;
                                      using Microsoft.EntityFrameworkCore;
                                      using Microsoft.EntityFrameworkCore.Infrastructure;
                                      using Microsoft.EntityFrameworkCore.Metadata;
                                      using Microsoft.EntityFrameworkCore.Migrations;
                                        Severity
                                        Category
                                        Status
                                        Source
                                        Language