microting/eform-sdk-dotnet

View on GitHub

Showing 886 of 3,221 total issues

Method LanguageQuestionSet_Create_DoesCreate_W_MicrotingUid has 39 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        [Test]
        public async Task LanguageQuestionSet_Create_DoesCreate_W_MicrotingUid()
        {
            //Assert
            Random rnd = new Random();
Severity: Minor
Found in eFormSDK.InSight.Tests/LanguageQuestionSetUTest.cs - About 1 hr to fix

    Method CaseDelete has 39 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            public async Task<bool> CaseDelete(int templateId, int siteUId, string workflowState)
            {
                string methodName = "Core.CaseDelete";
                try
                {
    Severity: Minor
    Found in eFormCore/Core.cs - About 1 hr to fix

      Method SQL_UploadedData_UploadedDataRead_DoesReturnOneUploadedDataClass has 38 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

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

        Method EntityGroups_Delete_DoesSetWorkflowStateToRemoved has 38 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                [Test]
                public async Task EntityGroups_Delete_DoesSetWorkflowStateToRemoved()
                {
                    EntityGroup entityGroup = new EntityGroup
                    {
        Severity: Minor
        Found in eFormSDK.CheckLists.Tests/EntityGroupsUTest.cs - About 1 hr to fix

          Method Core_Template_TemplateDelete_SetsWorkflowStateToRemoved has 38 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

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

            Method Core_Site_SiteUpdate_returnsTrue has 38 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                    [Test] //Using Communicatorn needs httpMock
                    public async Task Core_Site_SiteUpdate_returnsTrue()
                    {
                        // Arrange
                        // Arrange
            Severity: Minor
            Found in eFormSDK.Integration.Base.CoreTests/CoreTestSite.cs - About 1 hr to fix

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

                      protected override void Up(MigrationBuilder migrationBuilder)
                      {
                          migrationBuilder.AddColumn<bool>(
                              name: "IsEditable",
                              table: "CheckListVersions",
              Severity: Minor
              Found in eFormCore/Migrations/20211014105943_CLAttributes.cs - About 1 hr to fix

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

                        protected override void Up(MigrationBuilder migrationBuilder)
                        {
                            migrationBuilder.AddColumn<bool>(
                                name: "IsLocked",
                                table: "WorkerVersions",

                  Method ReadeForm has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                          public async Task<MainElement> ReadeForm(int templateId, Language language, bool includeDummyFields)
                          {
                              string methodName = "SqlController.TemplateRead";
                              try
                              {
                  Severity: Minor
                  Found in eFormCore/Infrastructure/SqlController.cs - About 1 hr to fix

                    Method CaseReadByCaseId has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

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

                      Method GenerateSpecialQuestionTypes has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                              private async Task GenerateSpecialQuestionTypes(MicrotingDbContext dbContext, int languageId)
                              {
                                  switch (QuestionType)
                                  {
                                      case Constants.Constants.QuestionTypes.Number:
                      Severity: Minor
                      Found in eFormCore/Infrastructure/Data/Entities/Question.cs - About 1 hr to fix

                        Method LanguageQuestionSet_Create_DoesCreate_WO_MicrotingUid has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                [Test]
                                public async Task LanguageQuestionSet_Create_DoesCreate_WO_MicrotingUid()
                                {
                                    //Assert
                                    Random rnd = new Random();
                        Severity: Minor
                        Found in eFormSDK.InSight.Tests/LanguageQuestionSetUTest.cs - About 1 hr to fix

                          Method GenerateDataSetFromCases has 12 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                                  public async Task<List<List<string>>> GenerateDataSetFromCases(int? checkListId, DateTime? start, DateTime? end,
                                      string customPathForUploadedData, string decimalSeparator, string thousandSeparator, bool utcTime,
                                      CultureInfo cultureInfo, TimeZoneInfo timeZoneInfo, Language language, bool includeCheckListText,
                                      bool gpsCoordinates)
                          Severity: Major
                          Found in eFormCore/Core.cs - About 1 hr to fix

                            Method Tags_Update_DoesUpdate has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

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

                              Method Core_SiteWorkers_Advanced_SiteWorkerDelete_MarksAsRemoved has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

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

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

                                        protected override void Up(MigrationBuilder migrationBuilder)
                                        {
                                            migrationBuilder.AddColumn<bool>(
                                                name: "IsAchievable",
                                                table: "CheckListVersions",
                                Severity: Minor
                                Found in eFormCore/Migrations/20211116085744_AddingDoneAtEditable.cs - About 1 hr to fix

                                  Method CreateUploadedData has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                          public async Task<UploadedData> CreateUploadedData(string checkSum, string currentFile, string extension,
                                              string fileLocation, string fileName, short? local, Worker worker, string uploaderType, int version,
                                              bool createPhysicalFile)
                                          {
                                              UploadedData UD = new UploadedData
                                  Severity: Minor
                                  Found in eFormCore/Helpers/TestHelpers.cs - About 1 hr to fix

                                    Method Advanced_TemplateDisplayIndexChangeServer has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                            public async Task<bool> Advanced_TemplateDisplayIndexChangeServer(int templateId, int siteUId,
                                                int newDisplayIndex)
                                            {
                                                string methodName = "Core.Advanced_TemplateDisplayIndexChangeServer";
                                                try
                                    Severity: Minor
                                    Found in eFormCore/Core.cs - About 1 hr to fix

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

                                              [Test] //mangler mock
                                              public async Task Core_SiteWorkers_Advanced_SiteWorkerCreate_CreatesWorker()
                                              {
                                                  // Arrange
                                      
                                      
                                      Severity: Minor
                                      Found in eFormSDK.Integration.CheckLists.CoreTests/CoreTestAdvanced.cs - About 1 hr to fix

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

                                                [Test]
                                                public async Task SQL_Tags_GetAllTags_DoesReturnAllTags()
                                                {
                                                    // Arrance
                                                    string tagName1 = "Tag1";
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language