Skip to content

Commit

Permalink
fix: lint violations
Browse files Browse the repository at this point in the history
  • Loading branch information
hamed-shirbandi committed Nov 9, 2024
1 parent 6099f23 commit 2e83e8e
Show file tree
Hide file tree
Showing 213 changed files with 611 additions and 618 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ tab_width = 4

# Organize usings
dotnet_separate_import_directive_groups = false
dotnet_sort_system_directives_first = false
dotnet_sort_system_directives_first = true
file_header_template = unset

# this. and Me. preferences
Expand Down
140 changes: 72 additions & 68 deletions .nuke/build.schema.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,53 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"$ref": "#/definitions/build",
"title": "Build Schema",
"definitions": {
"build": {
"type": "object",
"Host": {
"type": "string",
"enum": [
"AppVeyor",
"AzurePipelines",
"Bamboo",
"Bitbucket",
"Bitrise",
"GitHubActions",
"GitLab",
"Jenkins",
"Rider",
"SpaceAutomation",
"TeamCity",
"Terminal",
"TravisCI",
"VisualStudio",
"VSCode"
]
},
"ExecutableTarget": {
"type": "string",
"enum": [
"Clean",
"Compile",
"Lint",
"LintCheck",
"LogInformation",
"Preparation",
"Restore",
"RestoreDotNetTools",
"RunMutationTests",
"RunUnitTests"
]
},
"Verbosity": {
"type": "string",
"description": "",
"enum": [
"Verbose",
"Normal",
"Minimal",
"Quiet"
]
},
"NukeBuild": {
"properties": {
"Configuration": {
"type": "string",
"enum": [
"Debug",
"Release"
]
},
"Continue": {
"type": "boolean",
"description": "Indicates to continue a previously failed build attempt"
Expand All @@ -22,25 +57,8 @@
"description": "Shows the help text for this build assembly"
},
"Host": {
"type": "string",
"description": "Host for execution. Default is 'automatic'",
"enum": [
"AppVeyor",
"AzurePipelines",
"Bamboo",
"Bitbucket",
"Bitrise",
"GitHubActions",
"GitLab",
"Jenkins",
"Rider",
"SpaceAutomation",
"TeamCity",
"Terminal",
"TravisCI",
"VisualStudio",
"VSCode"
]
"$ref": "#/definitions/Host"
},
"NoLogo": {
"type": "boolean",
Expand Down Expand Up @@ -69,58 +87,44 @@
"type": "array",
"description": "List of targets to be skipped. Empty list skips all dependencies",
"items": {
"type": "string",
"enum": [
"Clean",
"Compile",
"Lint",
"LintCheck",
"LogInformation",
"Preparation",
"Restore",
"RestoreDotNetTools",
"RunMutationTests",
"RunUnitTests"
]
"$ref": "#/definitions/ExecutableTarget"
}
},
"Solution": {
"type": "string",
"description": "Path to a solution file that is automatically loaded"
},
"Target": {
"type": "array",
"description": "List of targets to be invoked. Default is '{default_target}'",
"items": {
"type": "string",
"enum": [
"Clean",
"Compile",
"Lint",
"LintCheck",
"LogInformation",
"Preparation",
"Restore",
"RestoreDotNetTools",
"RunMutationTests",
"RunUnitTests"
]
"$ref": "#/definitions/ExecutableTarget"
}
},
"TestResultDirectory": {
"type": "string"
},
"Verbosity": {
"type": "string",
"description": "Logging verbosity during build execution. Default is 'Normal'",
"$ref": "#/definitions/Verbosity"
}
}
}
},
"allOf": [
{
"properties": {
"Configuration": {
"type": "string",
"enum": [
"Minimal",
"Normal",
"Quiet",
"Verbose"
"Debug",
"Release"
]
},
"Solution": {
"type": "string",
"description": "Path to a solution file that is automatically loaded"
},
"TestResultDirectory": {
"type": "string"
}
}
},
{
"$ref": "#/definitions/NukeBuild"
}
}
]
}
4 changes: 2 additions & 2 deletions src/1-BuildingBlocks/Domain/Events/DomainEvent.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using MediatR;
using System;
using MediatR;
using Newtonsoft.Json;
using System;

namespace TaskoMask.BuildingBlocks.Domain.Events;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using FluentValidation;
using System;
using FluentValidation;
using MediatR;
using Microsoft.Extensions.DependencyInjection;
using System;
using TaskoMask.BuildingBlocks.Domain.Events;

namespace TaskoMask.BuildingBlocks.Infrastructure.Behaviors;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
using EasyCaching.Core;
using MediatR;
using Microsoft.Extensions.Configuration;
using System;
using System;
using System.Collections.Generic;
using System.Reflection;
using System.Threading;
using System.Threading.Tasks;
using EasyCaching.Core;
using MediatR;
using Microsoft.Extensions.Configuration;
using TaskoMask.BuildingBlocks.Application.Queries;

namespace TaskoMask.BuildingBlocks.Infrastructure.Behaviors;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using MediatR;
using System.Threading;
using System.Threading;
using System.Threading.Tasks;
using MediatR;
using TaskoMask.BuildingBlocks.Domain.Events;

namespace TaskoMask.BuildingBlocks.Infrastructure.Behaviors;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using FluentValidation;
using MediatR;
using System.Collections.Generic;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using FluentValidation;
using MediatR;
using TaskoMask.BuildingBlocks.Application.Commands;
using TaskoMask.BuildingBlocks.Application.Notifications;
using TaskoMask.BuildingBlocks.Contracts.Extensions;
Expand Down
4 changes: 2 additions & 2 deletions src/1-BuildingBlocks/Infrastructure/Bus/BusExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using MediatR;
using System;
using MediatR;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using System;
using TaskoMask.BuildingBlocks.Application.Bus;
using TaskoMask.BuildingBlocks.Infrastructure.MassTransit;

Expand Down
4 changes: 2 additions & 2 deletions src/1-BuildingBlocks/Infrastructure/Bus/InMemoryBus.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using MediatR;
using System.Threading.Tasks;
using System.Threading.Tasks;
using MediatR;
using TaskoMask.BuildingBlocks.Application.Bus;
using TaskoMask.BuildingBlocks.Application.Commands;
using TaskoMask.BuildingBlocks.Application.Notifications;
Expand Down
4 changes: 2 additions & 2 deletions src/1-BuildingBlocks/Infrastructure/Bus/MessageBus.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using MassTransit;
using System.Threading.Tasks;
using System.Threading.Tasks;
using MassTransit;
using TaskoMask.BuildingBlocks.Application.Bus;
using TaskoMask.BuildingBlocks.Contracts.Events;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using Microsoft.Extensions.Configuration;
using System.Collections.Generic;
using System.Threading.Tasks;
using Microsoft.Extensions.Configuration;
using Newtonsoft.Json;
using StackExchange.Redis;
using System.Collections.Generic;
using System.Threading.Tasks;
using TaskoMask.BuildingBlocks.Contracts.Services;
using TaskoMask.BuildingBlocks.Domain.Events;

Expand Down Expand Up @@ -115,7 +115,7 @@ private ConfigurationOptions GetRedisConfigurationOptions()
{
EndPoints = { _configuration["Redis:Connection"] },
Password = _configuration["Redis:Password"],
Ssl = false
Ssl = false,
};
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using MediatR.Pipeline;
using Microsoft.Extensions.Logging;
using System.Text.Json;
using System.Text.Json;
using System.Threading;
using System.Threading.Tasks;
using MediatR.Pipeline;
using Microsoft.Extensions.Logging;
using TaskoMask.BuildingBlocks.Application.Notifications;
using TaskoMask.BuildingBlocks.Contracts.Exceptions;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using MediatR.Pipeline;
using Microsoft.Extensions.Logging;
using System;
using System;
using System.Text.Json;
using System.Threading;
using System.Threading.Tasks;
using MediatR.Pipeline;
using Microsoft.Extensions.Logging;
using TaskoMask.BuildingBlocks.Application.Notifications;

namespace TaskoMask.BuildingBlocks.Infrastructure.Exceptions;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Microsoft.Extensions.Configuration;
using System;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using System;
using TaskoMask.BuildingBlocks.Infrastructure.Behaviors;
using TaskoMask.BuildingBlocks.Infrastructure.Bus;
using TaskoMask.BuildingBlocks.Infrastructure.EventSourcing;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Microsoft.Extensions.DependencyInjection;
using System;
using System;
using Microsoft.Extensions.DependencyInjection;

namespace TaskoMask.BuildingBlocks.Infrastructure.Mapping;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using MassTransit;
using System;
using MassTransit;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using System;

namespace TaskoMask.BuildingBlocks.Infrastructure.MassTransit;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using MongoDB.Driver;
using System.Threading.Tasks;
using System.Threading.Tasks;
using MongoDB.Driver;
using TaskoMask.BuildingBlocks.Contracts.Resources;
using TaskoMask.BuildingBlocks.Domain.Data;
using TaskoMask.BuildingBlocks.Domain.Entities;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using MongoDB.Driver;
using System;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using MongoDB.Driver;
using TaskoMask.BuildingBlocks.Domain.Data;
using TaskoMask.BuildingBlocks.Domain.Entities;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,22 @@ public static class CaptchaConfiguration
{
public static void AddCaptcha(this IServiceCollection services)
{
services.AddDNTCaptcha(
options =>
options
.UseCookieStorageProvider(SameSiteMode.Strict)
.AbsoluteExpiration(minutes: 7)
.ShowThousandsSeparators(false)
.WithNoise(pixelsDensity: 25, linesCount: 3)
.WithEncryptionKey("CaptchaEncryptionKey")
.InputNames(
new DNTCaptchaComponent
{
CaptchaHiddenInputName = "DNTCaptchaText",
CaptchaHiddenTokenName = "DNTCaptchaToken",
CaptchaInputName = "DNTCaptchaInputText"
}
)
.Identifier("dntCaptcha")
services.AddDNTCaptcha(options =>
options
.UseCookieStorageProvider(SameSiteMode.Strict)
.AbsoluteExpiration(minutes: 7)
.ShowThousandsSeparators(false)
.WithNoise(pixelsDensity: 25, linesCount: 3)
.WithEncryptionKey("CaptchaEncryptionKey")
.InputNames(
new DNTCaptchaComponent
{
CaptchaHiddenInputName = "DNTCaptchaText",
CaptchaHiddenTokenName = "DNTCaptchaToken",
CaptchaInputName = "DNTCaptchaInputText",
}
)
.Identifier("dntCaptcha")
);
}
}
Loading

0 comments on commit 2e83e8e

Please sign in to comment.