microting/eform-sdk-dotnet

View on GitHub

Showing 3,203 of 3,219 total issues

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

              [Test]
              public async Task question_Create_DoesCreate_QuestionSetTrue_PrioritisedBackButtonEnabledImageTrue()
              {
                  // 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_ValidDisplayImageTrue has 56 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                [Test]
                public async Task question_Create_DoesCreate_QuestionSetTrue_ValidDisplayImageTrue()
                {
                    // 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_ValidDisplayTrue has 56 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  [Test]
                  public async Task question_Create_DoesCreate_QuestionSetTrue_ValidDisplayTrue()
                  {
                      // 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_ValidDisplayBackButtonEnabledImageTrue has 56 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      [Test]
                      public async Task question_Create_DoesCreate_QuestionSetTrue_ValidDisplayBackButtonEnabledImageTrue()
                      {
                          // 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_PrioritisedBackButtonEnabledTrue has 56 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        [Test]
                        public async Task question_Create_DoesCreate_QuestionSetTrue_PrioritisedBackButtonEnabledTrue()
                        {
                            // 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_PrioritisedTrue has 56 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                          [Test]
                          public async Task question_Create_DoesCreate_QuestionSetTrue_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_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_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_BackButtonEnabledImageTrue has 56 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

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

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

                                      [Test]
                                      public async Task question_Create_DoesCreate_QuestionSetTrue_PrioritisedValidDisplayBackButtonEnabledTrue()
                                      {
                                          // 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_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

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

                                            protected override void Down(MigrationBuilder migrationBuilder)
                                            {
                                                migrationBuilder.DropColumn(
                                                    name: "LastIp",
                                                    table: "units");
                                    Severity: Major
                                    Found in eFormCore/Migrations/20200224092512_AddingMoreAttributesToUnits.cs - About 2 hrs to fix

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

                                              public async Task<bool> Start(string connectionString)
                                              {
                                                  string methodName = "Core.Start";
                                      
                                                  try
                                      Severity: Major
                                      Found in eFormCore/Core.cs - About 2 hrs to fix
                                        Severity
                                        Category
                                        Status
                                        Source
                                        Language