microting/eform-sdk-dotnet

View on GitHub

Showing 886 of 3,221 total issues

Method EntityGroupCreate has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        public async Task<EntityGroup> EntityGroupCreate(string name, string entityType, string description)
        {
            string methodName = "SqlController.EntityGroupCreate";
            try
            {
Severity: Minor
Found in eFormCore/Infrastructure/SqlController.cs - About 1 hr to fix

    Method FieldValueRead has 29 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            public async Task<Models.FieldValue> FieldValueRead(FieldValue reply, bool joinUploadedData, Language language)
            {
                string methodName = "SqlController.FieldValueRead";
    
                try
    Severity: Minor
    Found in eFormCore/Infrastructure/SqlController.cs - About 1 hr to fix

      Method FileRead has 29 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

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

        Method InsertSignature has 29 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                public static void InsertSignature(WordprocessingDocument wordDoc, List<KeyValuePair<string, string>> pictures)
                {
                    foreach (var keyValuePair in pictures)
                    {
                        WriteDebugConsoleLogEntry(new LogEntry(2, "ReportHelper.InsertSignature",
        Severity: Minor
        Found in eFormCore/Helpers/ReportHelper.cs - About 1 hr to fix

          Method Advanced_EntityGroupAll has 29 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  public async Task<EntityGroupList> Advanced_EntityGroupAll(string sort, string nameFilter, int pageIndex,
                      int pageSize, string entityType, bool desc, string workflowState)
                  {
                      if (entityType != Constants.FieldTypes.EntitySearch && entityType != Constants.FieldTypes.EntitySelect)
                          throw new Exception("EntityGroupAll failed. EntityType:" + entityType + " is not an known type");
          Severity: Minor
          Found in eFormCore/Core.cs - About 1 hr to fix

            Method SiteTags_Create_DoesCreate has 29 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

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

              Method Languages_Create_DoesCreate has 29 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

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

                Method CaseReadAll has 9 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                        public Task<CaseList> CaseReadAll(int? templateId, DateTime? start, DateTime? end, string workflowState,
                            string searchKey, bool descendingSort, string sortParameter, int pageIndex, int pageSize)
                Severity: Major
                Found in eFormCore/Core.cs - About 1 hr to fix

                  Method DocxToPdf has 9 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                          private async Task<string> DocxToPdf(int caseId, string templateId, string timeStamp,
                              Microting.eForm.Infrastructure.Data.Entities.Case dbCase, CaseDto cDto, string customPathForUploadedData,
                              string customXmlContent, string fileType, Language language)
                  Severity: Major
                  Found in eFormCore/Core.cs - About 1 hr to fix

                    Method CreateEntityItem has 9 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                            public async Task<EntityItem> CreateEntityItem(string description, int displayIndex, int entityGroupId,
                                string entityItemUId, string microtingUId, string name, short? synced, int version, string workflowState)
                    Severity: Major
                    Found in eFormCore/Helpers/TestHelpers.cs - About 1 hr to fix

                      Method SQL_SiteWorker_SiteWorkerDelete_DeletesSiteWorker has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

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

                        Method SQL_SiteWorker_SiteWorkerCreate_ReturnsID has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

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

                          Method SQL_Case_CaseDelete_DoesCaseRemoved has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

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

                            Method SQL_SiteWorker_SiteWorkerUpdate_UpdatesSiteWorker has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

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

                              Method SQL_Case_CaseDeleteResult_DoesMarkCaseRemoved has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

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

                                Method surveyConfiguration_Create_DoesCreate has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

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

                                  Method EntityGroupDelete has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

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

                                    Method CreateCase has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                            public async Task<Case> CreateCase(string caseUId, CheckList checkList, DateTime created_at, string custom,
                                                DateTime done_at, Worker doneByUserId, int microtingCheckId, int microtingUId, Site site, int? status,
                                                string caseType, Unit unit, DateTime updated_at, int version, Worker worker, string WorkFlowState)
                                            {
                                                Case aCase = new Case
                                    Severity: Minor
                                    Found in eFormCore/Helpers/TestHelpers.cs - About 1 hr to fix

                                      Method EntityGroupCreate has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                              public async Task<string> EntityGroupCreate(string entityType, string name, string id)
                                              {
                                                  _log.LogEverything("Communicator.EntityGroupCreate", "called");
                                                  _log.LogVariable("Communicator.EntityGroupCreate", nameof(entityType), entityType);
                                                  _log.LogVariable("Communicator.EntityGroupCreate", nameof(name), name);
                                      Severity: Minor
                                      Found in eFormCore/Communication/Communicator.cs - About 1 hr to fix

                                        Method SearchAndReplace has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                                private static string SearchAndReplace(string docText, SortedDictionary<string, string> valuesToReplace)
                                                {
                                                    foreach (var fieldValue in valuesToReplace.Reverse())
                                                    {
                                                        WriteDebugConsoleLogEntry(new LogEntry(2, "ReportHelper.SearchAndReplace",
                                        Severity: Minor
                                        Found in eFormCore/Helpers/ReportHelper.cs - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language