Showing 886 of 3,221 total issues
Method Advanced_SiteItemUpdate
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public async Task<bool> Advanced_SiteItemUpdate(int siteId, string name, string languageCode)
{
string methodName = "Core.Advanced_SiteItemUpdate";
try
{
Class CoreTesteFormCreateInDB
has 24 methods (exceeds 20 allowed). Consider refactoring. Open
Open
[Parallelizable(ParallelScope.Fixtures)]
[TestFixture]
public class CoreTesteFormCreateInDB : DbTestFixture
{
private Core sut;
Class CoreTesteFormFromXML
has 24 methods (exceeds 20 allowed). Consider refactoring. Open
Open
[Parallelizable(ParallelScope.Fixtures)]
[TestFixture]
public class CoreTesteFormFromXML : DbTestFixture
{
private Core sut;
Class CoreTestCase
has 24 methods (exceeds 20 allowed). Consider refactoring. Open
Open
[Parallelizable(ParallelScope.Fixtures)]
[TestFixture]
public class CoreTestCase : DbTestFixture
{
private Core sut;
Method Core_eForm_SimpleDateFormFromXML_ReturnseMainElement
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task Core_eForm_SimpleDateFormFromXML_ReturnseMainElement()
{
// Arrange
string xmlstring = @"
Method UploadedData_Delete_DoesSetWorkflowstateToRemoved
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task UploadedData_Delete_DoesSetWorkflowstateToRemoved()
{
//Arrange
Method Down
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropForeignKey(
name: "FK_field_values_uploaded_datas_UploadedDatasId",
table: "field_values");
Method OptionTranslation_Create_DoesCreate_WO_MicrotingUid
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task OptionTranslation_Create_DoesCreate_WO_MicrotingUid()
{
//Arrange
Method SurveyConfigurations_Update_DoesUpdate
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task SurveyConfigurations_Update_DoesUpdate()
{
//Arrange
Random rnd = new Random();
File SqlControllerTestUploadedData.cs
has 276 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
Method Up
has 65 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "ExtraFieldValues",
columns: table => new
Method GetJasperFieldValue
has 65 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private async Task<string> GetJasperFieldValue(Field field, FieldValue answer, string customPathForUploadedData)
{
var token = await GetSdkSetting(Settings.token);
StringBuilder jasperFieldXml = new StringBuilder();
string latitude = answer.Latitude;
Method SQL_PostCase_CaseReadFirstId
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task SQL_PostCase_CaseReadFirstId()
{
// Arrance
Random rnd = new Random();
Method options_Delete_DoesDelete
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task options_Delete_DoesDelete()
{
// Arrange
#region QuestionSet
Method LanguageQuestionSet_Update_DoesUpdate_W_MicrotingUid
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task LanguageQuestionSet_Update_DoesUpdate_W_MicrotingUid()
{
//Assert
Random rnd = new Random();
Method CasesToCsv
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public async Task<string> CasesToCsv(int templateId, DateTime? start, DateTime? end, string pathAndName,
string customPathForUploadedData, string decimalSeparator, string thousandSeparator, bool utcTime,
CultureInfo cultureInfo, TimeZoneInfo timeZoneInfo, Language language, bool gpsCoordinates,
bool includeCheckListText)
{
Method LanguageQuestionSet_Update_DoesUpdate_W_MicrotingUid_RemovesUid
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task LanguageQuestionSet_Update_DoesUpdate_W_MicrotingUid_RemovesUid()
{
//Assert
Random rnd = new Random();
File Field.cs
has 272 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
Method Core_eFormSimpleTimerFormFromXML_ReturnseMainElement
has 63 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task Core_eFormSimpleTimerFormFromXML_ReturnseMainElement()
{
string xmlstring = @"
<?xml version='1.0' encoding='UTF-8'?>
Method Core_eForm_SimplePdfFormFromXML_ReturnseMainElement
has 63 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task Core_eForm_SimplePdfFormFromXML_ReturnseMainElement()
{
// Arrange
string xmlstring = @"