Showing 886 of 3,221 total issues
Method SQL_Unit_UnitUpdate_UpdatesUnit
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task SQL_Unit_UnitUpdate_UpdatesUnit()
{
// Arrance
Method SQL_Unit_UnitRead_ReadsUnit
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task SQL_Unit_UnitRead_ReadsUnit()
{
// Arrance
Method Core_Case_CaseReadByCaseId_Returns_cDto
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task Core_Case_CaseReadByCaseId_Returns_cDto()
{
// Arrance
#region Arrance
Method Core_Case_CaseLookupCaseId_Returns_cDto
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task Core_Case_CaseLookupCaseId_Returns_cDto()
{
// Arrance
#region Arrance
Method Core_Case_CaseLookupCaseUId_Returns_lstDto
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task Core_Case_CaseLookupCaseUId_Returns_lstDto()
{
// Arrance
#region Arrance
Method Core_Case_CaseReadFirstId
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task Core_Case_CaseReadFirstId()
{
// Arrance
#region Arrance
Method Down
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropForeignKey(
name: "FK_LanguageQuestionSetVersions_LanguageQuestionSets_LanguageQue~",
table: "LanguageQuestionSetVersions");
Method Up
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected override void Up(MigrationBuilder migrationBuilder)
{
//Setup for SQL Server Provider
string autoIDGenStrategy = "SqlServer:ValueGenerationStrategy";
File SqlControllerTestWorker.cs
has 262 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
using System;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
Method SQL_Site_SimpleSiteGetAll_DoesReturnSiteList
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task SQL_Site_SimpleSiteGetAll_DoesReturnSiteList()
{
// Arrance
Method SQL_Unit_UnitDelete_DeletesUnit
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task SQL_Unit_UnitDelete_DeletesUnit()
{
// Arrance
Method GetChecksAndFields
has a Cognitive Complexity of 32 (exceeds 20 allowed). Consider refactoring. Open
Open
private void GetChecksAndFields(ref string clsLst, ref string fldLst, List<Element> elementLst,
string customPathForUploadedData)
{
var db = DbContextHelper.GetDbContext();
string jasperFieldXml = "";
- 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
Method question_Create_DoesCreate_AllTrue
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task question_Create_DoesCreate_AllTrue()
{
// Arrange
string name = Guid.NewGuid().ToString();
Method question_Create_DoesCreate_QuestionSetTrue_PrioritisedValidDisplayTrue
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task question_Create_DoesCreate_QuestionSetTrue_PrioritisedValidDisplayTrue()
{
// Arrange
string name = Guid.NewGuid().ToString();
Method question_Create_DoesCreate_QuestionSetTrue_BackButtonEnabledTrue
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task question_Create_DoesCreate_QuestionSetTrue_BackButtonEnabledTrue()
{
// Arrange
string name = Guid.NewGuid().ToString();
Method question_Create_DoesCreate_QuestionSetTrue_ImageTrue
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task question_Create_DoesCreate_QuestionSetTrue_ImageTrue()
{
// Arrange
string name = Guid.NewGuid().ToString();
Method question_Create_DoesCreate_QuestionSetTrue_ValidDisplayBackButtonEnabledTrue
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task question_Create_DoesCreate_QuestionSetTrue_ValidDisplayBackButtonEnabledTrue()
{
// Arrange
string name = Guid.NewGuid().ToString();
Method question_Create_DoesCreate_QuestionSetFalse_PrioritisedTrue
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task question_Create_DoesCreate_QuestionSetFalse_PrioritisedTrue()
{
// Arrange
string name = Guid.NewGuid().ToString();
Method question_Create_DoesCreate_QuestionSetTrue_PrioritisedImageTrue
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task question_Create_DoesCreate_QuestionSetTrue_PrioritisedImageTrue()
{
// Arrange
string name = Guid.NewGuid().ToString();
Method question_Create_DoesCreate_QuestionSetTrue_PrioritisedValidDisplayImageTrue
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task question_Create_DoesCreate_QuestionSetTrue_PrioritisedValidDisplayImageTrue()
{
// Arrange
string name = Guid.NewGuid().ToString();