Showing 886 of 3,221 total issues
Method GenerateDataSetFromCases
has 10 arguments (exceeds 4 allowed). Consider refactoring. Open
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)
Method SQL_Template_TemplateCreate_CreatesTemplate
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
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
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
Open
[Test]
public async Task Core_Folders_CreateFolder_DoesCreateNewFolder()
{
// Arrange
Method surveyConfiguration_Delete_DoesDelete
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task surveyConfiguration_Delete_DoesDelete()
{
// Arrange
Random rnd = new Random();
Method FileCaseFindMUId
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public async Task<CaseDto> FileCaseFindMUId(string urlString)
{
string methodName = "SqlController.FileCaseFindMUId";
try
{
Method CheckExceptionLst
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private int CheckExceptionLst(ExceptionClass exceptionClass)
{
int count = 0;
#region find count
Method CreateSiteUnitWorkersForFullLoaed
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public async Task<string> CreateSiteUnitWorkersForFullLoaed(bool create)
{
if (create)
{
int id = t.GetRandomInt(6);
Method LocateList
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public List<string> LocateList(string textStr, string startStr, string endStr)
{
try
{
if (!textStr.Contains(startStr))
Method OrganizationLoadAllFromRemote
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public async Task<string> OrganizationLoadAllFromRemote()
{
await Task.Run(() => { });
// int id = t.GetRandomInt(6);
JObject contentToServer = JObject.FromObject(new
Method SQL_SiteWorker_SiteWorkerRead_ReadsSiteWorker
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task SQL_SiteWorker_SiteWorkerRead_ReadsSiteWorker()
{
// Arrance
Method SiteWorkerRead
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public async Task<SiteWorkerDto> SiteWorkerRead(int? siteWorkerMicrotingUid, int? siteId, int? workerId)
{
string methodName = "SqlController.SiteWorkerRead";
try
{
Method OrganizationLoadAllFromRemote
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public async Task<OrganizationDto> OrganizationLoadAllFromRemote(string token)
{
_log.LogEverything("Communicator.OrganizationLoadAllFromRemote", "called");
_log.LogVariable("Communicator.OrganizationLoadAllFromRemote", nameof(token), token);
IHttp specialHttp;
Method SpeechToText
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public async Task<int> SpeechToText(Stream pathToAudioFile, string language, string extension)
{
try
{
var url = $"{_addressSpeechToText}/audio/?token={_token}&sdk_ver={_dllVersion}&lang={language}";
Method Post
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public async Task<string> Post(string data, string siteId, string contentType = "application/xml")
{
try
{
WriteDebugConsoleLogEntry($"{GetType()}.{MethodBase.GetCurrentMethod()?.Name}",
Method HttpGet
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private async Task<string> HttpGet(string url, string contentType = null, bool addToken = false)
{
try
{
var start = DateTime.UtcNow;
Method ValidateWordDocument
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static void ValidateWordDocument(string filepath)
{
using (WordprocessingDocument wordprocessingDocument =
WordprocessingDocument.Open(filepath, true))
{
Method Setup
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[SetUp]
public async Task Setup()
{
Console.WriteLine($"{DateTime.Now} : Starting MariaDb Container...");
await _mariadbTestcontainer.StartAsync();
Method EntityGroups_Create_DoesCreate
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task EntityGroups_Create_DoesCreate()
{
EntityGroup entityGroup = new EntityGroup
{
Method Core_Case_CaseDeleteResult_DoesMarkCaseRemoved
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task Core_Case_CaseDeleteResult_DoesMarkCaseRemoved()
{
// Arrance