microting/eform-sdk-dotnet

View on GitHub

Showing 886 of 3,221 total issues

Method GenerateDataSetFromCases has 10 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)
Severity: Major
Found in eFormCore/Core.cs - About 1 hr to fix

    Method SQL_Template_TemplateCreate_CreatesTemplate has 31 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            [Test] //might need aditional testing
            public async Task SQL_Template_TemplateCreate_CreatesTemplate()
            {
                // Arrance
                CoreElement CElement = new CoreElement();

      Method SQL_Tags_TemplateSetTags_DoesAssignTagToTemplate has 31 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              [Test]
              public async Task SQL_Tags_TemplateSetTags_DoesAssignTagToTemplate()
              {
                  // Arrance
                  CheckList cl1 = new CheckList

        Method Core_Folders_CreateFolder_DoesCreateNewFolder has 31 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

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

          Method surveyConfiguration_Delete_DoesDelete has 31 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

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

            Method FileCaseFindMUId has 31 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

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

              Method CheckExceptionLst has 31 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      private int CheckExceptionLst(ExceptionClass exceptionClass)
                      {
                          int count = 0;
              
                          #region find count
              Severity: Minor
              Found in eFormCore/Log.cs - About 1 hr to fix

                Method CreateSiteUnitWorkersForFullLoaed has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        public async Task<string> CreateSiteUnitWorkersForFullLoaed(bool create)
                        {
                            if (create)
                            {
                                int id = t.GetRandomInt(6);
                Severity: Minor
                Found in eFormCore/Helpers/TestHelperReturnXML.cs - About 1 hr to fix

                  Method LocateList has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                          public List<string> LocateList(string textStr, string startStr, string endStr)
                          {
                              try
                              {
                                  if (!textStr.Contains(startStr))
                  Severity: Minor
                  Found in eFormCore/Tools.cs - About 1 hr to fix

                    Method OrganizationLoadAllFromRemote has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                            public async Task<string> OrganizationLoadAllFromRemote()
                            {
                                await Task.Run(() => { });
                    //            int id = t.GetRandomInt(6);
                                JObject contentToServer = JObject.FromObject(new
                    Severity: Minor
                    Found in eFormCore/Communication/HttpFake.cs - About 1 hr to fix

                      Method SQL_SiteWorker_SiteWorkerRead_ReadsSiteWorker has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

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

                        Method SiteWorkerRead has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                public async Task<SiteWorkerDto> SiteWorkerRead(int? siteWorkerMicrotingUid, int? siteId, int? workerId)
                                {
                                    string methodName = "SqlController.SiteWorkerRead";
                                    try
                                    {
                        Severity: Minor
                        Found in eFormCore/Infrastructure/SqlController.cs - About 1 hr to fix

                          Method OrganizationLoadAllFromRemote has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                  public async Task<OrganizationDto> OrganizationLoadAllFromRemote(string token)
                                  {
                                      _log.LogEverything("Communicator.OrganizationLoadAllFromRemote", "called");
                                      _log.LogVariable("Communicator.OrganizationLoadAllFromRemote", nameof(token), token);
                                      IHttp specialHttp;
                          Severity: Minor
                          Found in eFormCore/Communication/Communicator.cs - About 1 hr to fix

                            Method SpeechToText has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                    public async Task<int> SpeechToText(Stream pathToAudioFile, string language, string extension)
                                    {
                                        try
                                        {
                                            var url = $"{_addressSpeechToText}/audio/?token={_token}&sdk_ver={_dllVersion}&lang={language}";
                            Severity: Minor
                            Found in eFormCore/Communication/Http.cs - About 1 hr to fix

                              Method Post has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                      public async Task<string> Post(string data, string siteId, string contentType = "application/xml")
                                      {
                                          try
                                          {
                                              WriteDebugConsoleLogEntry($"{GetType()}.{MethodBase.GetCurrentMethod()?.Name}",
                              Severity: Minor
                              Found in eFormCore/Communication/Http.cs - About 1 hr to fix

                                Method HttpGet has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

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

                                  Method ValidateWordDocument has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                          public static void ValidateWordDocument(string filepath)
                                          {
                                              using (WordprocessingDocument wordprocessingDocument =
                                                     WordprocessingDocument.Open(filepath, true))
                                              {
                                  Severity: Minor
                                  Found in eFormCore/Helpers/ReportHelper.cs - About 1 hr to fix

                                    Method Setup has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                            [SetUp]
                                            public async Task Setup()
                                            {
                                                Console.WriteLine($"{DateTime.Now} : Starting MariaDb Container...");
                                                await _mariadbTestcontainer.StartAsync();
                                    Severity: Minor
                                    Found in eFormSDK.Base.Tests/DbTestFixture.cs - About 1 hr to fix

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

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

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

                                                [Test]
                                                public async Task Core_Case_CaseDeleteResult_DoesMarkCaseRemoved()
                                                {
                                        
                                                    // Arrance
                                        Severity: Minor
                                        Found in eFormSDK.Integration.Tests/CoreTestCase.cs - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language