Showing 886 of 3,221 total issues
File CoreTestEntity.cs
has 1682 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
File 20200120093951_CleanupInSight.Designer.cs
has 1645 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
File 20200116074236_AddingSiteTaggins.Designer.cs
has 1631 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
File 20190924172326_AddingNewIndexOnCases.Designer.cs
has 1577 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
File 20190923100451_ChangeStringToInt.Designer.cs
has 1576 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
Method FieldValueReadAllValues
has a Cognitive Complexity of 221 (exceeds 20 allowed). Consider refactoring. Open
Open
public async Task<List<List<KeyValuePair>>> FieldValueReadAllValues(int fieldId, List<int> caseIds,
string customPathForUploadedData, string decimalSeparator, string thousandSeparator, Language language,
bool gpsCoordinates)
{
string methodName = "SqlController.FieldValueReadAllValues";
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
File 20190828054730_AddingNewVersionClasses.Designer.cs
has 1549 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
File 20190806093044_AddingSiteGroups.Designer.cs
has 1528 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
Method CreateDataItem
has 810 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private async Task CreateDataItem(int? parentFieldId, int elementId, DataItem dataItem, Language language)
{
string methodName = "SqlController.CreateDataItem";
try
{
File 20190711053344_AddingJasperDocxEnabledAttributesToCheckList.Designer.cs
has 1462 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
File 20190515064952_FixingNamingForFieldValues.Designer.cs
has 1458 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
File 20190531092007_AddingMissingAIonLogs.Designer.cs
has 1458 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
File 20190514053645_RefactoringAttributeNames.Designer.cs
has 1457 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
File 20190509074123_RefactoringidtoId.Designer.cs
has 1457 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
File 20190408084408_AddingMissingParentId.Designer.cs
has 1457 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
File 20190408081151_AddingFolders.Designer.cs
has 1455 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
File 20190319130214_AddingMissingForeignKeys.Designer.cs
has 1414 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
File CoreTestAdvanced.cs
has 1402 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
Method Core_Case_CaseReadAll_Short
has 733 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task Core_Case_CaseReadAll_Short()
{
// Arrance
File 20190318122928_FixingNamingOfSurveyConfigurationSites.Designer.cs
has 1283 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;