Showing 886 of 3,221 total issues
Method EntityGroupCreate
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public async Task<EntityGroup> EntityGroupCreate(string name, string entityType, string description)
{
string methodName = "SqlController.EntityGroupCreate";
try
{
Method FieldValueRead
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public async Task<Models.FieldValue> FieldValueRead(FieldValue reply, bool joinUploadedData, Language language)
{
string methodName = "SqlController.FieldValueRead";
try
Method FileRead
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public async Task<UploadedData> FileRead()
{
string methodName = "SqlController.FileRead";
try
{
Method InsertSignature
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static void InsertSignature(WordprocessingDocument wordDoc, List<KeyValuePair<string, string>> pictures)
{
foreach (var keyValuePair in pictures)
{
WriteDebugConsoleLogEntry(new LogEntry(2, "ReportHelper.InsertSignature",
Method Advanced_EntityGroupAll
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
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");
Method SiteTags_Create_DoesCreate
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task SiteTags_Create_DoesCreate()
{
// Arrange
Random rnd = new Random();
Method Languages_Create_DoesCreate
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task Languages_Create_DoesCreate()
{
//Arrange
Method CaseReadAll
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public Task<CaseList> CaseReadAll(int? templateId, DateTime? start, DateTime? end, string workflowState,
string searchKey, bool descendingSort, string sortParameter, int pageIndex, int pageSize)
Method DocxToPdf
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
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)
Method CreateEntityItem
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public async Task<EntityItem> CreateEntityItem(string description, int displayIndex, int entityGroupId,
string entityItemUId, string microtingUId, string name, short? synced, int version, string workflowState)
Method SQL_SiteWorker_SiteWorkerDelete_DeletesSiteWorker
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
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
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
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
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
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
Open
[Test]
public async Task surveyConfiguration_Create_DoesCreate()
{
// Arrange
Random rnd = new Random();
Method EntityGroupDelete
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public async Task<string> EntityGroupDelete(string entityGroupMUId)
{
string methodName = "SqlController.EntityGroupDelete";
try
{
Method CreateCase
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
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
Method EntityGroupCreate
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
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);
Method SearchAndReplace
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private static string SearchAndReplace(string docText, SortedDictionary<string, string> valuesToReplace)
{
foreach (var fieldValue in valuesToReplace.Reverse())
{
WriteDebugConsoleLogEntry(new LogEntry(2, "ReportHelper.SearchAndReplace",