Showing 886 of 3,221 total issues
Method SQL_UploadedData_FileRead_DoesReturnOneUploadedData
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
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
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
Open
[Test]
public async Task Core_UploadedData_UploadedDataRead_DoesReturnOneUploadedDataClass()
{
// Arrance
string checksum = "";
Method siteSurveyConfiguration_Delete_DoesDelete
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
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
Open
private async Task<string> HttpPost(string url, StringContent content, string contentType = null,
bool addToken = false, bool followRedirect = false)
{
try
{
Method HttpDelete
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private async Task<string> HttpDelete(string url, string contentType = null, bool addToken = false,
bool followRedirect = false)
{
try
{
Method PutFileToS3Storage
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
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}");
Method Core_Case_CaseIdLookUp_returnsId
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task Core_Case_CaseIdLookUp_returnsId()
{
// Arrange
Method SiteTags_Delete_DoesDelete
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task SiteTags_Delete_DoesDelete()
{
// Arrange
Random rnd = new Random();
Method TemplateUpdateFieldIdsForColumns
has 11 arguments (exceeds 4 allowed). Consider refactoring. Open
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)
Method Advanced_TemplateUpdateFieldIdsForColumns
has 11 arguments (exceeds 4 allowed). Consider refactoring. Open
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)
Method SQL_Case_CaseRetract_DoesCaseGetRetracted
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
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
Open
public async Task<SiteDto> SiteReadSimple(int microting_uid)
{
string methodName = "SqlController.SiteReadSimple";
try
{
Method Down
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "answer_value_versions");
Method HttpPut
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private async Task<string> HttpPut(string url, StringContent content, string contentType = null,
bool addToken = false, bool followRedirect = false)
{
try
{
Method Languages_Delete_DoesSetWorkflowStateToRemoved
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task Languages_Delete_DoesSetWorkflowStateToRemoved()
{
//Arrange
Method QuestionSets_Create_DoesCreate
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task QuestionSets_Create_DoesCreate()
{
//Arrange
Consider simplifying this complex logical expression. Open
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)
Method SQL_Case_CaseUpdateRetrieved_DoesCaseGetUpdated
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
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
Open
[Test]
public async Task SQL_Site_SiteReadSimple_ReadsSite()
{
// Arrance