Showing 3,203 of 3,219 total issues
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_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_PrioritisedBackButtonEnabledImageTrue
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task question_Create_DoesCreate_QuestionSetTrue_PrioritisedBackButtonEnabledImageTrue()
{
// Arrange
string name = Guid.NewGuid().ToString();
Method question_Create_DoesCreate_QuestionSetTrue_ValidDisplayImageTrue
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task question_Create_DoesCreate_QuestionSetTrue_ValidDisplayImageTrue()
{
// Arrange
string name = Guid.NewGuid().ToString();
Method question_Create_DoesCreate_QuestionSetTrue_ValidDisplayTrue
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task question_Create_DoesCreate_QuestionSetTrue_ValidDisplayTrue()
{
// 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_ValidDisplayBackButtonEnabledImageTrue
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task question_Create_DoesCreate_QuestionSetTrue_ValidDisplayBackButtonEnabledImageTrue()
{
// Arrange
string name = Guid.NewGuid().ToString();
Method question_Create_DoesCreate_QuestionSetTrue_PrioritisedBackButtonEnabledTrue
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task question_Create_DoesCreate_QuestionSetTrue_PrioritisedBackButtonEnabledTrue()
{
// Arrange
string name = Guid.NewGuid().ToString();
Method question_Create_DoesCreate_QuestionSetTrue_PrioritisedTrue
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task question_Create_DoesCreate_QuestionSetTrue_PrioritisedTrue()
{
// 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_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_BackButtonEnabledImageTrue
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task question_Create_DoesCreate_QuestionSetTrue_BackButtonEnabledImageTrue()
{
// Arrange
string name = Guid.NewGuid().ToString();
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_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_PrioritisedValidDisplayBackButtonEnabledTrue
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Test]
public async Task question_Create_DoesCreate_QuestionSetTrue_PrioritisedValidDisplayBackButtonEnabledTrue()
{
// 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_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();
Method Down
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "LastIp",
table: "units");
Method Start
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public async Task<bool> Start(string connectionString)
{
string methodName = "Core.Start";
try