mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
refactor: ♻ lint analyzer config
This commit is contained in:
parent
5387d83631
commit
17c7e9d84f
11 changed files with 20 additions and 31 deletions
|
|
@ -7,6 +7,15 @@ root = true
|
|||
# All files
|
||||
[*]
|
||||
indent_style = space
|
||||
|
||||
# XML project files
|
||||
[*.{csproj,vbproj,vcxproj,vcxproj.filters,proj,projitems,shproj}]
|
||||
indent_size = 2
|
||||
|
||||
# XML config files
|
||||
[*.{props,targets,ruleset,config,nuspec,resx,vsixmanifest,vsct}]
|
||||
indent_size = 2
|
||||
|
||||
# Code files
|
||||
[*.{cs,csx,vb,vbx}]
|
||||
indent_size = 4
|
||||
|
|
@ -124,9 +133,9 @@ csharp_preserve_single_line_blocks = true
|
|||
# Modifier preferences
|
||||
visual_basic_preferred_modifier_order = Partial,Default,Private,Protected,Public,Friend,NotOverridable,Overridable,MustOverride,Overloads,Overrides,MustInherit,NotInheritable,Static,Shared,Shadows,ReadOnly,WriteOnly,Dim,Const,WithEvents,Widening,Narrowing,Custom,Async:suggestion
|
||||
|
||||
|
||||
# FilterLists Services custom pairs
|
||||
# FilterLists custom
|
||||
[*.cs]
|
||||
dotnet_diagnostic.CA1062.severity = suggestion
|
||||
dotnet_diagnostic.CA1812.severity = suggestion
|
||||
dotnet_diagnostic.CA2007.severity = none
|
||||
dotnet_diagnostic.CS1591.severity = silent
|
||||
|
||||
#https://github.com/JosefPihrt/Roslynator/blob/master/docs/Options.md
|
||||
roslynator.RCS1090.invert = true
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
# To learn more about .editorconfig see https://aka.ms/editorconfigdocs
|
||||
|
||||
[*.cs]
|
||||
dotnet_diagnostic.CS1591.severity = suggestion
|
||||
|
|
@ -14,9 +14,7 @@ public class PingController : ControllerBase
|
|||
/// <returns>Pong.</returns>
|
||||
[HttpGet]
|
||||
[ProducesResponseType(typeof(string), StatusCodes.Status200OK)]
|
||||
#pragma warning disable CA1822 // Mark members as static
|
||||
public ActionResult<string> Ping()
|
||||
#pragma warning restore CA1822 // Mark members as static
|
||||
{
|
||||
return "pong";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +0,0 @@
|
|||
# To learn more about .editorconfig see https://aka.ms/editorconfigdocs
|
||||
|
||||
[*.cs]
|
||||
dotnet_diagnostic.CA1034.severity = suggestion
|
||||
dotnet_diagnostic.CA1724.severity = suggestion
|
||||
|
|
@ -5,7 +5,7 @@ namespace FilterLists.Archival.Domain.Extensions
|
|||
{
|
||||
internal static class UriExtension
|
||||
{
|
||||
private static readonly Uri DummyBaseUri = new Uri("http://localhost");
|
||||
private static readonly Uri DummyBaseUri = new("http://localhost");
|
||||
|
||||
public static string GetFileExtension(this Uri uri)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ trigger:
|
|||
services/Archival/FilterLists.Archival.Infrastructure/*,
|
||||
services/Archival/FilterLists.Archival.Application/*,
|
||||
services/Archival/FilterLists.Archival.Api/*,
|
||||
services/.editorignore,
|
||||
services/.dockerignore,
|
||||
docker-compose/docker-compose.yml,
|
||||
docker-compose/docker-compose.prod.yml,
|
||||
|
|
@ -34,6 +35,7 @@ pr:
|
|||
services/Archival/FilterLists.Archival.Infrastructure/*,
|
||||
services/Archival/FilterLists.Archival.Application/*,
|
||||
services/Archival/FilterLists.Archival.Api/*,
|
||||
services/.editorignore,
|
||||
services/.dockerignore,
|
||||
docker-compose/docker-compose.yml,
|
||||
docker-compose/docker-compose.prod.yml,
|
||||
|
|
|
|||
|
|
@ -1,4 +0,0 @@
|
|||
# To learn more about .editorconfig see https://aka.ms/editorconfigdocs
|
||||
|
||||
[*.cs]
|
||||
dotnet_diagnostic.CS1591.severity = suggestion
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
# To learn more about .editorconfig see https://aka.ms/editorconfigdocs
|
||||
|
||||
[*.cs]
|
||||
dotnet_diagnostic.CA1034.severity = suggestion
|
||||
dotnet_diagnostic.CA1724.severity = suggestion
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
# To learn more about .editorconfig see https://aka.ms/editorconfigdocs
|
||||
|
||||
[*.cs]
|
||||
dotnet_diagnostic.CA1707.severity = suggestion
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
# To learn more about .editorconfig see https://aka.ms/editorconfigdocs
|
||||
|
||||
[*.cs]
|
||||
dotnet_diagnostic.CS8625.severity = suggestion
|
||||
dotnet_diagnostic.CS8625.severity = silent
|
||||
|
|
@ -12,6 +12,7 @@ trigger:
|
|||
services/Directory/FilterLists.Directory.Api.Contracts/*,
|
||||
services/Directory/FilterLists.Directory.Application/*,
|
||||
services/Directory/FilterLists.Directory.Api/*,
|
||||
services/.editorignore,
|
||||
services/.dockerignore,
|
||||
docker-compose/docker-compose.yml,
|
||||
docker-compose/docker-compose.prod.yml,
|
||||
|
|
@ -35,6 +36,7 @@ pr:
|
|||
services/Directory/FilterLists.Directory.Api.Contracts/*,
|
||||
services/Directory/FilterLists.Directory.Application/*,
|
||||
services/Directory/FilterLists.Directory.Api/*,
|
||||
services/.editorignore,
|
||||
services/.dockerignore,
|
||||
docker-compose/docker-compose.yml,
|
||||
docker-compose/docker-compose.prod.yml,
|
||||
|
|
|
|||
Loading…
Reference in a new issue