microting/eform-sdk-dotnet

View on GitHub

Showing 886 of 3,221 total issues

Method SQL_UploadedData_FileRead_DoesReturnOneUploadedData has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        [Test]
        public async Task SQL_UploadedData_FileRead_DoesReturnOneUploadedData()
        {
            // Arrance
            string checksum = "";

    Method SQL_Check_CheckListValueStatusUpdate_UpdatesCheckListValues has 35 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

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

      Method Core_UploadedData_UploadedDataRead_DoesReturnOneUploadedDataClass has 35 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              [Test]
              public async Task Core_UploadedData_UploadedDataRead_DoesReturnOneUploadedDataClass()
              {
                  // Arrance
                  string checksum = "";
      Severity: Minor
      Found in eFormSDK.Integration.Base.CoreTests/CoreTestUploadedData.cs - About 1 hr to fix

        Method siteSurveyConfiguration_Delete_DoesDelete has 35 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                [Test]
                public async Task siteSurveyConfiguration_Delete_DoesDelete()
                {
                    // Arrange
                    Random rnd = new Random();

          Method HttpPost has 35 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  private async Task<string> HttpPost(string url, StringContent content, string contentType = null,
                      bool addToken = false, bool followRedirect = false)
                  {
                      try
                      {
          Severity: Minor
          Found in eFormCore/Communication/Http.cs - About 1 hr to fix

            Method HttpDelete has 35 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                    private async Task<string> HttpDelete(string url, string contentType = null, bool addToken = false,
                        bool followRedirect = false)
                    {
                        try
                        {
            Severity: Minor
            Found in eFormCore/Communication/Http.cs - About 1 hr to fix

              Method PutFileToS3Storage has 35 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      public async Task PutFileToS3Storage(Stream stream, string fileName)
                      {
                          string methodName = "Core.PutFileToS3Storage";
                          string bucketName = await _sqlController.SettingRead(Settings.s3BucketName);
                          Log.LogStandard(methodName, $"Trying to upload file {fileName} to {bucketName}");
              Severity: Minor
              Found in eFormCore/Core.cs - About 1 hr to fix

                Method Core_Case_CaseIdLookUp_returnsId has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        [Test]
                        public async Task Core_Case_CaseIdLookUp_returnsId()
                        {
                            // Arrange
                
                
                Severity: Minor
                Found in eFormSDK.Integration.Case.CoreTests/CoreTestCase.cs - About 1 hr to fix

                  Method SiteTags_Delete_DoesDelete has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                          [Test]
                          public async Task SiteTags_Delete_DoesDelete()
                          {
                              // Arrange
                              Random rnd = new Random();
                  Severity: Minor
                  Found in eFormSDK.Base.Tests/SiteTagsUTest.cs - About 1 hr to fix

                    Method TemplateUpdateFieldIdsForColumns has 11 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                            public async Task<bool> TemplateUpdateFieldIdsForColumns(int templateId, int? fieldId1, int? fieldId2,
                                int? fieldId3, int? fieldId4, int? fieldId5, int? fieldId6, int? fieldId7, int? fieldId8, int? fieldId9,
                                int? fieldId10)
                    Severity: Major
                    Found in eFormCore/Infrastructure/SqlController.cs - About 1 hr to fix

                      Method Advanced_TemplateUpdateFieldIdsForColumns has 11 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                              public async Task<bool> Advanced_TemplateUpdateFieldIdsForColumns(int templateId, int? fieldId1, int? fieldId2,
                                  int? fieldId3, int? fieldId4, int? fieldId5, int? fieldId6, int? fieldId7, int? fieldId8, int? fieldId9,
                                  int? fieldId10)
                      Severity: Major
                      Found in eFormCore/Core.cs - About 1 hr to fix

                        Method SQL_Case_CaseRetract_DoesCaseGetRetracted has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                [Test]
                                public async Task SQL_Case_CaseRetract_DoesCaseGetRetracted()
                                {
                                    // Arrance
                                    Random rnd = new Random();

                          Method SiteReadSimple has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                  public async Task<SiteDto> SiteReadSimple(int microting_uid)
                                  {
                                      string methodName = "SqlController.SiteReadSimple";
                                      try
                                      {
                          Severity: Minor
                          Found in eFormCore/Infrastructure/SqlController.cs - About 1 hr to fix

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

                                    protected override void Down(MigrationBuilder migrationBuilder)
                                    {
                                        migrationBuilder.DropTable(
                                            name: "answer_value_versions");
                            
                            
                            Severity: Minor
                            Found in eFormCore/Migrations/20190315092242_AddingModelseForInsight.cs - About 1 hr to fix

                              Method HttpPut has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                      private async Task<string> HttpPut(string url, StringContent content, string contentType = null,
                                          bool addToken = false, bool followRedirect = false)
                                      {
                                          try
                                          {
                              Severity: Minor
                              Found in eFormCore/Communication/Http.cs - About 1 hr to fix

                                Method Languages_Delete_DoesSetWorkflowStateToRemoved has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                        [Test]
                                        public async Task Languages_Delete_DoesSetWorkflowStateToRemoved()
                                        {
                                            //Arrange
                                
                                
                                Severity: Minor
                                Found in eFormSDK.Base.Tests/LanguagesUTest.cs - About 1 hr to fix

                                  Method QuestionSets_Create_DoesCreate has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                          [Test]
                                          public async Task QuestionSets_Create_DoesCreate()
                                          {
                                              //Arrange
                                  
                                  
                                  Severity: Minor
                                  Found in eFormSDK.InSight.Tests/QuestionSetsUTest.cs - About 1 hr to fix

                                    Consider simplifying this complex logical expression.
                                    Open

                                                            if (fieldType.Type == "FieldGroup")
                                                            {
                                                                List<DataItem> dataItemSubList = new List<DataItem>();
                                                                foreach (Field subDbField in await db.Fields.AsNoTracking()
                                                                             .Where(x => x.WorkflowState != Constants.Constants.WorkflowStates.Removed)
                                    Severity: Critical
                                    Found in eFormCore/Infrastructure/SqlController.cs - About 1 hr to fix

                                      Method SQL_Case_CaseUpdateRetrieved_DoesCaseGetUpdated has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                              [Test]
                                              public async Task SQL_Case_CaseUpdateRetrieved_DoesCaseGetUpdated()
                                              {
                                                  // Arrance
                                                  Random rnd = new Random();

                                        Method SQL_Site_SiteReadSimple_ReadsSite has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                                [Test]
                                                public async Task SQL_Site_SiteReadSimple_ReadsSite()
                                                {
                                                    // Arrance
                                        
                                        
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language