Showing 886 of 3,221 total issues
Avoid deeply nested control flow statements. Open
Open
if (dataItem.Id == answer.FieldId)
{
dataItemListTemp2.Add(answer);
break;
}
Avoid deeply nested control flow statements. Open
Open
foreach (var value in profile.Values)
{
Console.WriteLine("{0}({1}): {2}", value.Tag, value.DataType, value);
if (value.Tag == ExifTag.Orientation)
Avoid deeply nested control flow statements. Open
Open
if (uploadedData.FileName != null)
{
jasperFieldXml.Append(Environment.NewLine);
string bigFilename =
$"{uploadedData.Id}_700_{uploadedData.Checksum}{uploadedData.Extension}";
Avoid deeply nested control flow statements. Open
Open
foreach (FieldValue answer in field.FieldValues)
{
jasperFieldXml += GetJasperFieldValue(field, answer, customPathForUploadedData)
.GetAwaiter().GetResult();
}
Avoid deeply nested control flow statements. Open
Open
foreach (var answer in lstAnswers)
{
if (dataItem.Id == answer.Id)
{
dataItemListTemp.Add(answer);
Avoid deeply nested control flow statements. Open
Open
if (unit.Manufacturer == "iOS")
{
// CW90, Normal, 270 CW, Rotate 180
if (value.GetValue().ToString() == "6")
{
Avoid deeply nested control flow statements. Open
Open
if (value.Tag == ExifTag.Orientation)
{
if (unit.Manufacturer == "iOS")
{
Console.WriteLine($"rotate value is {value.GetValue()}");
Avoid deeply nested control flow statements. Open
Open
if (preLabel != "")
{
CheckListTranslation checkListTranslation =
await dbContext.CheckListTranslations.FirstAsync(x =>
x.CheckListId == parentCheckList.Id && x.LanguageId == language.Id);
Avoid deeply nested control flow statements. Open
Open
foreach (KeyValuePair kvP in tempList)
{
if (kvP.Key == i.ToString())
{
value = kvP.Value;
Avoid deeply nested control flow statements. Open
Open
foreach (Check check in resp.Checks)
{
int unitUId = _sqlController.UnitRead(int.Parse(check.UnitId)).GetAwaiter().GetResult()
.UnitUId;
Log.LogVariable(methodName, nameof(unitUId), unitUId);
Avoid deeply nested control flow statements. Open
Open
if (preLabel != "")
lstReturn.Add(subField.Id + "|" + preLabel + sep + fieldTranslation.Text +
sep +
subFieldTranslation.Text);
else
Consider simplifying this complex logical expression. Open
Open
if (string.IsNullOrEmpty(nameFilter))
{
eILst = dbContext.EntityItems.Where(x => x.EntityGroupId == eG.Id
&& x.WorkflowState !=
Constants.Constants.WorkflowStates.Removed
Consider simplifying this complex logical expression. Open
Open
if (await db.CheckLists.AnyAsync(x => x.ParentId == checkList.Id))
{
List<Element> elementList = new List<Element>();
foreach (CheckList subList in await db.CheckLists.AsNoTracking()
.Where(x => x.WorkflowState != Constants.Constants.WorkflowStates.Removed)
Method CaseUpdateCompleted
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public async Task CaseUpdateCompleted(int microtingUId, int microtingCheckId, DateTime doneAt,
int workerMicrotingUId, int unitMicrotingUid)
Method NotificationUpdate
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public async Task NotificationUpdate(string notificationUId, int microtingUId, string workflowState,
string exception, string stacktrace)
Method ReadFieldValue
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
private async Task<Models.FieldValue> ReadFieldValue(MicrotingDbContext db, FieldValue reply, Field dbField, bool joinUploadedData,
Language language)
Method FieldValueReadAllValues
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public async Task<List<List<KeyValuePair>>> FieldValueReadAllValues(int fieldId, List<int> caseIds,
string customPathForUploadedData, Language language, bool gpsCoordinates)
Method FileProcessed
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public async Task FileProcessed(string urlString, string checkSum, string fileLocation, string fileName, int Id)
Method GetDataItem
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
private async Task GetDataItem(List<DataItem> lstDataItem, List<DataItemGroup> lstDataItemGroup, Field field,
Language language, bool includeDummyFields)
Method Advanced_WorkerUpdate
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public async Task<bool> Advanced_WorkerUpdate(int workerId, string firstName, string lastName, string email,
string legacyEmail)