diff --git a/src/Libraries/System.Cloud.Messaging/DependencyInjection/Extensions/AsyncProcessingPipelineBuilderExtensions.cs b/src/Libraries/System.Cloud.Messaging/DependencyInjection/Extensions/AsyncProcessingPipelineBuilderExtensions.cs index be0a341514a..25299a05fe6 100644 --- a/src/Libraries/System.Cloud.Messaging/DependencyInjection/Extensions/AsyncProcessingPipelineBuilderExtensions.cs +++ b/src/Libraries/System.Cloud.Messaging/DependencyInjection/Extensions/AsyncProcessingPipelineBuilderExtensions.cs @@ -29,12 +29,12 @@ public static class AsyncProcessingPipelineBuilderExtensions /// The builder for async processing pipeline. /// to chain additional calls. /// Any argument is . - public static IAsyncProcessingPipelineBuilder AddNamedSingleton(this IAsyncProcessingPipelineBuilder pipelineBuilder) + public static IAsyncProcessingPipelineBuilder AddKeyedSingleton(this IAsyncProcessingPipelineBuilder pipelineBuilder) where T : class { _ = Throw.IfNull(pipelineBuilder); - _ = pipelineBuilder.Services.AddNamedSingleton(pipelineBuilder.PipelineName, sp => sp.GetRequiredService()); + _ = pipelineBuilder.Services.AddKeyedSingleton(pipelineBuilder.PipelineName, (sp, _) => sp.GetRequiredService()); return pipelineBuilder; } @@ -46,14 +46,14 @@ public static IAsyncProcessingPipelineBuilder AddNamedSingleton(this IAsyncPr /// The implementation factory for the singleton type. /// to chain additional calls. /// Any argument is . - public static IAsyncProcessingPipelineBuilder AddNamedSingleton(this IAsyncProcessingPipelineBuilder pipelineBuilder, + public static IAsyncProcessingPipelineBuilder AddKeyedSingleton(this IAsyncProcessingPipelineBuilder pipelineBuilder, Func implementationFactory) where T : class { _ = Throw.IfNull(pipelineBuilder); _ = Throw.IfNull(implementationFactory); - _ = pipelineBuilder.Services.AddNamedSingleton(pipelineBuilder.PipelineName, implementationFactory); + _ = pipelineBuilder.Services.AddKeyedSingleton(pipelineBuilder.PipelineName, implementationFactory); return pipelineBuilder; } @@ -66,7 +66,7 @@ public static IAsyncProcessingPipelineBuilder AddNamedSingleton(this IAsyncPr /// The implementation factory for the singleton type. /// to chain additional calls. /// Any argument is . - public static IAsyncProcessingPipelineBuilder AddNamedSingleton(this IAsyncProcessingPipelineBuilder pipelineBuilder, + public static IAsyncProcessingPipelineBuilder AddKeyedSingleton(this IAsyncProcessingPipelineBuilder pipelineBuilder, string name, Func implementationFactory) where T : class @@ -75,7 +75,7 @@ public static IAsyncProcessingPipelineBuilder AddNamedSingleton(this IAsyncPr _ = Throw.IfNullOrEmpty(name); _ = Throw.IfNull(implementationFactory); - _ = pipelineBuilder.Services.AddNamedSingleton(name, implementationFactory); + _ = pipelineBuilder.Services.AddKeyedSingleton(name, (sp, _) => implementationFactory(sp)); return pipelineBuilder; } @@ -94,7 +94,7 @@ public static IAsyncProcessingPipelineBuilder ConfigureMessageDestination(pipelineBuilder.PipelineName, sp => sp.GetRequiredService()); + _ = pipelineBuilder.Services.AddKeyedSingleton(pipelineBuilder.PipelineName, (sp, _) => sp.GetRequiredService()); return pipelineBuilder; } @@ -113,7 +113,7 @@ public static IAsyncProcessingPipelineBuilder ConfigureMessageDestination(pipelineBuilder.PipelineName, implementationFactory); + _ = pipelineBuilder.Services.AddKeyedSingleton(pipelineBuilder.PipelineName, (sp, _) => implementationFactory(sp)); return pipelineBuilder; } @@ -135,7 +135,7 @@ public static IAsyncProcessingPipelineBuilder ConfigureMessageDestination(name, implementationFactory); + _ = pipelineBuilder.Services.AddKeyedSingleton(name, (sp, _) => implementationFactory(sp)); return pipelineBuilder; } @@ -154,7 +154,7 @@ public static IAsyncProcessingPipelineBuilder ConfigureMessageSource(th { _ = Throw.IfNull(pipelineBuilder); - _ = pipelineBuilder.Services.AddNamedSingleton(pipelineBuilder.PipelineName, sp => sp.GetRequiredService()); + _ = pipelineBuilder.Services.AddKeyedSingleton(pipelineBuilder.PipelineName, (sp, _) => sp.GetRequiredService()); return pipelineBuilder; } @@ -173,7 +173,7 @@ public static IAsyncProcessingPipelineBuilder ConfigureMessageSource(th _ = Throw.IfNull(pipelineBuilder); _ = Throw.IfNull(implementationFactory); - _ = pipelineBuilder.Services.AddNamedSingleton(pipelineBuilder.PipelineName, implementationFactory); + _ = pipelineBuilder.Services.AddKeyedSingleton(pipelineBuilder.PipelineName, (sp, _) => implementationFactory(sp)); return pipelineBuilder; } @@ -193,7 +193,7 @@ public static IAsyncProcessingPipelineBuilder AddMessageMiddleware( { _ = Throw.IfNull(pipelineBuilder); - _ = pipelineBuilder.Services.AddNamedSingleton(pipelineBuilder.PipelineName, sp => sp.GetRequiredService()); + _ = pipelineBuilder.Services.AddKeyedSingleton(pipelineBuilder.PipelineName, (sp, _) => sp.GetRequiredService()); return pipelineBuilder; } @@ -215,7 +215,7 @@ public static IAsyncProcessingPipelineBuilder AddMessageMiddleware( _ = Throw.IfNull(pipelineBuilder); _ = Throw.IfNull(implementationFactory); - _ = pipelineBuilder.Services.AddNamedSingleton(pipelineBuilder.PipelineName, implementationFactory); + _ = pipelineBuilder.Services.AddKeyedSingleton(pipelineBuilder.PipelineName, (sk, _) => implementationFactory(sk)); return pipelineBuilder; } @@ -234,7 +234,7 @@ public static IAsyncProcessingPipelineBuilder ConfigureTerminalMessageDelegate(t { _ = Throw.IfNull(pipelineBuilder); - _ = pipelineBuilder.Services.AddNamedSingleton(pipelineBuilder.PipelineName, sp => sp.GetRequiredService()); + _ = pipelineBuilder.Services.AddKeyedSingleton(pipelineBuilder.PipelineName, (sp, _) => sp.GetRequiredService()); return pipelineBuilder; } @@ -256,7 +256,7 @@ public static IAsyncProcessingPipelineBuilder ConfigureTerminalMessageDelegate(t _ = Throw.IfNull(pipelineBuilder); _ = Throw.IfNull(implementationFactory); - _ = pipelineBuilder.Services.AddNamedSingleton(pipelineBuilder.PipelineName, implementationFactory); + _ = pipelineBuilder.Services.AddKeyedSingleton(pipelineBuilder.PipelineName, (sp, _) => implementationFactory(sp)); return pipelineBuilder; } @@ -275,7 +275,7 @@ public static IAsyncProcessingPipelineBuilder ConfigureMessageConsumer(pipelineBuilder.PipelineName, sp => sp.GetRequiredService()); + _ = pipelineBuilder.Services.AddKeyedSingleton(pipelineBuilder.PipelineName, (sp, _) => sp.GetRequiredService()); return pipelineBuilder; } @@ -294,7 +294,7 @@ public static IAsyncProcessingPipelineBuilder ConfigureMessageConsumer(pipelineBuilder.PipelineName, implementationFactory); + _ = pipelineBuilder.Services.AddKeyedSingleton(pipelineBuilder.PipelineName, (sp, _) => implementationFactory(sp)); return pipelineBuilder; } @@ -313,8 +313,7 @@ public static void RunConsumerAsBackgroundService(this IAsyncProcessingPipelineB _ = Throw.IfNull(pipelineBuilder); _ = pipelineBuilder.Services.AddSingleton(serviceProvider => { - INamedServiceProvider namedMessageConsumerProvider = serviceProvider.GetRequiredService>(); - MessageConsumer messageConsumer = namedMessageConsumerProvider.GetRequiredService(pipelineBuilder.PipelineName); + MessageConsumer messageConsumer = serviceProvider.GetRequiredKeyedService(pipelineBuilder.PipelineName); return new ConsumerBackgroundService(messageConsumer); }); } diff --git a/src/Libraries/System.Cloud.Messaging/DependencyInjection/Extensions/ServiceProviderExtensions.cs b/src/Libraries/System.Cloud.Messaging/DependencyInjection/Extensions/ServiceProviderExtensions.cs index 511517d6d96..6a658094433 100644 --- a/src/Libraries/System.Cloud.Messaging/DependencyInjection/Extensions/ServiceProviderExtensions.cs +++ b/src/Libraries/System.Cloud.Messaging/DependencyInjection/Extensions/ServiceProviderExtensions.cs @@ -29,7 +29,7 @@ public static IMessageSource GetMessageSource(this IServiceProvider serviceProvi _ = Throw.IfNull(serviceProvider); _ = Throw.IfNullOrEmpty(pipelineName); - return serviceProvider.GetRequiredService>().GetRequiredService(pipelineName); + return serviceProvider.GetRequiredKeyedService(pipelineName); } /// @@ -45,7 +45,7 @@ public static IReadOnlyList GetMessageMiddlewares(this IServ _ = Throw.IfNull(serviceProvider); _ = Throw.IfNullOrEmpty(pipelineName); - return serviceProvider.GetRequiredService>().GetServices(pipelineName).ToList(); + return serviceProvider.GetKeyedServices(pipelineName).ToArray(); } /// @@ -61,6 +61,6 @@ public static MessageDelegate GetMessageDelegate(this IServiceProvider servicePr _ = Throw.IfNull(serviceProvider); _ = Throw.IfNullOrEmpty(pipelineName); - return serviceProvider.GetRequiredService>().GetRequiredService(pipelineName); + return serviceProvider.GetRequiredKeyedService(pipelineName); } } diff --git a/src/Libraries/System.Cloud.Messaging/Middlewares/Extensions/LatencyRecorderMiddlewareExtensions.cs b/src/Libraries/System.Cloud.Messaging/Middlewares/Extensions/LatencyRecorderMiddlewareExtensions.cs index a0f237dc3e8..f9c9a9020b3 100644 --- a/src/Libraries/System.Cloud.Messaging/Middlewares/Extensions/LatencyRecorderMiddlewareExtensions.cs +++ b/src/Libraries/System.Cloud.Messaging/Middlewares/Extensions/LatencyRecorderMiddlewareExtensions.cs @@ -53,8 +53,8 @@ public static IAsyncProcessingPipelineBuilder AddLatencyContextMiddleware(thi _ = Throw.IfNull(implementationFactory); _ = Throw.IfNull(exporterFactory); - _ = pipelineBuilder.Services.AddNamedSingleton(pipelineBuilder.PipelineName, - sp => new LatencyContextProviderMiddleware(implementationFactory(sp), exporterFactory(sp))); + _ = pipelineBuilder.Services.AddKeyedSingleton(pipelineBuilder.PipelineName, + (sp, _) => new LatencyContextProviderMiddleware(implementationFactory(sp), exporterFactory(sp))); return pipelineBuilder; } @@ -73,8 +73,8 @@ public static IAsyncProcessingPipelineBuilder AddLatencyContextMiddleware(thi _ = Throw.IfNull(pipelineBuilder); _ = Throw.IfNull(implementationFactory); - _ = pipelineBuilder.Services.AddNamedSingleton(pipelineBuilder.PipelineName, - sp => new LatencyContextMiddleware(implementationFactory(sp))); + _ = pipelineBuilder.Services.AddKeyedSingleton(pipelineBuilder.PipelineName, + (sp, _) => new LatencyContextMiddleware(implementationFactory(sp))); return pipelineBuilder; } @@ -101,7 +101,7 @@ public static IAsyncProcessingPipelineBuilder AddLatencyRecorderMessageMiddlewar _ = Throw.IfNull(successMeasureToken); _ = Throw.IfNull(failureMeasureToken); - _ = pipelineBuilder.Services.AddNamedSingleton(pipelineBuilder.PipelineName, sp => new LatencyRecorderMiddleware(successMeasureToken, failureMeasureToken)); + _ = pipelineBuilder.Services.AddKeyedSingleton(pipelineBuilder.PipelineName, (_, _) => new LatencyRecorderMiddleware(successMeasureToken, failureMeasureToken)); return pipelineBuilder; } } diff --git a/src/Libraries/System.Cloud.Messaging/System.Cloud.Messaging.csproj b/src/Libraries/System.Cloud.Messaging/System.Cloud.Messaging.csproj index 6cf8fd5d3e8..f9da8630b83 100644 --- a/src/Libraries/System.Cloud.Messaging/System.Cloud.Messaging.csproj +++ b/src/Libraries/System.Cloud.Messaging/System.Cloud.Messaging.csproj @@ -21,7 +21,6 @@ - diff --git a/src/ToBeMoved/.editorconfig b/src/ToBeMoved/.editorconfig deleted file mode 100644 index 627a654267f..00000000000 --- a/src/ToBeMoved/.editorconfig +++ /dev/null @@ -1,6118 +0,0 @@ -# Created by DiagConfig, the diagnostic config generator -# Generated : 2023-05-24 21:09:51Z -# Max Tier : 2147483647 -# Attributes: general, performance, production -# Analyzers : ILLink.RoslynAnalyzer, Microsoft.AspNetCore.App.Analyzers, Microsoft.AspNetCore.Components.Analyzers, Microsoft.CodeAnalysis.CodeStyle, Microsoft.CodeAnalysis.CSharp.CodeStyle, Microsoft.CodeAnalysis.CSharp.NetAnalyzers, Microsoft.CodeAnalysis.NetAnalyzers, Microsoft.Extensions.ExtraAnalyzers.Roslyn4.0, Microsoft.Extensions.LocalAnalyzers, Microsoft.VisualStudio.Threading.Analyzers, Microsoft.VisualStudio.Threading.Analyzers.CSharp, SonarAnalyzer.CSharp, StyleCop.Analyzers - -[*.cs] - -# Title : Do not use model binding attributes with route handlers -# Category : Usage -# Help Link: https://aka.ms/aspnet/analyzers -dotnet_diagnostic.ASP0003.severity = warning - -# Title : Do not use action results with route handlers -# Category : Usage -# Help Link: https://aka.ms/aspnet/analyzers -dotnet_diagnostic.ASP0004.severity = warning - -# Title : Do not place attribute on method called by route handler lambda -# Category : Usage -# Help Link: https://aka.ms/aspnet/analyzers -dotnet_diagnostic.ASP0005.severity = warning - -# Title : Do not use non-literal sequence numbers -# Category : Usage -# Help Link: https://aka.ms/aspnet/analyzers -dotnet_diagnostic.ASP0006.severity = warning - -# Title : Route parameter and argument optionality is mismatched -# Category : Usage -# Help Link: https://aka.ms/aspnet/analyzers -dotnet_diagnostic.ASP0007.severity = warning - -# Title : Do not use ConfigureWebHost with WebApplicationBuilder.Host -# Category : Usage -# Help Link: https://aka.ms/aspnet/analyzers -dotnet_diagnostic.ASP0008.severity = error - -# Title : Do not use Configure with WebApplicationBuilder.WebHost -# Category : Usage -# Help Link: https://aka.ms/aspnet/analyzers -dotnet_diagnostic.ASP0009.severity = error - -# Title : Do not use UseStartup with WebApplicationBuilder.WebHost -# Category : Usage -# Help Link: https://aka.ms/aspnet/analyzers -dotnet_diagnostic.ASP0010.severity = error - -# Title : Suggest using builder.Logging over Host.ConfigureLogging or WebHost.ConfigureLogging -# Category : Usage -# Help Link: https://aka.ms/aspnet/analyzers -dotnet_diagnostic.ASP0011.severity = warning - -# Title : Suggest using builder.Services over Host.ConfigureServices or WebHost.ConfigureServices -# Category : Usage -# Help Link: https://aka.ms/aspnet/analyzers -dotnet_diagnostic.ASP0012.severity = warning - -# Title : Suggest switching from using Configure methods to WebApplicationBuilder.Configuration -# Category : Usage -# Help Link: https://aka.ms/aspnet/analyzers -dotnet_diagnostic.ASP0013.severity = warning - -# Title : Suggest using top level route registrations -# Category : Usage -# Help Link: https://aka.ms/aspnet/analyzers -dotnet_diagnostic.ASP0014.severity = warning - -# Title : Component parameter should have public setters. -# Category : Encapsulation -dotnet_diagnostic.BL0001.severity = error - -# Title : Component has multiple CaptureUnmatchedValues parameters -# Category : Usage -dotnet_diagnostic.BL0002.severity = warning - -# Title : Component parameter with CaptureUnmatchedValues has the wrong type -# Category : Usage -dotnet_diagnostic.BL0003.severity = warning - -# Title : Component parameter should be public. -# Category : Encapsulation -dotnet_diagnostic.BL0004.severity = error - -# Title : Component parameter should not be set outside of its component. -# Category : Usage -dotnet_diagnostic.BL0005.severity = warning - -# Title : Do not use RenderTree types -# Category : Usage -dotnet_diagnostic.BL0006.severity = warning - -# Title : Component parameters should be auto properties -# Category : Usage -dotnet_diagnostic.BL0007.severity = warning - -# Title : Do not declare static members on generic types -# Category : Design -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1000 -dotnet_diagnostic.CA1000.severity = none - -# Title : Types that own disposable fields should be disposable -# Category : Design -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1001 -dotnet_diagnostic.CA1001.severity = warning - -# Title : Do not expose generic lists -# Category : Design -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1002 -dotnet_diagnostic.CA1002.severity = none - -# Title : Use generic event handler instances -# Category : Design -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1003 -dotnet_diagnostic.CA1003.severity = none - -# Title : Avoid excessive parameters on generic types -# Category : Design -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1005 -dotnet_diagnostic.CA1005.severity = none - -# Title : Enums should have zero value -# Category : Design -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1008 -dotnet_diagnostic.CA1008.severity = none - -# Title : Generic interface should also be implemented -# Category : Design -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1010 -dotnet_diagnostic.CA1010.severity = warning -dotnet_code_quality.CA1010.api_surface = all -dotnet_code_quality.CA1010.additional_required_generic_interfaces = T:System.Collections.IDictionary->T:System.Collections.Generic.IDictionary`2 - -# Title : Abstract types should not have public constructors -# Category : Design -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1012 -dotnet_diagnostic.CA1012.severity = warning -dotnet_code_quality.CA1012.api_surface = all - -# Title : Mark assemblies with CLSCompliant -# Category : Design -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1014 -dotnet_diagnostic.CA1014.severity = none - -# Title : Mark assemblies with assembly version -# Category : Design -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1016 -dotnet_diagnostic.CA1016.severity = suggestion - -# Title : Mark assemblies with ComVisible -# Category : Design -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1017 -dotnet_diagnostic.CA1017.severity = none - -# Title : Mark attributes with AttributeUsageAttribute -# Category : Design -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1018 -dotnet_diagnostic.CA1018.severity = warning - -# Title : Define accessors for attribute arguments -# Category : Design -# Help Link: https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1019 -dotnet_diagnostic.CA1019.severity = suggestion - -# Title : Define accessors for attribute arguments -# Category : Design -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1019 -dotnet_diagnostic.CA1019.severity = warning - -# Title : Avoid out parameters -# Category : Design -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1021 -dotnet_diagnostic.CA1021.severity = none - -# Title : Use properties where appropriate -# Category : Design -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1024 -dotnet_diagnostic.CA1024.severity = none - -# Title : Mark enums with FlagsAttribute -# Category : Design -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1027 -dotnet_diagnostic.CA1027.severity = warning -dotnet_code_quality.CA1027.api_surface = all - -# Title : Enum Storage should be Int32 -# Category : Design -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1028 -dotnet_diagnostic.CA1028.severity = none - -# Title : Use events where appropriate -# Category : Design -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1030 -dotnet_diagnostic.CA1030.severity = warning - -# Title : Do not catch general exception types -# Category : Design -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1031 -dotnet_diagnostic.CA1031.severity = warning - -# Title : Implement standard exception constructors -# Category : Design -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1032 -dotnet_diagnostic.CA1032.severity = none - -# Title : Interface methods should be callable by child types -# Category : Design -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1033 -dotnet_diagnostic.CA1033.severity = warning - -# Title : Nested types should not be visible -# Category : Design -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1034 -dotnet_diagnostic.CA1034.severity = none - -# Title : Override methods on comparable types -# Category : Design -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1036 -dotnet_diagnostic.CA1036.severity = none - -# Title : Avoid empty interfaces -# Category : Design -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1040 -# Comment : Reasonably frequent in modern .NET programming -dotnet_diagnostic.CA1040.severity = none - -# Title : Provide ObsoleteAttribute message -# Category : Design -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1041 -dotnet_diagnostic.CA1041.severity = warning -dotnet_code_quality.CA1041.api_surface = all - -# Title : Use Integral Or String Argument For Indexers -# Category : Design -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1043 -dotnet_diagnostic.CA1043.severity = none - -# Title : Properties should not be write only -# Category : Design -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1044 -dotnet_diagnostic.CA1044.severity = warning - -# Title : Do not pass types by reference -# Category : Design -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1045 -dotnet_diagnostic.CA1045.severity = none - -# Title : Do not overload equality operator on reference types -# Category : Design -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1046 -dotnet_diagnostic.CA1046.severity = warning -dotnet_code_quality.CA1046.api_surface = all - -# Title : Do not declare protected member in sealed type -# Category : Design -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1047 -dotnet_diagnostic.CA1047.severity = warning -dotnet_code_quality.CA1047.api_surface = all - -# Title : Declare types in namespaces -# Category : Design -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1050 -dotnet_diagnostic.CA1050.severity = none - -# Title : Do not declare visible instance fields -# Category : Design -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1051 -dotnet_diagnostic.CA1051.severity = none - -# Title : Static holder types should be Static or NotInheritable -# Category : Design -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1052 -dotnet_diagnostic.CA1052.severity = warning - -# Title : URI-like parameters should not be strings -# Category : Design -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1054 -dotnet_diagnostic.CA1054.severity = none - -# Title : URI-like return values should not be strings -# Category : Design -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1055 -dotnet_diagnostic.CA1055.severity = none - -# Title : URI-like properties should not be strings -# Category : Design -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1056 -dotnet_diagnostic.CA1056.severity = none - -# Title : Types should not extend certain base types -# Category : Design -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1058 -dotnet_diagnostic.CA1058.severity = warning -dotnet_code_quality.CA1058.api_surface = public - -# Title : Move pinvokes to native methods class -# Category : Design -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1060 -dotnet_diagnostic.CA1060.severity = warning - -# Title : Do not hide base class methods -# Category : Design -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1061 -dotnet_diagnostic.CA1061.severity = warning -dotnet_code_quality.CA1061.api_surface = all - -# Title : Validate arguments of public methods -# Category : Design -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062 -dotnet_diagnostic.CA1062.severity = none - -# Title : Implement IDisposable Correctly -# Category : Design -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1063 -dotnet_diagnostic.CA1063.severity = warning - -# Title : Exceptions should be public -# Category : Design -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1064 -dotnet_diagnostic.CA1064.severity = warning -dotnet_code_quality.CA1064.api_surface = all - -# Title : Do not raise exceptions in unexpected locations -# Category : Design -# Help Link: https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1065 -dotnet_diagnostic.CA1065.severity = warning - -# Title : Do not raise exceptions in unexpected locations -# Category : Design -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1065 -dotnet_diagnostic.CA1065.severity = warning - -# Title : Implement IEquatable when overriding Object.Equals -# Category : Design -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1066 -dotnet_diagnostic.CA1066.severity = warning - -# Title : Override Object.Equals(object) when implementing IEquatable -# Category : Design -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1067 -dotnet_diagnostic.CA1067.severity = warning - -# Title : CancellationToken parameters must come last -# Category : Design -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1068 -dotnet_diagnostic.CA1068.severity = none - -# Title : Enums values should not be duplicated -# Category : Design -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1069 -dotnet_diagnostic.CA1069.severity = warning - -# Title : Do not declare event fields as virtual -# Category : Design -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1070 -dotnet_diagnostic.CA1070.severity = warning -dotnet_code_quality.CA1070.api_surface = all - -# Title : Avoid using cref tags with a prefix -# Category : Documentation -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1200 -dotnet_diagnostic.CA1200.severity = warning - -# Title : Do not pass literals as localized parameters -# Category : Globalization -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1303 -dotnet_diagnostic.CA1303.severity = warning - -# Title : Specify CultureInfo -# Category : Globalization -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1304 -dotnet_diagnostic.CA1304.severity = warning - -# Title : Specify IFormatProvider -# Category : Globalization -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1305 -dotnet_diagnostic.CA1305.severity = warning - -# Title : Specify StringComparison for clarity -# Category : Globalization -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1307 -dotnet_diagnostic.CA1307.severity = warning - -# Title : Normalize strings to uppercase -# Category : Globalization -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1308 -dotnet_diagnostic.CA1308.severity = warning - -# Title : Use ordinal string comparison -# Category : Globalization -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1309 -dotnet_diagnostic.CA1309.severity = warning - -# Title : Specify StringComparison for correctness -# Category : Globalization -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1310 -dotnet_diagnostic.CA1310.severity = warning - -# Title : Specify a culture or use an invariant version -# Category : Globalization -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1311 -dotnet_diagnostic.CA1311.severity = warning - -# Title : P/Invokes should not be visible -# Category : Interoperability -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1401 -dotnet_diagnostic.CA1401.severity = none - -# Title : Validate platform compatibility -# Category : Interoperability -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416 -dotnet_diagnostic.CA1416.severity = warning - -# Title : Do not use 'OutAttribute' on string parameters for P/Invokes -# Category : Interoperability -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1417 -dotnet_diagnostic.CA1417.severity = warning - -# Title : Use valid platform string -# Category : Interoperability -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1418 -dotnet_diagnostic.CA1418.severity = warning - -# Title : Provide a parameterless constructor that is as visible as the containing type for concrete types derived from 'System.Runtime.InteropServices.SafeHandle' -# Category : Interoperability -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1419 -dotnet_diagnostic.CA1419.severity = warning - -# Title : Property, type, or attribute requires runtime marshalling -# Category : Interoperability -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1420 -dotnet_diagnostic.CA1420.severity = warning - -# Title : This method uses runtime marshalling even when the 'DisableRuntimeMarshallingAttribute' is applied -# Category : Interoperability -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1421 -dotnet_diagnostic.CA1421.severity = suggestion - -# Title : Validate platform compatibility -# Category : Interoperability -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1422 -dotnet_diagnostic.CA1422.severity = warning - -# Title : Avoid excessive inheritance -# Category : Maintainability -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1501 -dotnet_diagnostic.CA1501.severity = warning -dotnet_code_quality.CA1501.api_surface = public - -# Title : Avoid excessive complexity -# Category : Maintainability -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1502 -# Comment : Code gets complicated -dotnet_diagnostic.CA1502.severity = none - -# Title : Avoid unmaintainable code -# Category : Maintainability -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1505 -dotnet_diagnostic.CA1505.severity = warning - -# Title : Avoid excessive class coupling -# Category : Maintainability -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1506 -# Comment : Code gets complicated -dotnet_diagnostic.CA1506.severity = none - -# Title : Use nameof to express symbol names -# Category : Maintainability -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1507 -dotnet_diagnostic.CA1507.severity = warning - -# Title : Avoid dead conditional code -# Category : Maintainability -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1508 -dotnet_diagnostic.CA1508.severity = warning - -# Title : Invalid entry in code metrics rule specification file -# Category : Maintainability -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1509 -dotnet_diagnostic.CA1509.severity = warning - -# Title : Use ArgumentNullException throw helper -# Category : Maintainability -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1510 -dotnet_diagnostic.CA1510.severity = suggestion - -# Title : Use ArgumentException throw helper -# Category : Maintainability -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1511 -dotnet_diagnostic.CA1511.severity = suggestion - -# Title : Use ArgumentOutOfRangeException throw helper -# Category : Maintainability -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1512 -dotnet_diagnostic.CA1512.severity = suggestion - -# Title : Use ObjectDisposedException throw helper -# Category : Maintainability -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1513 -dotnet_diagnostic.CA1513.severity = suggestion - -# Title : Do not name enum values 'Reserved' -# Category : Naming -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1700 -dotnet_diagnostic.CA1700.severity = none - -# Title : Identifiers should not contain underscores -# Category : Naming -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1707 -# Comment : StyleCop handles this -dotnet_diagnostic.CA1707.severity = none - -# Title : Identifiers should differ by more than case -# Category : Naming -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1708 -dotnet_diagnostic.CA1708.severity = silent - -# Title : Identifiers should have correct suffix -# Category : Naming -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1710 -dotnet_diagnostic.CA1710.severity = silent - -# Title : Identifiers should not have incorrect suffix -# Category : Naming -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1711 -dotnet_diagnostic.CA1711.severity = silent - -# Title : Do not prefix enum values with type name -# Category : Naming -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1712 -dotnet_diagnostic.CA1712.severity = warning - -# Title : Events should not have 'Before' or 'After' prefix -# Category : Naming -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1713 -dotnet_diagnostic.CA1713.severity = warning - -# Title : Identifiers should have correct prefix -# Category : Naming -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1715 -# Redundant: IDE1006 -dotnet_diagnostic.CA1715.severity = none - -# Title : Identifiers should not match keywords -# Category : Naming -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1716 -dotnet_diagnostic.CA1716.severity = warning -dotnet_code_quality.CA1716.api_surface = all -dotnet_code_quality.CA1716.analyzed_symbol_kinds = all - -# Title : Identifier contains type name -# Category : Naming -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1720 -dotnet_diagnostic.CA1720.severity = silent - -# Title : Property names should not match get methods -# Category : Naming -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1721 -dotnet_diagnostic.CA1721.severity = none - -# Title : Type names should not match namespaces -# Category : Naming -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1724 -dotnet_diagnostic.CA1724.severity = none - -# Title : Parameter names should match base declaration -# Category : Naming -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1725 -dotnet_diagnostic.CA1725.severity = warning - -# Title : Use PascalCase for named placeholders -# Category : Naming -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1727 -dotnet_diagnostic.CA1727.severity = silent - -# Title : Review unused parameters -# Category : Usage -# Help Link: https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1801 -# Redundant: IDE0060 -dotnet_diagnostic.CA1801.severity = none - -# Title : Review unused parameters -# Category : Usage -# Help Link: https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1801 -# Redundant: IDE0060 -dotnet_diagnostic.CA1801.severity = none - -# Title : Use literals where appropriate -# Category : Performance -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1802 -dotnet_diagnostic.CA1802.severity = warning - -# Title : Use literals where appropriate -# Category : Performance -# Help Link: https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1802 -dotnet_diagnostic.CA1802.severity = warning - -# Title : Do not initialize unnecessarily -# Category : Performance -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1805 -dotnet_diagnostic.CA1805.severity = warning - -# Title : Do not initialize unnecessarily -# Category : Performance -# Help Link: https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1805 -dotnet_diagnostic.CA1805.severity = warning - -# Title : Do not ignore method results -# Category : Performance -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1806 -dotnet_diagnostic.CA1806.severity = warning - -# Title : Initialize reference type static fields inline -# Category : Performance -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1810 -dotnet_diagnostic.CA1810.severity = warning - -# Title : Avoid uninstantiated internal classes -# Category : Performance -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1812 -# Comment : S1144 finds more cases and has no false positives -# Redundant: S1144 -dotnet_diagnostic.CA1812.severity = none - -# Title : Avoid unsealed attributes -# Category : Performance -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1813 -dotnet_diagnostic.CA1813.severity = warning - -# Title : Prefer jagged arrays over multidimensional -# Category : Performance -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1814 -dotnet_diagnostic.CA1814.severity = warning - -# Title : Override equals and operator equals on value types -# Category : Performance -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1815 -dotnet_diagnostic.CA1815.severity = warning - -# Title : Dispose methods should call SuppressFinalize -# Category : Usage -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1816 -dotnet_diagnostic.CA1816.severity = warning - -# Title : Properties should not return arrays -# Category : Performance -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1819 -dotnet_diagnostic.CA1819.severity = warning - -# Title : Test for empty strings using string length -# Category : Performance -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1820 -dotnet_diagnostic.CA1820.severity = warning - -# Title : Remove empty Finalizers -# Category : Performance -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1821 -dotnet_diagnostic.CA1821.severity = warning - -# Title : Mark members as static -# Category : Performance -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1822 -dotnet_diagnostic.CA1822.severity = warning - -# Title : Avoid unused private fields -# Category : Performance -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1823 -# Redundant: S1144 -dotnet_diagnostic.CA1823.severity = none - -# Title : Mark assemblies with NeutralResourcesLanguageAttribute -# Category : Performance -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1824 -dotnet_diagnostic.CA1824.severity = warning - -# Title : Avoid zero-length array allocations -# Category : Performance -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1825 -dotnet_diagnostic.CA1825.severity = warning - -# Title : Do not use Enumerable methods on indexable collections -# Category : Performance -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1826 -dotnet_diagnostic.CA1826.severity = warning - -# Title : Do not use Count() or LongCount() when Any() can be used -# Category : Performance -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1827 -dotnet_diagnostic.CA1827.severity = warning - -# Title : Do not use CountAsync() or LongCountAsync() when AnyAsync() can be used -# Category : Performance -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1828 -dotnet_diagnostic.CA1828.severity = warning - -# Title : Use Length/Count property instead of Count() when available -# Category : Performance -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1829 -dotnet_diagnostic.CA1829.severity = warning - -# Title : Prefer strongly-typed Append and Insert method overloads on StringBuilder -# Category : Performance -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1830 -dotnet_diagnostic.CA1830.severity = warning - -# Title : Use AsSpan or AsMemory instead of Range-based indexers when appropriate -# Category : Performance -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1831 -dotnet_diagnostic.CA1831.severity = warning - -# Title : Use AsSpan or AsMemory instead of Range-based indexers when appropriate -# Category : Performance -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1832 -dotnet_diagnostic.CA1832.severity = warning - -# Title : Use AsSpan or AsMemory instead of Range-based indexers when appropriate -# Category : Performance -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1833 -dotnet_diagnostic.CA1833.severity = warning - -# Title : Consider using 'StringBuilder.Append(char)' when applicable -# Category : Performance -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1834 -dotnet_diagnostic.CA1834.severity = warning - -# Title : Prefer the 'Memory'-based overloads for 'ReadAsync' and 'WriteAsync' -# Category : Performance -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1835 -dotnet_diagnostic.CA1835.severity = warning - -# Title : Prefer IsEmpty over Count -# Category : Performance -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1836 -dotnet_diagnostic.CA1836.severity = warning - -# Title : Use 'Environment.ProcessId' -# Category : Performance -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1837 -dotnet_diagnostic.CA1837.severity = warning - -# Title : Avoid 'StringBuilder' parameters for P/Invokes -# Category : Performance -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1838 -dotnet_diagnostic.CA1838.severity = warning - -# Title : Use 'Environment.ProcessPath' -# Category : Performance -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1839 -dotnet_diagnostic.CA1839.severity = warning - -# Title : Use 'Environment.CurrentManagedThreadId' -# Category : Performance -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1840 -dotnet_diagnostic.CA1840.severity = warning - -# Title : Prefer Dictionary.Contains methods -# Category : Performance -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1841 -dotnet_diagnostic.CA1841.severity = warning - -# Title : Do not use 'WhenAll' with a single task -# Category : Performance -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1842 -dotnet_diagnostic.CA1842.severity = suggestion - -# Title : Do not use 'WaitAll' with a single task -# Category : Performance -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1843 -dotnet_diagnostic.CA1843.severity = warning - -# Title : Provide memory-based overrides of async methods when subclassing 'Stream' -# Category : Performance -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1844 -dotnet_diagnostic.CA1844.severity = warning - -# Title : Use span-based 'string.Concat' -# Category : Performance -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1845 -dotnet_diagnostic.CA1845.severity = warning - -# Title : Prefer 'AsSpan' over 'Substring' -# Category : Performance -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1846 -dotnet_diagnostic.CA1846.severity = warning - -# Title : Use char literal for a single character lookup -# Category : Performance -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1847 -dotnet_diagnostic.CA1847.severity = warning - -# Title : Use the LoggerMessage delegates -# Category : Performance -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1848 -# Comment : Use R9 logging model instead -dotnet_diagnostic.CA1848.severity = none - -# Title : Call async methods when in an async method -# Category : Performance -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1849 -dotnet_diagnostic.CA1849.severity = warning - -# Title : Prefer static 'HashData' method over 'ComputeHash' -# Category : Performance -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1850 -dotnet_diagnostic.CA1850.severity = suggestion - -# Title : Possible multiple enumerations of 'IEnumerable' collection -# Category : Performance -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1851 -dotnet_diagnostic.CA1851.severity = suggestion - -# Title : Seal internal types -# Category : Performance -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1852 -# Redundant: R9A013 -dotnet_diagnostic.CA1852.severity = none - -# Title : Unnecessary call to 'Dictionary.ContainsKey(key)' -# Category : Performance -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1853 -dotnet_diagnostic.CA1853.severity = suggestion - -# Title : Prefer the 'IDictionary.TryGetValue(TKey, out TValue)' method -# Category : Performance -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1854 -dotnet_diagnostic.CA1854.severity = warning - -# Title : Prefer 'Clear' over 'Fill' -# Category : Performance -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1855 -dotnet_diagnostic.CA1855.severity = warning - -# Title : Incorrect usage of ConstantExpected attribute -# Category : Performance -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1856 -dotnet_diagnostic.CA1856.severity = error - -# Title : A constant is expected for the parameter -# Category : Performance -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1857 -dotnet_diagnostic.CA1857.severity = warning - -# Title : Use 'StartsWith' instead of 'IndexOf' -# Category : Performance -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1858 -dotnet_diagnostic.CA1858.severity = suggestion - -# Title : Use concrete types when possible for improved performance -# Category : Performance -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1859 -dotnet_diagnostic.CA1859.severity = suggestion - -# Title : Avoid using 'Enumerable.Any()' extension method -# Category : Performance -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1860 -dotnet_diagnostic.CA1860.severity = suggestion - -# Title : Avoid constant arrays as arguments -# Category : Performance -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1861 -dotnet_diagnostic.CA1861.severity = suggestion - -# Title : Dispose objects before losing scope -# Category : Reliability -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2000 -dotnet_diagnostic.CA2000.severity = warning - -# Title : Do not lock on objects with weak identity -# Category : Reliability -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2002 -dotnet_diagnostic.CA2002.severity = warning - -# Title : Consider calling ConfigureAwait on the awaited task -# Category : Reliability -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2007 -dotnet_diagnostic.CA2007.severity = warning - -# Title : Do not create tasks without passing a TaskScheduler -# Category : Reliability -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2008 -dotnet_diagnostic.CA2008.severity = warning - -# Title : Do not call ToImmutableCollection on an ImmutableCollection value -# Category : Reliability -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2009 -dotnet_diagnostic.CA2009.severity = warning - -# Title : Avoid infinite recursion -# Category : Reliability -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2011 -dotnet_diagnostic.CA2011.severity = error - -# Title : Use ValueTasks correctly -# Category : Reliability -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2012 -dotnet_diagnostic.CA2012.severity = warning - -# Title : Do not use ReferenceEquals with value types -# Category : Reliability -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2013 -dotnet_diagnostic.CA2013.severity = warning - -# Title : Do not use stackalloc in loops -# Category : Reliability -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2014 -dotnet_diagnostic.CA2014.severity = warning - -# Title : Do not use stackalloc in loops -# Category : Reliability -# Help Link: https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2014 -dotnet_diagnostic.CA2014.severity = warning - -# Title : Do not define finalizers for types derived from MemoryManager -# Category : Reliability -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2015 -dotnet_diagnostic.CA2015.severity = warning - -# Title : Forward the 'CancellationToken' parameter to methods -# Category : Reliability -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2016 -dotnet_diagnostic.CA2016.severity = warning - -# Title : Parameter count mismatch -# Category : Reliability -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017 -dotnet_diagnostic.CA2017.severity = warning - -# Title : 'Buffer.BlockCopy' expects the number of bytes to be copied for the 'count' argument -# Category : Reliability -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2018 -dotnet_diagnostic.CA2018.severity = warning - -# Title : Improper 'ThreadStatic' field initialization -# Category : Reliability -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2019 -dotnet_diagnostic.CA2019.severity = warning - -# Title : Prevent behavioral change -# Category : Reliability -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2020 -dotnet_diagnostic.CA2020.severity = suggestion - -# Title : Do not call Enumerable.Cast or Enumerable.OfType with incompatible types -# Category : Reliability -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2021 -dotnet_diagnostic.CA2021.severity = warning - -# Title : Review SQL queries for security vulnerabilities -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2100 -dotnet_diagnostic.CA2100.severity = warning - -# Title : Specify marshaling for P/Invoke string arguments -# Category : Globalization -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2101 -dotnet_diagnostic.CA2101.severity = warning - -# Title : Review visible event handlers -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2109 -dotnet_diagnostic.CA2109.severity = none - -# Title : Seal methods that satisfy private interfaces -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2119 -dotnet_diagnostic.CA2119.severity = warning - -# Title : Do Not Catch Corrupted State Exceptions -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2153 -dotnet_diagnostic.CA2153.severity = warning - -# Title : Rethrow to preserve stack details -# Category : Usage -# Help Link: https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2200 -dotnet_diagnostic.CA2200.severity = warning - -# Title : Rethrow to preserve stack details -# Category : Usage -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2200 -dotnet_diagnostic.CA2200.severity = warning - -# Title : Do not raise reserved exception types -# Category : Usage -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2201 -dotnet_diagnostic.CA2201.severity = warning - -# Title : Initialize value type static fields inline -# Category : Usage -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2207 -dotnet_diagnostic.CA2207.severity = warning - -# Title : Instantiate argument exceptions correctly -# Category : Usage -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2208 -dotnet_diagnostic.CA2208.severity = warning - -# Title : Non-constant fields should not be visible -# Category : Usage -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2211 -dotnet_diagnostic.CA2211.severity = none - -# Title : Disposable fields should be disposed -# Category : Usage -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2213 -dotnet_diagnostic.CA2213.severity = warning - -# Title : Do not call overridable methods in constructors -# Category : Usage -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2214 -dotnet_diagnostic.CA2214.severity = warning - -# Title : Dispose methods should call base class dispose -# Category : Usage -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2215 -dotnet_diagnostic.CA2215.severity = warning - -# Title : Disposable types should declare finalizer -# Category : Usage -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2216 -dotnet_diagnostic.CA2216.severity = warning - -# Title : Do not mark enums with FlagsAttribute -# Category : Usage -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2217 -dotnet_diagnostic.CA2217.severity = warning -dotnet_code_quality.CA2217.api_surface = all - -# Title : Do not raise exceptions in finally clauses -# Category : Usage -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2219 -dotnet_diagnostic.CA2219.severity = warning - -# Title : Operator overloads have named alternates -# Category : Usage -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2225 -dotnet_diagnostic.CA2225.severity = none - -# Title : Operators should have symmetrical overloads -# Category : Usage -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2226 -# Redundant: CS0216 -dotnet_diagnostic.CA2226.severity = none - -# Title : Collection properties should be read only -# Category : Usage -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2227 -dotnet_diagnostic.CA2227.severity = none - -# Title : Implement serialization constructors -# Category : Usage -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2229 -# Comment : Obsolete -dotnet_diagnostic.CA2229.severity = none - -# Title : Overload operator equals on overriding value type Equals -# Category : Usage -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2231 -dotnet_diagnostic.CA2231.severity = error - -# Title : Pass system uri objects instead of strings -# Category : Usage -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2234 -dotnet_diagnostic.CA2234.severity = warning - -# Title : Mark all non-serializable fields -# Category : Usage -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2235 -# Comment : Obsolete -dotnet_diagnostic.CA2235.severity = none - -# Title : Mark ISerializable types with serializable -# Category : Usage -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2237 -# Comment : Obsolete -dotnet_diagnostic.CA2237.severity = none - -# Title : Provide correct arguments to formatting methods -# Category : Usage -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2241 -dotnet_diagnostic.CA2241.severity = warning - -# Title : Test for NaN correctly -# Category : Usage -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2242 -dotnet_diagnostic.CA2242.severity = warning - -# Title : Attribute string literals should parse correctly -# Category : Usage -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2243 -dotnet_diagnostic.CA2243.severity = warning - -# Title : Do not duplicate indexed element initializations -# Category : Usage -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2244 -dotnet_diagnostic.CA2244.severity = warning - -# Title : Do not assign a property to itself -# Category : Usage -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2245 -dotnet_diagnostic.CA2245.severity = warning - -# Title : Assigning symbol and its member in the same statement -# Category : Usage -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2246 -dotnet_diagnostic.CA2246.severity = warning - -# Title : Argument passed to TaskCompletionSource constructor should be TaskCreationOptions enum instead of TaskContinuationOptions enum -# Category : Usage -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2247 -dotnet_diagnostic.CA2247.severity = warning - -# Title : Provide correct 'enum' argument to 'Enum.HasFlag' -# Category : Usage -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2248 -dotnet_diagnostic.CA2248.severity = warning - -# Title : Consider using 'string.Contains' instead of 'string.IndexOf' -# Category : Usage -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2249 -dotnet_diagnostic.CA2249.severity = warning - -# Title : Use 'ThrowIfCancellationRequested' -# Category : Usage -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2250 -dotnet_diagnostic.CA2250.severity = suggestion - -# Title : Use 'string.Equals' -# Category : Usage -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2251 -dotnet_diagnostic.CA2251.severity = warning - -# Title : This API requires opting into preview features -# Category : Usage -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2252 -dotnet_diagnostic.CA2252.severity = error - -# Title : Named placeholders should not be numeric values -# Category : Usage -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2253 -dotnet_diagnostic.CA2253.severity = warning - -# Title : Template should be a static expression -# Category : Usage -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2254 -dotnet_diagnostic.CA2254.severity = suggestion - -# Title : The 'ModuleInitializer' attribute should not be used in libraries -# Category : Usage -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2255 -dotnet_diagnostic.CA2255.severity = warning - -# Title : All members declared in parent interfaces must have an implementation in a DynamicInterfaceCastableImplementation-attributed interface -# Category : Usage -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2256 -dotnet_diagnostic.CA2256.severity = error - -# Title : Members defined on an interface with the 'DynamicInterfaceCastableImplementationAttribute' should be 'static' -# Category : Usage -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2257 -dotnet_diagnostic.CA2257.severity = warning - -# Title : Providing a 'DynamicInterfaceCastableImplementation' interface in Visual Basic is unsupported -# Category : Usage -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2258 -dotnet_diagnostic.CA2258.severity = warning - -# Title : 'ThreadStatic' only affects static fields -# Category : Usage -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2259 -dotnet_diagnostic.CA2259.severity = warning - -# Title : Use correct type parameter -# Category : Usage -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2260 -dotnet_diagnostic.CA2260.severity = warning - -# Title : Do not use insecure deserializer BinaryFormatter -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2300 -dotnet_diagnostic.CA2300.severity = warning - -# Title : Do not call BinaryFormatter.Deserialize without first setting BinaryFormatter.Binder -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2301 -dotnet_diagnostic.CA2301.severity = warning - -# Title : Ensure BinaryFormatter.Binder is set before calling BinaryFormatter.Deserialize -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2302 -dotnet_diagnostic.CA2302.severity = warning - -# Title : Do not use insecure deserializer LosFormatter -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2305 -dotnet_diagnostic.CA2305.severity = warning - -# Title : Do not use insecure deserializer NetDataContractSerializer -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2310 -dotnet_diagnostic.CA2310.severity = warning - -# Title : Do not deserialize without first setting NetDataContractSerializer.Binder -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2311 -dotnet_diagnostic.CA2311.severity = warning - -# Title : Ensure NetDataContractSerializer.Binder is set before deserializing -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2312 -dotnet_diagnostic.CA2312.severity = warning - -# Title : Do not use insecure deserializer ObjectStateFormatter -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2315 -dotnet_diagnostic.CA2315.severity = warning - -# Title : Do not deserialize with JavaScriptSerializer using a SimpleTypeResolver -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2321 -dotnet_diagnostic.CA2321.severity = warning - -# Title : Ensure JavaScriptSerializer is not initialized with SimpleTypeResolver before deserializing -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2322 -dotnet_diagnostic.CA2322.severity = warning - -# Title : Do not use TypeNameHandling values other than None -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2326 -dotnet_diagnostic.CA2326.severity = warning - -# Title : Do not use insecure JsonSerializerSettings -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2327 -dotnet_diagnostic.CA2327.severity = warning - -# Title : Ensure that JsonSerializerSettings are secure -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2328 -dotnet_diagnostic.CA2328.severity = warning - -# Title : Do not deserialize with JsonSerializer using an insecure configuration -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2329 -dotnet_diagnostic.CA2329.severity = warning - -# Title : Ensure that JsonSerializer has a secure configuration when deserializing -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2330 -dotnet_diagnostic.CA2330.severity = warning - -# Title : Do not use DataTable.ReadXml() with untrusted data -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2350 -dotnet_diagnostic.CA2350.severity = warning - -# Title : Do not use DataSet.ReadXml() with untrusted data -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2351 -dotnet_diagnostic.CA2351.severity = warning - -# Title : Unsafe DataSet or DataTable in serializable type can be vulnerable to remote code execution attacks -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2352 -dotnet_diagnostic.CA2352.severity = warning - -# Title : Unsafe DataSet or DataTable in serializable type can be vulnerable to remote code execution attacks -# Category : Security -# Help Link: https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2352 -dotnet_diagnostic.CA2352.severity = warning - -# Title : Unsafe DataSet or DataTable in serializable type -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2353 -dotnet_diagnostic.CA2353.severity = warning - -# Title : Unsafe DataSet or DataTable in serializable type -# Category : Security -# Help Link: https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2353 -dotnet_diagnostic.CA2353.severity = warning - -# Title : Unsafe DataSet or DataTable in deserialized object graph can be vulnerable to remote code execution attacks -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2354 -dotnet_diagnostic.CA2354.severity = warning - -# Title : Unsafe DataSet or DataTable in deserialized object graph can be vulnerable to remote code execution attacks -# Category : Security -# Help Link: https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2354 -dotnet_diagnostic.CA2354.severity = warning - -# Title : Unsafe DataSet or DataTable type found in deserializable object graph -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2355 -dotnet_diagnostic.CA2355.severity = warning - -# Title : Unsafe DataSet or DataTable type found in deserializable object graph -# Category : Security -# Help Link: https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2355 -dotnet_diagnostic.CA2355.severity = warning - -# Title : Unsafe DataSet or DataTable type in web deserializable object graph -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2356 -dotnet_diagnostic.CA2356.severity = warning - -# Title : Unsafe DataSet or DataTable type in web deserializable object graph -# Category : Security -# Help Link: https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2356 -dotnet_diagnostic.CA2356.severity = warning - -# Title : Ensure auto-generated class containing DataSet.ReadXml() is not used with untrusted data -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2361 -dotnet_diagnostic.CA2361.severity = warning - -# Title : Unsafe DataSet or DataTable in auto-generated serializable type can be vulnerable to remote code execution attacks -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2362 -dotnet_diagnostic.CA2362.severity = warning - -# Title : Unsafe DataSet or DataTable in autogenerated serializable type can be vulnerable to remote code execution attacks -# Category : Security -# Help Link: https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2362 -dotnet_diagnostic.CA2362.severity = warning - -# Title : Review code for SQL injection vulnerabilities -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca3001 -dotnet_diagnostic.CA3001.severity = warning - -# Title : Review code for XSS vulnerabilities -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca3002 -dotnet_diagnostic.CA3002.severity = warning - -# Title : Review code for file path injection vulnerabilities -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca3003 -dotnet_diagnostic.CA3003.severity = warning - -# Title : Review code for information disclosure vulnerabilities -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca3004 -dotnet_diagnostic.CA3004.severity = warning - -# Title : Review code for LDAP injection vulnerabilities -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca3005 -dotnet_diagnostic.CA3005.severity = warning - -# Title : Review code for process command injection vulnerabilities -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca3006 -dotnet_diagnostic.CA3006.severity = warning - -# Title : Review code for open redirect vulnerabilities -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca3007 -dotnet_diagnostic.CA3007.severity = warning - -# Title : Review code for XPath injection vulnerabilities -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca3008 -dotnet_diagnostic.CA3008.severity = warning - -# Title : Review code for XML injection vulnerabilities -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca3009 -dotnet_diagnostic.CA3009.severity = warning - -# Title : Review code for XAML injection vulnerabilities -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca3010 -dotnet_diagnostic.CA3010.severity = warning - -# Title : Review code for DLL injection vulnerabilities -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca3011 -dotnet_diagnostic.CA3011.severity = warning - -# Title : Review code for regex injection vulnerabilities -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca3012 -dotnet_diagnostic.CA3012.severity = warning - -# Title : Do Not Add Schema By URL -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca3061 -dotnet_diagnostic.CA3061.severity = silent - -# Title : Insecure DTD processing in XML -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca3075 -dotnet_diagnostic.CA3075.severity = warning - -# Title : Insecure XSLT script processing. -# Category : Security -# Help Link: https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca3076 -dotnet_diagnostic.CA3076.severity = warning - -# Title : Insecure XSLT script processing -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca3076 -dotnet_diagnostic.CA3076.severity = warning - -# Title : Insecure Processing in API Design, XmlDocument and XmlTextReader -# Category : Security -# Help Link: https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca3077 -dotnet_diagnostic.CA3077.severity = warning - -# Title : Insecure Processing in API Design, XmlDocument and XmlTextReader -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca3077 -dotnet_diagnostic.CA3077.severity = warning - -# Title : Mark Verb Handlers With Validate Antiforgery Token -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca3147 -dotnet_diagnostic.CA3147.severity = warning - -# Title : Do Not Use Weak Cryptographic Algorithms -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca5350 -dotnet_diagnostic.CA5350.severity = error - -# Title : Do Not Use Broken Cryptographic Algorithms -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca5351 -dotnet_diagnostic.CA5351.severity = error - -# Title : Review cipher mode usage with cryptography experts -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca5358 -dotnet_diagnostic.CA5358.severity = warning - -# Title : Do Not Disable Certificate Validation -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca5359 -dotnet_diagnostic.CA5359.severity = warning - -# Title : Do Not Call Dangerous Methods In Deserialization -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca5360 -dotnet_diagnostic.CA5360.severity = warning - -# Title : Do Not Disable SChannel Use of Strong Crypto -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca5361 -dotnet_diagnostic.CA5361.severity = warning - -# Title : Potential reference cycle in deserialized object graph -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca5362 -dotnet_diagnostic.CA5362.severity = warning - -# Title : Do Not Disable Request Validation -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca5363 -dotnet_diagnostic.CA5363.severity = warning - -# Title : Do Not Use Deprecated Security Protocols -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca5364 -dotnet_diagnostic.CA5364.severity = warning - -# Title : Do Not Disable HTTP Header Checking -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca5365 -dotnet_diagnostic.CA5365.severity = warning - -# Title : Use XmlReader for 'DataSet.ReadXml()' -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca5366 -dotnet_diagnostic.CA5366.severity = warning - -# Title : Do Not Serialize Types With Pointer Fields -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca5367 -dotnet_diagnostic.CA5367.severity = warning - -# Title : Set ViewStateUserKey For Classes Derived From Page -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca5368 -dotnet_diagnostic.CA5368.severity = warning - -# Title : Use XmlReader for 'XmlSerializer.Deserialize()' -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca5369 -dotnet_diagnostic.CA5369.severity = warning - -# Title : Use XmlReader for XmlValidatingReader constructor -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca5370 -dotnet_diagnostic.CA5370.severity = warning - -# Title : Use XmlReader for 'XmlSchema.Read()' -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca5371 -dotnet_diagnostic.CA5371.severity = warning - -# Title : Use XmlReader for XPathDocument constructor -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca5372 -dotnet_diagnostic.CA5372.severity = warning - -# Title : Do not use obsolete key derivation function -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca5373 -dotnet_diagnostic.CA5373.severity = warning - -# Title : Do Not Use XslTransform -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca5374 -dotnet_diagnostic.CA5374.severity = warning - -# Title : Do Not Use Account Shared Access Signature -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca5375 -dotnet_diagnostic.CA5375.severity = warning - -# Title : Use SharedAccessProtocol HttpsOnly -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca5376 -dotnet_diagnostic.CA5376.severity = warning - -# Title : Use Container Level Access Policy -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca5377 -dotnet_diagnostic.CA5377.severity = warning - -# Title : Do not disable ServicePointManagerSecurityProtocols -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca5378 -dotnet_diagnostic.CA5378.severity = warning - -# Title : Ensure Key Derivation Function algorithm is sufficiently strong -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca5379 -dotnet_diagnostic.CA5379.severity = warning - -# Title : Do Not Add Certificates To Root Store -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca5380 -dotnet_diagnostic.CA5380.severity = warning - -# Title : Ensure Certificates Are Not Added To Root Store -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca5381 -dotnet_diagnostic.CA5381.severity = warning - -# Title : Use Secure Cookies In ASP.NET Core -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca5382 -dotnet_diagnostic.CA5382.severity = warning - -# Title : Ensure Use Secure Cookies In ASP.NET Core -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca5383 -dotnet_diagnostic.CA5383.severity = warning - -# Title : Do Not Use Digital Signature Algorithm (DSA) -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca5384 -dotnet_diagnostic.CA5384.severity = warning - -# Title : Use Rivest-Shamir-Adleman (RSA) Algorithm With Sufficient Key Size -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca5385 -dotnet_diagnostic.CA5385.severity = warning - -# Title : Avoid hardcoding SecurityProtocolType value -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca5386 -dotnet_diagnostic.CA5386.severity = warning - -# Title : Do Not Use Weak Key Derivation Function With Insufficient Iteration Count -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca5387 -dotnet_diagnostic.CA5387.severity = warning - -# Title : Ensure Sufficient Iteration Count When Using Weak Key Derivation Function -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca5388 -dotnet_diagnostic.CA5388.severity = warning - -# Title : Do Not Add Archive Item's Path To The Target File System Path -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca5389 -dotnet_diagnostic.CA5389.severity = warning - -# Title : Do not hard-code encryption key -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca5390 -dotnet_diagnostic.CA5390.severity = warning - -# Title : Use antiforgery tokens in ASP.NET Core MVC controllers -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca5391 -dotnet_diagnostic.CA5391.severity = warning - -# Title : Use DefaultDllImportSearchPaths attribute for P/Invokes -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca5392 -dotnet_diagnostic.CA5392.severity = warning - -# Title : Do not use unsafe DllImportSearchPath value -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca5393 -dotnet_diagnostic.CA5393.severity = warning - -# Title : Do not use insecure randomness -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca5394 -dotnet_diagnostic.CA5394.severity = warning - -# Title : Miss HttpVerb attribute for action methods -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca5395 -dotnet_diagnostic.CA5395.severity = warning - -# Title : Set HttpOnly to true for HttpCookie -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca5396 -dotnet_diagnostic.CA5396.severity = warning - -# Title : Do not use deprecated SslProtocols values -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca5397 -dotnet_diagnostic.CA5397.severity = warning - -# Title : Avoid hardcoded SslProtocols values -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca5398 -dotnet_diagnostic.CA5398.severity = warning - -# Title : HttpClients should enable certificate revocation list checks -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca5399 -dotnet_diagnostic.CA5399.severity = warning - -# Title : Ensure HttpClient certificate revocation list check is not disabled -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca5400 -dotnet_diagnostic.CA5400.severity = warning - -# Title : Do not use CreateEncryptor with non-default IV -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca5401 -dotnet_diagnostic.CA5401.severity = warning - -# Title : Use CreateEncryptor with the default IV -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca5402 -dotnet_diagnostic.CA5402.severity = warning - -# Title : Do not hard-code certificate -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca5403 -dotnet_diagnostic.CA5403.severity = warning - -# Title : Do not disable token validation checks -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca5404 -dotnet_diagnostic.CA5404.severity = warning - -# Title : Do not always skip token validation in delegates -# Category : Security -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca5405 -dotnet_diagnostic.CA5405.severity = warning - -# Title : Set MSBuild property 'GenerateDocumentationFile' to 'true' -# Category : Style -# Help Link: https://github.com/dotnet/roslyn/issues/41640 -dotnet_diagnostic.EnableGenerateDocumentationFile.severity = warning - -# Title : Simplify name -# Category : Style -# Help Link: https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0001 -# Comment : This diagnostic only triggers in Visual Studio, not when building from the command-line. This metadata was entered manually, since it is not exposed in the normal way from the analyzer assembly. -dotnet_diagnostic.IDE0001.severity = silent - -# Title : Simplify name -# Category : Style -# Help Link: https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0002 -# Comment : This diagnostic only triggers in Visual Studio, not when building from the command-line. This metadata was entered manually, since it is not exposed in the normal way from the analyzer assembly. -dotnet_diagnostic.IDE0002.severity = silent - -# Title : Remove this or Me qualification -# Category : Style -# Help Link: https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0003-ide0009 -# Comment : This diagnostic only triggers in Visual Studio, not when building from the command-line. This metadata was entered manually, since it is not exposed in the normal way from the analyzer assembly. -dotnet_diagnostic.IDE0003.severity = silent -dotnet_style_qualification_for_event = false -dotnet_style_qualification_for_field = false -dotnet_style_qualification_for_method = false -dotnet_style_qualification_for_property = false - -# Title : Remove Unnecessary Cast -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0004 -dotnet_diagnostic.IDE0004.severity = warning - -# Title : Using directive is unnecessary. -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0005 -# Redundant: S1128 -dotnet_diagnostic.IDE0005.severity = none - -# Title : Using directive is unnecessary. -# Category : Style -# Redundant: S1128 -dotnet_diagnostic.IDE0005_gen.severity = none - -# Title : Use implicit type -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0007 -dotnet_diagnostic.IDE0007.severity = silent -csharp_style_var_elsewhere = true -csharp_style_var_for_built_in_types = false -csharp_style_var_when_type_is_apparent = true - -# Title : Use explicit type -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0008 -dotnet_diagnostic.IDE0008.severity = silent - -# Title : Member access should be qualified. -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0009 -# Comment : This diagnostic only triggers in Visual Studio, not when building from the command-line -dotnet_diagnostic.IDE0009.severity = none - -# Title : Add missing cases -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0010 -dotnet_diagnostic.IDE0010.severity = silent - -# Title : Add braces -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0011 -dotnet_diagnostic.IDE0011.severity = warning -csharp_prefer_braces = true - -# Title : Use 'throw' expression -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0016 -dotnet_diagnostic.IDE0016.severity = warning -csharp_style_throw_expression = true - -# Title : Simplify object initialization -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0017 -dotnet_diagnostic.IDE0017.severity = warning -dotnet_style_object_initializer = true - -# Title : Inline variable declaration -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0018 -dotnet_diagnostic.IDE0018.severity = warning -csharp_style_inlined_variable_declaration = true - -# Title : Use pattern matching -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0019 -dotnet_diagnostic.IDE0019.severity = silent -csharp_style_pattern_matching_over_is_with_cast_check = true - -# Title : Use pattern matching -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0020 -dotnet_diagnostic.IDE0020.severity = silent -csharp_style_pattern_matching_over_is_with_cast_check - -# Title : Use expression body for constructor -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0021 -dotnet_diagnostic.IDE0021.severity = warning -csharp_style_expression_bodied_constructors = false - -# Title : Use expression body for method -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0022 -dotnet_diagnostic.IDE0022.severity = silent -csharp_style_expression_bodied_methods = when_on_single_line - -# Title : Use expression body for conversion operator -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0023 -dotnet_diagnostic.IDE0023.severity = warning -csharp_style_expression_bodied_operators = false - -# Title : Use expression body for operator -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0024 -dotnet_diagnostic.IDE0024.severity = warning -csharp_style_expression_bodied_operators = false - -# Title : Use expression body for property -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0025 -dotnet_diagnostic.IDE0025.severity = warning -csharp_style_expression_bodied_properties = true - -# Title : Use expression body for indexer -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0026 -dotnet_diagnostic.IDE0026.severity = warning -csharp_style_expression_bodied_indexers = true - -# Title : Use expression body for accessor -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0027 -dotnet_diagnostic.IDE0027.severity = warning -csharp_style_expression_bodied_accessors = true - -# Title : Simplify collection initialization -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0028 -dotnet_diagnostic.IDE0028.severity = warning -dotnet_style_collection_initializer = true - -# Title : Use coalesce expression -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0029 -dotnet_diagnostic.IDE0029.severity = warning -dotnet_style_coalesce_expression = true - -# Title : Use coalesce expression -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0030 -dotnet_diagnostic.IDE0030.severity = warning -dotnet_style_coalesce_expression = true - -# Title : Use null propagation -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0031 -dotnet_diagnostic.IDE0031.severity = warning -dotnet_style_null_propagation = true - -# Title : Use auto property -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0032 -dotnet_diagnostic.IDE0032.severity = warning -dotnet_style_prefer_auto_properties = true - -# Title : Use explicitly provided tuple name -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0033 -dotnet_diagnostic.IDE0033.severity = warning -dotnet_style_explicit_tuple_names = true - -# Title : Simplify 'default' expression -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0034 -dotnet_diagnostic.IDE0034.severity = warning -csharp_prefer_simple_default_expression = true - -# Title : Unreachable code detected -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0035 -# Comment : This diagnostic only triggers in Visual Studio, not when building from the command-line -dotnet_diagnostic.IDE0035.severity = warning - -# Title : Order modifiers -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0036 -dotnet_diagnostic.IDE0036.severity = silent -csharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,volatile,async - -# Title : Use inferred member name -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0037 -dotnet_diagnostic.IDE0037.severity = silent -dotnet_style_prefer_inferred_anonymous_type_member_names = true -dotnet_style_prefer_inferred_tuple_names = true - -# Title : Use local function -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0039 -dotnet_diagnostic.IDE0039.severity = silent -csharp_style_prefer_local_over_anonymous_function = false - -# Title : Add accessibility modifiers -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0040 -dotnet_diagnostic.IDE0040.severity = warning -dotnet_style_require_accessibility_modifiers = for_non_interface_members - -# Title : Use 'is null' check -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0041 -dotnet_diagnostic.IDE0041.severity = warning -dotnet_style_prefer_is_null_check_over_reference_equality_method = true - -# Title : Deconstruct variable declaration -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0042 -dotnet_diagnostic.IDE0042.severity = silent -csharp_style_deconstructed_variable_declaration = true - -# Title : Invalid format string -# Category : Compiler -dotnet_diagnostic.IDE0043.severity = warning - -# Title : Add readonly modifier -# Category : Style -# Help Link: https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0044 -dotnet_diagnostic.IDE0044.severity = warning -dotnet_style_readonly_field = true:warning - -# Title : Add readonly modifier -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0044 -dotnet_diagnostic.IDE0044.severity = silent - -# Title : Convert to conditional expression -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0045 -dotnet_diagnostic.IDE0045.severity = silent -dotnet_style_prefer_conditional_expression_over_assignment = true - -# Title : Convert to conditional expression -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0046 -dotnet_diagnostic.IDE0046.severity = silent -dotnet_style_prefer_conditional_expression_over_return = true - -# Title : Remove unnecessary parentheses -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0047 -dotnet_diagnostic.IDE0047.severity = silent -dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity -dotnet_style_parentheses_in_other_binary_operators = always_for_clarity -dotnet_style_parentheses_in_other_operators = never_if_unnecessary -dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity - -# Title : Add parentheses for clarity -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0048 -dotnet_diagnostic.IDE0048.severity = silent -dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity -dotnet_style_parentheses_in_other_binary_operators = always_for_clarity -dotnet_style_parentheses_in_other_operators = never_if_unnecessary -dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity -dotnet_style_predefined_type_for_locals_parameters_members = true -dotnet_style_predefined_type_for_member_access = true - -# Title : Use language keywords instead of framework type names for type references -# Category : Style -# Help Link: https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0049 -# Comment : This diagnostic only triggers in Visual Studio, not when building from the command-line. This metadata was entered manually, since it is not exposed in the normal way from the analyzer assembly. -dotnet_diagnostic.IDE0049.severity = none - -# Title : Convert to tuple -# Category : Style -# Comment : This diagnostic only triggers in Visual Studio, not when building from the command-line -dotnet_diagnostic.IDE0050.severity = silent - -# Title : Remove unused private members -# Category : CodeQuality -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0051 -dotnet_diagnostic.IDE0051.severity = warning - -# Title : Remove unread private members -# Category : CodeQuality -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0052 -dotnet_diagnostic.IDE0052.severity = warning - -# Title : Use block body for lambda expression -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0053 -# Comment : This metadata was entered manually, since it is not exposed in the normal way from the analyzer assembly. -dotnet_diagnostic.IDE0053.severity = suggestion -csharp_style_expression_bodied_lambdas = when_on_single_line - -# Title : Use compound assignment -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0054 -dotnet_diagnostic.IDE0054.severity = warning -dotnet_style_prefer_compound_assignment = true - -# Title : Fix formatting -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0055 -dotnet_diagnostic.IDE0055.severity = warning -dotnet_style_namespace_match_folder = true -csharp_new_line_before_catch = true -csharp_new_line_before_else = true -csharp_new_line_before_finally = true -csharp_new_line_before_members_in_anonymous_types = true -csharp_new_line_before_members_in_object_initializers = true -csharp_new_line_before_open_brace = all -csharp_new_line_between_query_expression_clauses = true -csharp_indent_block_contents = true -csharp_indent_braces = false -csharp_indent_case_contents = true -csharp_indent_case_contents_when_block = false -csharp_indent_labels = flush_left -csharp_indent_switch_labels = true -csharp_space_after_cast = false -csharp_space_after_colon_in_inheritance_clause = true -csharp_space_after_comma = true -csharp_space_after_dot = false -csharp_space_after_keywords_in_control_flow_statements = true -csharp_space_after_semicolon_in_for_statement = true -csharp_space_around_binary_operators = before_and_after -csharp_space_around_declaration_statements = false -csharp_space_before_colon_in_inheritance_clause = true -csharp_space_before_comma = false -csharp_space_before_dot = false -csharp_space_before_open_square_brackets = false -csharp_space_before_semicolon_in_for_statement = false -csharp_space_between_empty_square_brackets = false -csharp_space_between_method_call_empty_parameter_list_parentheses = false -csharp_space_between_method_call_name_and_opening_parenthesis = false -csharp_space_between_method_call_parameter_list_parentheses = false -csharp_space_between_method_declaration_empty_parameter_list_parentheses = false -csharp_space_between_method_declaration_name_and_open_parenthesis = false -csharp_space_between_method_declaration_parameter_list_parentheses = false -csharp_space_between_parentheses = false -csharp_space_between_square_brackets = false -csharp_preserve_single_line_blocks = true -csharp_preserve_single_line_statements = false - -# Title : Use index operator -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0056 -dotnet_diagnostic.IDE0056.severity = silent -csharp_style_prefer_index_operator = true - -# Title : Use range operator -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0057 -dotnet_diagnostic.IDE0057.severity = silent -csharp_style_prefer_range_operator = true:warning - -# Title : Expression value is never used -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0058 -dotnet_diagnostic.IDE0058.severity = warning -csharp_style_unused_value_expression_statement_preference = discard_variable - -# Title : Unnecessary assignment of a value -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0059 -# Redundant: CS0219 -dotnet_diagnostic.IDE0059.severity = none - -# Title : Remove unused parameter -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0060 -dotnet_diagnostic.IDE0060.severity = warning -dotnet_code_quality_unused_parameters = all - -# Title : Use expression body for local function -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0061 -dotnet_diagnostic.IDE0061.severity = warning -csharp_style_expression_bodied_local_functions = true - -# Title : Make local function 'static' -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0062 -dotnet_diagnostic.IDE0062.severity = warning -csharp_prefer_static_local_function = true - -# Title : Use simple 'using' statement -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0063 -dotnet_diagnostic.IDE0063.severity = warning -csharp_prefer_simple_using_statement = true - -# Title : Make readonly fields writable -# Category : CodeQuality -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0064 -dotnet_diagnostic.IDE0064.severity = warning - -# Title : Misplaced using directive -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0065 -dotnet_diagnostic.IDE0065.severity = warning -dotnet_separate_import_directive_groups = false -dotnet_sort_system_directives_first = true -csharp_using_directive_placement = outside_namespace:suggestion - -# Title : Convert switch statement to expression -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0066 -dotnet_diagnostic.IDE0066.severity = warning -csharp_style_prefer_switch_expression = true:warning - -# Title : Use 'System.HashCode' -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0070 -dotnet_diagnostic.IDE0070.severity = warning - -# Title : Simplify interpolation -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0071 -dotnet_diagnostic.IDE0071.severity = warning -dotnet_style_prefer_simplified_interpolation = true - -# Title : Add missing cases -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0072 -dotnet_diagnostic.IDE0072.severity = silent - -# Title : The file header does not match the required text -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0073 -dotnet_diagnostic.IDE0073.severity = warning - -# Title : Use compound assignment -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0074 -# Comment : This diagnostic only triggers in Visual Studio, not when building from the command-line -dotnet_diagnostic.IDE0074.severity = suggestion -dotnet_style_prefer_compound_assignment = true - -# Title : Simplify conditional expression -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0075 -dotnet_diagnostic.IDE0075.severity = warning -dotnet_style_prefer_simplified_boolean_expressions = true - -# Title : Invalid global 'SuppressMessageAttribute' -# Category : CodeQuality -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0076 -dotnet_diagnostic.IDE0076.severity = warning - -# Title : Avoid legacy format target in 'SuppressMessageAttribute' -# Category : CodeQuality -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0077 -dotnet_diagnostic.IDE0077.severity = warning - -# Title : Use pattern matching -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0078 -dotnet_diagnostic.IDE0078.severity = silent -csharp_style_prefer_pattern_matching = true - -# Title : Remove unnecessary suppression -# Category : Style -# Comment : This diagnostic only triggers in Visual Studio, not when building from the command-line -dotnet_diagnostic.IDE0079.severity = suggestion -dotnet_remove_unnecessary_suppression_exclusions = CS0618 - -# Title : Remove unnecessary suppression operator -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0080 -dotnet_diagnostic.IDE0080.severity = warning - -# Title : 'typeof' can be converted to 'nameof' -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0082 -dotnet_diagnostic.IDE0082.severity = warning - -# Title : Use pattern matching -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0083 -dotnet_diagnostic.IDE0083.severity = silent -csharp_style_prefer_not_pattern = true - -# Title : Use 'new(...)' -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0090 -dotnet_diagnostic.IDE0090.severity = warning -csharp_style_implicit_object_creation_when_type_is_apparent = true - -# Title : Remove redundant equality -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0100 -# Comment : S1125 triggers in more cases -# Redundant: S1125 -dotnet_diagnostic.IDE0100.severity = none - -# Title : Remove unnecessary discard -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0110 -dotnet_diagnostic.IDE0110.severity = warning - -# Title : Simplify LINQ expression -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0120 -dotnet_diagnostic.IDE0120.severity = silent - -# Title : Namespace does not match folder structure -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0130 -dotnet_diagnostic.IDE0130.severity = silent - -# Title : Prefer 'null' check over type check -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0150 -dotnet_diagnostic.IDE0150.severity = warning -csharp_style_prefer_null_check_over_type_check = true - -# Title : Convert to block scoped namespace -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0160 -dotnet_diagnostic.IDE0160.severity = silent -csharp_style_namespace_declarations = file_scoped - -# Title : Convert to file-scoped namespace -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0161 -dotnet_diagnostic.IDE0161.severity = silent -csharp_style_namespace_declarations = file_scoped - -# Title : Property pattern can be simplified -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0170 -dotnet_diagnostic.IDE0170.severity = silent -csharp_style_prefer_extended_property_pattern = true - -# Title : Use tuple to swap values -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0180 -dotnet_diagnostic.IDE0180.severity = silent -csharp_style_prefer_tuple_swap = true - -# Title : Null check can be simplified -# Category : Style -# Help Link: https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0190 -dotnet_diagnostic.IDE0190.severity = silent - -# Title : Remove unnecessary lambda expression -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0200 -dotnet_diagnostic.IDE0200.severity = silent - -# Title : Convert to top-level statements -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0210 -dotnet_diagnostic.IDE0210.severity = silent - -# Title : Convert to 'Program.Main' style program -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0211 -dotnet_diagnostic.IDE0211.severity = silent - -# Title : Add explicit cast -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0220 -dotnet_diagnostic.IDE0220.severity = silent - -# Title : Use UTF-8 string literal -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0230 -dotnet_diagnostic.IDE0230.severity = silent - -# Title : Remove redundant nullable directive -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0240 -dotnet_diagnostic.IDE0240.severity = warning - -# Title : Remove unnecessary nullable directive -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0241 -dotnet_diagnostic.IDE0241.severity = warning - -# Title : Make struct 'readonly' -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0250 -dotnet_diagnostic.IDE0250.severity = warning - -# Title : Make member 'readonly' -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0251 -dotnet_diagnostic.IDE0251.severity = none - -# Title : Use pattern matching -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0260 -dotnet_diagnostic.IDE0260.severity = silent - -# Title : Use coalesce expression -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0270 -dotnet_diagnostic.IDE0270.severity = silent - -# Title : Use 'nameof' -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0280 -dotnet_diagnostic.IDE0280.severity = silent - -# Title : Delegate invocation can be simplified. -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide1005 -dotnet_diagnostic.IDE1005.severity = warning -csharp_style_conditional_delegate_call = true - -# Title : Naming Styles -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide1006 -dotnet_diagnostic.IDE1006.severity = warning -dotnet_naming_rule.interface_should_be_ipascalcase.severity = warning -dotnet_naming_rule.interface_should_be_ipascalcase.symbols = interface -dotnet_naming_rule.interface_should_be_ipascalcase.style = ipascalcase -dotnet_naming_rule.types_should_be_pascalcase.severity = warning -dotnet_naming_rule.types_should_be_pascalcase.symbols = types -dotnet_naming_rule.types_should_be_pascalcase.style = pascalcase -dotnet_naming_rule.constant_should_be_pascalcase.severity = warning -dotnet_naming_rule.constant_should_be_pascalcase.symbols = constant -dotnet_naming_rule.constant_should_be_pascalcase.style = pascalcase -dotnet_naming_rule.non_field_members_should_be_pascalcase.severity = warning -dotnet_naming_rule.non_field_members_should_be_pascalcase.symbols = non_field_members -dotnet_naming_rule.non_field_members_should_be_pascalcase.style = pascalcase -dotnet_naming_rule.method_parameter_should_be_camelcase.severity = warning -dotnet_naming_rule.method_parameter_should_be_camelcase.symbols = method_parameter -dotnet_naming_rule.method_parameter_should_be_camelcase.style = camelcase -dotnet_naming_rule.local_variable_should_be_camelcase.severity = warning -dotnet_naming_rule.local_variable_should_be_camelcase.symbols = local_variable -dotnet_naming_rule.local_variable_should_be_camelcase.style = camelcase -dotnet_naming_rule.type_parameter_should_be_tpascalcase.severity = warning -dotnet_naming_rule.type_parameter_should_be_tpascalcase.symbols = type_parameter -dotnet_naming_rule.type_parameter_should_be_tpascalcase.style = tpascalcase -dotnet_naming_rule.private_field_should_be__camelcase.severity = warning -dotnet_naming_rule.private_field_should_be__camelcase.symbols = private_field -dotnet_naming_rule.private_field_should_be__camelcase.style = _camelcase -dotnet_naming_rule.field_should_be_pascalcase.severity = warning -dotnet_naming_rule.field_should_be_pascalcase.symbols = field -dotnet_naming_rule.field_should_be_pascalcase.style = pascalcase -dotnet_naming_symbols.interface.applicable_kinds = interface -dotnet_naming_symbols.interface.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected -dotnet_naming_symbols.interface.required_modifiers = -dotnet_naming_symbols.types.applicable_kinds = class, struct, interface, enum -dotnet_naming_symbols.types.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected -dotnet_naming_symbols.types.required_modifiers = -dotnet_naming_symbols.non_field_members.applicable_kinds = property, event, method -dotnet_naming_symbols.non_field_members.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected -dotnet_naming_symbols.non_field_members.required_modifiers = -dotnet_naming_symbols.method_parameter.applicable_kinds = parameter -dotnet_naming_symbols.method_parameter.applicable_accessibilities = * -dotnet_naming_symbols.method_parameter.required_modifiers = -dotnet_naming_symbols.local_variable.applicable_kinds = local -dotnet_naming_symbols.local_variable.applicable_accessibilities = local -dotnet_naming_symbols.local_variable.required_modifiers = -dotnet_naming_symbols.type_parameter.applicable_kinds = type_parameter -dotnet_naming_symbols.type_parameter.applicable_accessibilities = * -dotnet_naming_symbols.type_parameter.required_modifiers = -dotnet_naming_symbols.constant.applicable_kinds = field, local -dotnet_naming_symbols.constant.applicable_accessibilities = * -dotnet_naming_symbols.constant.required_modifiers = const -dotnet_naming_symbols.private_field.applicable_kinds = field -dotnet_naming_symbols.private_field.applicable_accessibilities = private -dotnet_naming_symbols.private_field.required_modifiers = -dotnet_naming_symbols.field.applicable_kinds = field -dotnet_naming_symbols.field.applicable_accessibilities = public, internal, protected, protected_internal, private_protected, local -dotnet_naming_symbols.field.required_modifiers = -dotnet_naming_style.pascalcase.required_prefix = -dotnet_naming_style.pascalcase.required_suffix = -dotnet_naming_style.pascalcase.word_separator = -dotnet_naming_style.pascalcase.capitalization = pascal_case -dotnet_naming_style.ipascalcase.required_prefix = I -dotnet_naming_style.ipascalcase.required_suffix = -dotnet_naming_style.ipascalcase.word_separator = -dotnet_naming_style.ipascalcase.capitalization = pascal_case -dotnet_naming_style.camelcase.required_prefix = -dotnet_naming_style.camelcase.required_suffix = -dotnet_naming_style.camelcase.word_separator = -dotnet_naming_style.camelcase.capitalization = camel_case -dotnet_naming_style._camelcase.required_prefix = _ -dotnet_naming_style._camelcase.required_suffix = -dotnet_naming_style._camelcase.word_separator = -dotnet_naming_style._camelcase.capitalization = camel_case -dotnet_naming_style.tpascalcase.required_prefix = T -dotnet_naming_style.tpascalcase.required_suffix = -dotnet_naming_style.tpascalcase.word_separator = -dotnet_naming_style.tpascalcase.capitalization = pascal_case - -# Title : Avoid multiple blank lines -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide2000 -dotnet_diagnostic.IDE2000.severity = warning -dotnet_style_allow_multiple_blank_lines_experimental = false - -# Title : Embedded statements must be on their own line -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide2001 -dotnet_diagnostic.IDE2001.severity = warning - -# Title : Consecutive braces must not have blank line between them -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide2002 -dotnet_diagnostic.IDE2002.severity = warning - -# Title : Blank line required between block and subsequent statement -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide2003 -dotnet_diagnostic.IDE2003.severity = silent - -# Title : Blank line not allowed after constructor initializer colon -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide2004 -dotnet_diagnostic.IDE2004.severity = warning - -# Title : Blank line not allowed after conditional expression token -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide2005 -dotnet_diagnostic.IDE2005.severity = silent - -# Title : Blank line not allowed after arrow expression clause token -# Category : Style -# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide2006 -dotnet_diagnostic.IDE2006.severity = silent - -# Title : Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code -# Category : Trimming -dotnet_diagnostic.IL2026.severity = warning - -# Title : The value passed as the assembly name or type name to the CreateInstance method can't be statically analyzed. -# Category : Trimming -dotnet_diagnostic.IL2032.severity = warning - -# Title : The 'DynamicallyAccessedMembersAttribute' is not allowed on methods. It is allowed on method return value or method parameters. -# Category : Trimming -dotnet_diagnostic.IL2041.severity = warning - -# Title : 'DynamicallyAccessedMembersAttribute' on property conflicts with the same attribute on its accessor. -# Category : Trimming -dotnet_diagnostic.IL2043.severity = warning - -# Title : 'RequiresUnreferencedCodeAttribute' annotations must match across all interface implementations or overrides. -# Category : Trimming -dotnet_diagnostic.IL2046.severity = warning - -# Title : Correctness of COM interop cannot be guaranteed after trimming. Interfaces and interface members might be removed. -# Category : Trimming -dotnet_diagnostic.IL2050.severity = warning - -# Title : Either the type on which the MakeGenericType is called can't be statically determined, or the type parameters to be used for generic arguments can't be statically determined. -# Category : Trimming -dotnet_diagnostic.IL2055.severity = warning - -# Title : Unrecognized value passed to the parameter of method. It's not possible to guarantee the availability of the target type. -# Category : Trimming -dotnet_diagnostic.IL2057.severity = warning - -# Title : Parameters passed to method cannot be analyzed. Consider using methods 'System.Type.GetType' and `System.Activator.CreateInstance` instead. -# Category : Trimming -dotnet_diagnostic.IL2058.severity = warning - -# Title : The type passed to the RunClassConstructor is not statically known, Trimmer can't make sure that its static constructor is available. -# Category : Trimming -dotnet_diagnostic.IL2059.severity = warning - -# Title : Call to 'System.Reflection.MethodInfo.MakeGenericMethod' can not be statically analyzed. It's not possible to guarantee the availability of requirements of the generic method. -# Category : Trimming -dotnet_diagnostic.IL2060.severity = warning - -# Title : The parameter of method has a DynamicallyAccessedMembersAttribute, but the value passed to it can not be statically analyzed. -# Category : Trimming -dotnet_diagnostic.IL2062.severity = warning - -# Title : The return value of method has a DynamicallyAccessedMembersAttribute, but the value returned from the method can not be statically analyzed. -# Category : Trimming -dotnet_diagnostic.IL2063.severity = warning - -# Title : The field has a DynamicallyAccessedMembersAttribute, but the value assigned to it can not be statically analyzed. -# Category : Trimming -dotnet_diagnostic.IL2064.severity = warning - -# Title : The method has a DynamicallyAccessedMembersAttribute (which applies to the implicit 'this' parameter), but the value used for the 'this' parameter can not be statically analyzed. -# Category : Trimming -dotnet_diagnostic.IL2065.severity = warning - -# Title : The generic parameter of type or method has a DynamicallyAccessedMembersAttribute, but the value used for it can not be statically analyzed. -# Category : Trimming -dotnet_diagnostic.IL2066.severity = warning - -# Title : Target parameter argument does not satisfy 'DynamicallyAccessedMembersAttribute' in call to target method. The parameter of method does not have matching annotations. -# Category : Trimming -dotnet_diagnostic.IL2067.severity = warning - -# Title : Target method return value does not satisfy 'DynamicallyAccessedMembersAttribute' requirements. The parameter of method does not have matching annotations. -# Category : Trimming -dotnet_diagnostic.IL2068.severity = warning - -# Title : Value stored in field does not satisfy 'DynamicallyAccessedMembersAttribute' requirements. The parameter of method does not have matching annotations. -# Category : Trimming -dotnet_diagnostic.IL2069.severity = warning - -# Title : 'this' argument does not satisfy 'DynamicallyAccessedMembersAttribute' in call to target method. The parameter of method does not have matching annotations. -# Category : Trimming -dotnet_diagnostic.IL2070.severity = warning - -# Title : Generic argument does not satisfy 'DynamicallyAccessedMembersAttribute' in target method or type. The parameter of method does not have matching annotations. -# Category : Trimming -dotnet_diagnostic.IL2071.severity = warning - -# Title : Target parameter argument does not satisfy 'DynamicallyAccessedMembersAttribute' in call to target method. The return value of the source method does not have matching annotations. -# Category : Trimming -dotnet_diagnostic.IL2072.severity = warning - -# Title : Target method return value does not satisfy 'DynamicallyAccessedMembersAttribute' requirements. The return value of the source method does not have matching annotations. -# Category : Trimming -dotnet_diagnostic.IL2073.severity = warning - -# Title : Value stored in field does not satisfy 'DynamicallyAccessedMembersAttribute' requirements. The return value of the source method does not have matching annotations. -# Category : Trimming -dotnet_diagnostic.IL2074.severity = warning - -# Title : 'this' argument does not satisfy 'DynamicallyAccessedMembersAttribute' in call to target method. The return value of the source method does not have matching annotations. -# Category : Trimming -dotnet_diagnostic.IL2075.severity = warning - -# Title : Target generic argument does not satisfy 'DynamicallyAccessedMembersAttribute' in target method or type. The return value of the source method does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to. -# Category : Trimming -dotnet_diagnostic.IL2076.severity = warning - -# Title : Target parameter argument does not satisfy 'DynamicallyAccessedMembersAttribute' in call to target method. The source field does not have matching annotations. -# Category : Trimming -dotnet_diagnostic.IL2077.severity = warning - -# Title : Target method return value does not satisfy 'DynamicallyAccessedMembersAttribute' requirements. The source field does not have matching annotations. -# Category : Trimming -dotnet_diagnostic.IL2078.severity = warning - -# Title : Value stored in target field does not satisfy 'DynamicallyAccessedMembersAttribute' requirements. The source field does not have matching annotations. -# Category : Trimming -dotnet_diagnostic.IL2079.severity = warning - -# Title : 'this' argument does not satisfy 'DynamicallyAccessedMembersAttribute' in call to target method. The source field does not have matching annotations. -# Category : Trimming -dotnet_diagnostic.IL2080.severity = warning - -# Title : Target generic argument does not satisfy 'DynamicallyAccessedMembersAttribute' in target method or type. The source field does not have matching annotations. -# Category : Trimming -dotnet_diagnostic.IL2081.severity = warning - -# Title : Target parameter argument does not satisfy 'DynamicallyAccessedMembersAttribute' in call to target method. The implicit 'this' argument of source method does not have matching annotations. -# Category : Trimming -dotnet_diagnostic.IL2082.severity = warning - -# Title : Target method return value does not satisfy 'DynamicallyAccessedMembersAttribute' requirements. The implicit 'this' argument of source method does not have matching annotations. -# Category : Trimming -dotnet_diagnostic.IL2083.severity = warning - -# Title : Value stored in target field does not satisfy 'DynamicallyAccessedMembersAttribute' requirements. The implicit 'this' argument of source method does not have matching annotations. -# Category : Trimming -dotnet_diagnostic.IL2084.severity = warning - -# Title : 'this' argument does not satisfy 'DynamicallyAccessedMembersAttribute' in call to target method. The implicit 'this' argument of source method does not have matching annotations. -# Category : Trimming -dotnet_diagnostic.IL2085.severity = warning - -# Title : Target generic argument does not satisfy 'DynamicallyAccessedMembersAttribute' in target method or type. The implicit 'this' argument of source method does not have matching annotations. -# Category : Trimming -dotnet_diagnostic.IL2086.severity = warning - -# Title : Target parameter argument does not satisfy 'DynamicallyAccessedMembersAttribute' in call to target method. The generic parameter of the source method or type does not have matching annotations. -# Category : Trimming -dotnet_diagnostic.IL2087.severity = warning - -# Title : Target method return value does not satisfy 'DynamicallyAccessedMembersAttribute' requirements. The generic parameter of the source method or type does not have matching annotations. -# Category : Trimming -dotnet_diagnostic.IL2088.severity = warning - -# Title : Value stored in target field does not satisfy 'DynamicallyAccessedMembersAttribute' requirements. The generic parameter of the source method or type does not have matching annotations. -# Category : Trimming -dotnet_diagnostic.IL2089.severity = warning - -# Title : 'this' argument does not satisfy 'DynamicallyAccessedMembersAttribute' in call to target method. The generic parameter of the source method or type does not have matching annotations. -# Category : Trimming -dotnet_diagnostic.IL2090.severity = warning - -# Title : Target generic argument does not satisfy 'DynamicallyAccessedMembersAttribute' in target method or type. The generic parameter of the source method or type does not have matching annotations. -# Category : Trimming -dotnet_diagnostic.IL2091.severity = warning - -# Title : 'DynamicallyAccessedMemberTypes' on the parameter of method don't match overridden parameter of method. All overridden members must have the same 'DynamicallyAccessedMembersAttribute' usage. -# Category : Trimming -dotnet_diagnostic.IL2092.severity = warning - -# Title : 'DynamicallyAccessedMemberTypes' on the return value of method don't match overridden return value of method. All overridden members must have the same 'DynamicallyAccessedMembersAttribute' usage. -# Category : Trimming -dotnet_diagnostic.IL2093.severity = warning - -# Title : 'DynamicallyAccessedMemberTypes' on the implicit 'this' parameter of method don't match overridden implicit 'this' parameter of method. All overridden members must have the same 'DynamicallyAccessedMembersAttribute' usage. -# Category : Trimming -dotnet_diagnostic.IL2094.severity = warning - -# Title : 'DynamicallyAccessedMemberTypes' on the generic parameter of method or type don't match overridden generic parameter method or type. All overridden members must have the same 'DynamicallyAccessedMembersAttribute' usage. -# Category : Trimming -dotnet_diagnostic.IL2095.severity = warning - -# Title : Call to 'Type.GetType' method can perform case insensitive lookup of the type, currently ILLink can not guarantee presence of all the matching types. -# Category : Trimming -dotnet_diagnostic.IL2096.severity = warning - -# Title : Field has 'DynamicallyAccessedMembersAttribute', but that attribute can only be applied to fields of type 'System.Type' or 'System.String'. -# Category : Trimming -dotnet_diagnostic.IL2097.severity = warning - -# Title : Parameter of method has 'DynamicallyAccessedMembersAttribute', but that attribute can only be applied to parameters of type 'System.Type' or 'System.String'. -# Category : Trimming -dotnet_diagnostic.IL2098.severity = warning - -# Title : Property has 'DynamicallyAccessedMembersAttribute', but that attribute can only be applied to properties of type 'System.Type' or 'System.String'. -# Category : Trimming -dotnet_diagnostic.IL2099.severity = warning - -# Title : Value passed to the parameter of method cannot be statically determined as a property accessor. -# Category : Trimming -dotnet_diagnostic.IL2103.severity = warning - -# Title : Return type of method has 'DynamicallyAccessedMembersAttribute', but that attribute can only be applied to properties of type 'System.Type' or 'System.String'. -# Category : Trimming -dotnet_diagnostic.IL2106.severity = warning - -# Title : Types that derive from a base class with 'RequiresUnreferencedCodeAttribute' need to explicitly use the 'RequiresUnreferencedCodeAttribute' or suppress this warning -# Category : Trimming -dotnet_diagnostic.IL2109.severity = warning - -# Title : Field with 'DynamicallyAccessedMembersAttribute' is accessed via reflection. Trimmer can't guarantee availability of the requirements of the field. -# Category : Trimming -dotnet_diagnostic.IL2110.severity = warning - -# Title : Method with parameters or return value with `DynamicallyAccessedMembersAttribute` is accessed via reflection. Trimmer can't guarantee availability of the requirements of the method. -# Category : Trimming -dotnet_diagnostic.IL2111.severity = warning - -# Title : The use of 'RequiresUnreferencedCodeAttribute' on static constructors is disallowed since is a method not callable by the user, is only called by the runtime. Placing the attribute directly on the static constructor will have no effect, instead use 'RequiresUnreferencedCodeAttribute' on the type which will handle warning and silencing from the static constructor. -# Category : Trimming -dotnet_diagnostic.IL2116.severity = warning - -# Title : Avoid accessing Assembly file path when publishing as a single file -# Category : SingleFile -dotnet_diagnostic.IL3000.severity = warning - -# Title : Avoid using accessing Assembly file path when publishing as a single-file -# Category : Publish -# Help Link: https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/il3000 -dotnet_diagnostic.IL3000.severity = warning - -# Title : Avoid accessing Assembly file path when publishing as a single file -# Category : SingleFile -dotnet_diagnostic.IL3001.severity = warning - -# Title : Avoid using accessing Assembly file path when publishing as a single-file -# Category : Publish -# Help Link: https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/il3001 -dotnet_diagnostic.IL3001.severity = warning - -# Title : Avoid calling members marked with 'RequiresAssemblyFilesAttribute' when publishing as a single-file -# Category : SingleFile -dotnet_diagnostic.IL3002.severity = warning - -# Title : 'RequiresAssemblyFilesAttribute' annotations must match across all interface implementations or overrides. -# Category : SingleFile -dotnet_diagnostic.IL3003.severity = warning - -# Title : The use of 'RequiresAssemblyFilesAttribute' on static constructors is disallowed since is a method not callable by the user, is only called by the runtime. Placing the attribute directly on the static constructor will have no effect, instead use 'RequiresUnreferencedCodeAttribute' on the type which will handle warning and silencing from the static constructor. -# Category : SingleFile -dotnet_diagnostic.IL3004.severity = warning - -# Title : Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling. -# Category : AOT -dotnet_diagnostic.IL3050.severity = warning - -# Title : 'RequiresDynamicCodeAttribute' annotations must match across all interface implementations or overrides. -# Category : AOT -dotnet_diagnostic.IL3051.severity = warning - -# Title : The use of 'RequiresDynamicCodeAttribute' on static constructors is disallowed since is a method not callable by the user, is only called by the runtime. Placing the attribute directly on the static constructor will have no effect, instead use 'RequiresUnreferencedCodeAttribute' on the type which will handle warning and silencing from the static constructor. -# Category : AOT -dotnet_diagnostic.IL3056.severity = warning - -# Title : Use source generated logging methods for improved performance -# Category : Performance -# Help Link: https://TODO/r9a000 -dotnet_diagnostic.R9A000.severity = warning - -# Title : Use the 'Microsoft.Shared.Diagnostics.Throws' class instead of explicitly throwing exception for improved performance -# Category : Performance -# Help Link: https://TODO/r9a014 -dotnet_diagnostic.R9A014.severity = warning - -# Title : Use the 'Microsoft.Shared.Diagnostics.Throws' class instead of explicitly throwing exception for improved performance -# Category : Performance -# Help Link: https://TODO/r9a015 -dotnet_diagnostic.R9A015.severity = warning - -# Title : Use 'System.Text.CompositeFormat' instead of 'string.Format' for improved performance -# Category : Performance -# Help Link: https://TODO/r9a018 -dotnet_diagnostic.R9A018.severity = warning - -# Title : Remove unnecessary dictionary lookups -# Category : Performance -# Help Link: https://TODO/r9a019 -dotnet_diagnostic.R9A019.severity = warning - -# Title : Remove unnecessary set lookups -# Category : Performance -# Help Link: https://TODO/r9a020 -dotnet_diagnostic.R9A020.severity = warning - -# Title : Perform message formatting in the body of the logging method -# Category : Performance -# Help Link: https://TODO/r9a021 -dotnet_diagnostic.R9A021.severity = warning - -# Title : Use 'System.TimeProvider' to make the code easier to test -# Category : Reliability -# Help Link: https://TODO/r9a022 -dotnet_diagnostic.R9A022.severity = warning - -# Title : Using experimental API -# Category : Reliability -# Help Link: https://TODO/r9a029 -dotnet_diagnostic.R9A029.severity = none - -# Title : Use the character-based overloads of 'String.StartsWith' or 'String.EndsWith' -# Category : Performance -# Help Link: https://TODO/r9a030 -dotnet_diagnostic.R9A030.severity = warning - -# Title : Make types declared in an executable internal -# Category : Performance -# Help Link: https://TODO/r9a031 -dotnet_diagnostic.R9A031.severity = warning - -# Title : Consider using an array instead of a collection -# Category : Performance -# Help Link: https://TODO/r9a032 -dotnet_diagnostic.R9A032.severity = none - -# Title : Replace uses of 'Enum.GetName' and 'Enum.ToString' for improved performance -# Category : Performance -# Help Link: https://TODO/r9a033 -dotnet_diagnostic.R9A033.severity = warning - -# Title : Use 'Microsoft.Shared.Text.NumericExtensions.ToInvariantString' for improved performance -# Category : Performance -# Help Link: https://TODO/r9a036 -dotnet_diagnostic.R9A036.severity = warning - -# Title : Use 'System.ValueTuple' instead of 'System.Tuple' for improved performance -# Category : Performance -# Help Link: https://TODO/r9a037 -dotnet_diagnostic.R9A037.severity = warning - -# Title : Use generic collections instead of legacy collections for improved performance -# Category : Performance -# Help Link: https://TODO/r9a040 -dotnet_diagnostic.R9A040.severity = warning - -# Title : Use 'System.MemoryExtensions.Split' for improved performance -# Category : Performance -# Help Link: https://TODO/r9a043 -dotnet_diagnostic.R9A043.severity = warning - -# Title : Assign array of literal values to a static field for improved performance -# Category : Performance -# Help Link: https://TODO/r9a044 -dotnet_diagnostic.R9A044.severity = warning - -# Title : Newly added symbols must be marked as experimental -# Category : Correctness -# Help Link: https://TODO/r9a049 -dotnet_diagnostic.R9A049.severity = none - -# Title : Experimental symbols cannot be marked as obsolete -# Category : Correctness -# Help Link: https://TODO/r9a050 -dotnet_diagnostic.R9A050.severity = none - -# Title : Published symbols cannot be marked experimental -# Category : Correctness -# Help Link: https://TODO/r9a051 -dotnet_diagnostic.R9A051.severity = none - -# Title : Published symbols cannot be deleted to maintain compatibility -# Category : Correctness -# Help Link: https://TODO/r9a052 -dotnet_diagnostic.R9A052.severity = none - -# Title : A deprecated API is not annotated with the obsolete attribute -# Category : Correctness -# Help Link: https://eng.ms/docs/experiences-devices/r9-sdk/docs/static-analysis/analyzers/r9a053 -dotnet_diagnostic.R9A053.severity = none - -# Title : A deprecated API is marked as experimental -# Category : Correctness -# Help Link: https://eng.ms/docs/experiences-devices/r9-sdk/docs/static-analysis/analyzers/r9a054 -dotnet_diagnostic.R9A054.severity = none - -# Title : Published symbols cannot be changed to maintain compatibility -# Category : Correctness -# Help Link: https://TODO/r9a055 -dotnet_diagnostic.R9A055.severity = none - -# Title : Fire-and-forget async call inside a 'using' block -# Category : Correctness -# Help Link: https://TODO/r9a056 -dotnet_diagnostic.R9A056.severity = warning - -# Title : Consider removing unnecessary conditional access operator (?) -# Category : Performance -# Help Link: https://TODO/r9a058 -dotnet_diagnostic.R9A058.severity = suggestion - -# Title : Consider removing unnecessary null coalescing assignment (??=) -# Category : Performance -# Help Link: https://TODO/r9a059 -dotnet_diagnostic.R9A059.severity = suggestion - -# Title : Consider removing unnecessary null coalescing operator (??) -# Category : Performance -# Help Link: https://TODO/r9a060 -dotnet_diagnostic.R9A060.severity = suggestion - -# Title : The async method doesn't support cancellation -# Category : Resilience -# Help Link: https://TODO/r9a061 -dotnet_diagnostic.R9A061.severity = warning - -# Title : -# Category : Style -dotnet_diagnostic.RemoveUnnecessaryImportsFixable.severity = silent - -# Title : Methods and properties should be named in PascalCase -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-100 -# Redundant: IDE1006 -dotnet_diagnostic.S100.severity = none - -# Title : Method overrides should not change parameter defaults -# Category : Critical Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-1006 -dotnet_diagnostic.S1006.severity = warning - -# Title : Types should be named in PascalCase -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-101 -# Redundant: IDE1006 -dotnet_diagnostic.S101.severity = none - -# Title : Lines should not be too long -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-103 -dotnet_diagnostic.S103.severity = warning - -# Title : Files should not have too many lines of code -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-104 -dotnet_diagnostic.S104.severity = warning - -# Title : Destructors should not throw exceptions -# Category : Blocker Bug -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-1048 -# Redundant: CA1065 -dotnet_diagnostic.S1048.severity = none - -# Title : Tabulation characters should not be used -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-105 -# Redundant: SA1027 -dotnet_diagnostic.S105.severity = none - -# Title : Standard outputs should not be used directly to log anything -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-106 -dotnet_diagnostic.S106.severity = warning - -# Title : Collapsible "if" statements should be merged -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-1066 -dotnet_diagnostic.S1066.severity = none - -# Title : Expressions should not be too complex -# Category : Critical Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-1067 -dotnet_diagnostic.S1067.severity = warning - -# Title : Methods should not have too many parameters -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-107 -dotnet_diagnostic.S107.severity = warning - -# Title : URIs should not be hardcoded -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-1075 -dotnet_diagnostic.S1075.severity = warning - -# Title : Nested blocks of code should not be left empty -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-108 -dotnet_diagnostic.S108.severity = warning - -# Title : Magic numbers should not be used -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-109 -dotnet_diagnostic.S109.severity = warning - -# Title : Inheritance tree of classes should not be too deep -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-110 -dotnet_diagnostic.S110.severity = warning - -# Title : Fields should not have public accessibility -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-1104 -# Redundant: CA1051 -dotnet_diagnostic.S1104.severity = none - -# Title : A close curly brace should be located at the beginning of a line -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-1109 -# Redundant: SA1500 -dotnet_diagnostic.S1109.severity = none - -# Title : Redundant pairs of parentheses should be removed -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-1110 -# Redundant: SA1119 -dotnet_diagnostic.S1110.severity = none - -# Title : Empty statements should be removed -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-1116 -# Redundant: SA1106 -dotnet_diagnostic.S1116.severity = none - -# Title : Local variables should not shadow class fields -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-1117 -dotnet_diagnostic.S1117.severity = warning - -# Title : Utility classes should not have public constructors -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-1118 -# Redundant: CA1052 -dotnet_diagnostic.S1118.severity = none - -# Title : General exceptions should never be thrown -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-112 -# Redundant: CA2219 -dotnet_diagnostic.S112.severity = none - -# Title : Assignments should not be made from within sub-expressions -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-1121 -dotnet_diagnostic.S1121.severity = warning - -# Title : "Obsolete" attributes should include explanations -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-1123 -# Redundant: CA1041 -dotnet_diagnostic.S1123.severity = none - -# Title : Boolean literals should not be redundant -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-1125 -dotnet_diagnostic.S1125.severity = warning - -# Title : Unused "using" should be removed -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-1128 -dotnet_diagnostic.S1128.severity = warning - -# Title : Files should contain an empty newline at the end -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-113 -dotnet_diagnostic.S113.severity = none - -# Title : Track uses of "FIXME" tags -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-1134 -dotnet_diagnostic.S1134.severity = warning - -# Title : Track uses of "TODO" tags -# Category : Info Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-1135 -dotnet_diagnostic.S1135.severity = warning - -# Title : Unused private types or members should be removed -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-1144 -dotnet_diagnostic.S1144.severity = warning - -# Title : Useless "if(true) {...}" and "if(false){...}" blocks should be removed -# Category : Major Bug -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-1145 -dotnet_diagnostic.S1145.severity = warning - -# Title : Exit methods should not be called -# Category : Blocker Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-1147 -dotnet_diagnostic.S1147.severity = warning - -# Title : "switch case" clauses should not have too many lines of code -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-1151 -dotnet_diagnostic.S1151.severity = none - -# Title : "Any()" should be used to test for emptiness -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-1155 -dotnet_diagnostic.S1155.severity = warning - -# Title : Exceptions should not be thrown in finally blocks -# Category : Critical Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-1163 -# Redundant: CA2219 -dotnet_diagnostic.S1163.severity = none - -# Title : Empty arrays and collections should be returned instead of null -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-1168 -dotnet_diagnostic.S1168.severity = warning - -# Title : Unused method parameters should be removed -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-1172 -# Redundant: IDE0060 -dotnet_diagnostic.S1172.severity = none - -# Title : Overriding members should do more than simply call the same member in the base class -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-1185 -dotnet_diagnostic.S1185.severity = warning - -# Title : Methods should not be empty -# Category : Critical Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-1186 -dotnet_diagnostic.S1186.severity = warning - -# Title : String literals should not be duplicated -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-1192 -dotnet_diagnostic.S1192.severity = suggestion - -# Title : Nested code blocks should not be used -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-1199 -dotnet_diagnostic.S1199.severity = warning - -# Title : Classes should not be coupled to too many other classes (Single Responsibility Principle) -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-1200 -dotnet_diagnostic.S1200.severity = none - -# Title : "Equals(Object)" and "GetHashCode()" should be overridden in pairs -# Category : Minor Bug -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-1206 -# Redundant: CS0659 -dotnet_diagnostic.S1206.severity = none - -# Title : Control structures should use curly braces -# Category : Critical Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-121 -# Redundant: SA1503 -dotnet_diagnostic.S121.severity = none - -# Title : "Equals" and the comparison operators should be overridden when implementing "IComparable" -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-1210 -# Redundant: CA1036 -dotnet_diagnostic.S1210.severity = none - -# Title : "GC.Collect" should not be called -# Category : Critical Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-1215 -dotnet_diagnostic.S1215.severity = warning - -# Title : Statements should be on separate lines -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-122 -dotnet_diagnostic.S122.severity = none - -# Title : Method parameters, caught exceptions and foreach variables' initial values should not be ignored -# Category : Minor Bug -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-1226 -dotnet_diagnostic.S1226.severity = warning - -# Title : break statements should not be used except for switch cases -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-1227 -dotnet_diagnostic.S1227.severity = none - -# Title : Floating point numbers should not be tested for equality -# Category : Major Bug -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-1244 -dotnet_diagnostic.S1244.severity = error - -# Title : Sections of code should not be commented out -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-125 -dotnet_diagnostic.S125.severity = warning - -# Title : "if ... else if" constructs should end with "else" clauses -# Category : Critical Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-126 -dotnet_diagnostic.S126.severity = none - -# Title : A "while" loop should be used instead of a "for" loop -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-1264 -dotnet_diagnostic.S1264.severity = warning - -# Title : "for" loop stop conditions should be invariant -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-127 -dotnet_diagnostic.S127.severity = warning - -# Title : "switch" statements should have at least 3 "case" clauses -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-1301 -dotnet_diagnostic.S1301.severity = none - -# Title : Track uses of in-source issue suppressions -# Category : Info Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-1309 -# Comment : Suppressions are frequently necessary. -dotnet_diagnostic.S1309.severity = none - -# Title : "switch/Select" statements should contain a "default/Case Else" clauses -# Category : Critical Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-131 -dotnet_diagnostic.S131.severity = none - -# Title : Using hardcoded IP addresses is security-sensitive -# Category : Major Security Hotspot -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-1313 -dotnet_diagnostic.S1313.severity = warning - -# Title : Control flow statements "if", "switch", "for", "foreach", "while", "do" and "try" should not be nested too deeply -# Category : Critical Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-134 -dotnet_diagnostic.S134.severity = none - -# Title : Functions should not have too many lines of code -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-138 -dotnet_diagnostic.S138.severity = none - -# Title : Culture should be specified for "string" operations -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-1449 -dotnet_diagnostic.S1449.severity = warning - -# Title : Private fields only used as local variables in methods should become local variables -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-1450 -dotnet_diagnostic.S1450.severity = warning - -# Title : Track lack of copyright and license headers -# Category : Blocker Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-1451 -# Redundant: IDE0073 -dotnet_diagnostic.S1451.severity = none - -# Title : "switch" statements should not have too many "case" clauses -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-1479 -dotnet_diagnostic.S1479.severity = warning - -# Title : Unused local variables should be removed -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-1481 -# Redundant: CS0168 -dotnet_diagnostic.S1481.severity = none - -# Title : Methods and properties should not be too complex -# Category : Critical Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-1541 -dotnet_diagnostic.S1541.severity = none - -# Title : Tests should not be ignored -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-1607 -dotnet_diagnostic.S1607.severity = warning - -# Title : Strings should not be concatenated using '+' in a loop -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-1643 -dotnet_diagnostic.S1643.severity = warning - -# Title : Variables should not be self-assigned -# Category : Major Bug -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-1656 -dotnet_diagnostic.S1656.severity = warning - -# Title : Multiple variables should not be declared on the same line -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-1659 -dotnet_diagnostic.S1659.severity = warning - -# Title : An abstract class should have both abstract and concrete methods -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-1694 -dotnet_diagnostic.S1694.severity = warning - -# Title : NullReferenceException should not be caught -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-1696 -dotnet_diagnostic.S1696.severity = warning - -# Title : Short-circuit logic should be used to prevent null pointer dereferences in conditionals -# Category : Major Bug -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-1697 -dotnet_diagnostic.S1697.severity = warning - -# Title : "==" should not be used when "Equals" is overridden -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-1698 -dotnet_diagnostic.S1698.severity = warning - -# Title : Constructors should only call non-overridable methods -# Category : Critical Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-1699 -dotnet_diagnostic.S1699.severity = warning - -# Title : Loops with at most one iteration should be refactored -# Category : Major Bug -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-1751 -dotnet_diagnostic.S1751.severity = warning - -# Title : Identical expressions should not be used on both sides of a binary operator -# Category : Major Bug -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-1764 -dotnet_diagnostic.S1764.severity = warning - -# Title : "switch" statements should not be nested -# Category : Critical Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-1821 -dotnet_diagnostic.S1821.severity = none - -# Title : Objects should not be created to be dropped immediately without being used -# Category : Major Bug -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-1848 -dotnet_diagnostic.S1848.severity = warning - -# Title : Unused assignments should be removed -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-1854 -# Redundant: IDE0059 -dotnet_diagnostic.S1854.severity = none - -# Title : "ToString()" calls should not be redundant -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-1858 -dotnet_diagnostic.S1858.severity = warning - -# Title : Related "if/else if" statements should not have the same condition -# Category : Major Bug -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-1862 -dotnet_diagnostic.S1862.severity = warning - -# Title : Two branches in a conditional structure should not have exactly the same implementation -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-1871 -dotnet_diagnostic.S1871.severity = warning - -# Title : Redundant casts should not be used -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-1905 -# Redundant: IDE0004 -dotnet_diagnostic.S1905.severity = none - -# Title : Inheritance list should not be redundant -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-1939 -dotnet_diagnostic.S1939.severity = warning - -# Title : Boolean checks should not be inverted -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-1940 -dotnet_diagnostic.S1940.severity = warning - -# Title : Inappropriate casts should not be made -# Category : Critical Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-1944 -dotnet_diagnostic.S1944.severity = warning - -# Title : "for" loop increment clauses should modify the loops' counters -# Category : Critical Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-1994 -dotnet_diagnostic.S1994.severity = warning - -# Title : Hashes should include an unpredictable salt -# Category : Critical Vulnerability -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-2053 -# Comment : Analysis is too slow -dotnet_diagnostic.S2053.severity = none - -# Title : Hard-coded credentials are security-sensitive -# Category : Blocker Security Hotspot -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-2068 -dotnet_diagnostic.S2068.severity = warning - -# Title : SHA-1 and Message-Digest hash algorithms should not be used in secure contexts -# Category : Critical Vulnerability -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-2070 -# Redundant: CA5350 -dotnet_diagnostic.S2070.severity = none - -# Title : Formatting SQL queries is security-sensitive -# Category : Major Security Hotspot -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-2077 -dotnet_diagnostic.S2077.severity = warning - -# Title : Creating cookies without the "secure" flag is security-sensitive -# Category : Minor Security Hotspot -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-2092 -dotnet_diagnostic.S2092.severity = warning - -# Title : Collections should not be passed as arguments to their own methods -# Category : Major Bug -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-2114 -dotnet_diagnostic.S2114.severity = warning - -# Title : A secure password should be used when connecting to a database -# Category : Blocker Vulnerability -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-2115 -dotnet_diagnostic.S2115.severity = warning - -# Title : Values should not be uselessly incremented -# Category : Major Bug -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-2123 -dotnet_diagnostic.S2123.severity = warning - -# Title : Underscores should be used to make large numbers readable -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-2148 -dotnet_diagnostic.S2148.severity = warning - -# Title : "sealed" classes should not have "protected" members -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-2156 -dotnet_diagnostic.S2156.severity = warning - -# Title : Short-circuit logic should be used in boolean contexts -# Category : Blocker Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-2178 -dotnet_diagnostic.S2178.severity = warning - -# Title : Integral numbers should not be shifted by zero or more than their number of bits-1 -# Category : Minor Bug -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-2183 -dotnet_diagnostic.S2183.severity = warning - -# Title : Results of integer division should not be assigned to floating point variables -# Category : Minor Bug -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-2184 -dotnet_diagnostic.S2184.severity = warning - -# Title : TestCases should contain tests -# Category : Blocker Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-2187 -dotnet_diagnostic.S2187.severity = warning - -# Title : Recursion should not be infinite -# Category : Blocker Bug -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-2190 -dotnet_diagnostic.S2190.severity = warning - -# Title : Modulus results should not be checked for direct equality -# Category : Critical Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-2197 -dotnet_diagnostic.S2197.severity = warning - -# Title : Return values from functions without side effects should not be ignored -# Category : Major Bug -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-2201 -# Redundant: CA1806 -dotnet_diagnostic.S2201.severity = none - -# Title : Runtime type checking should be simplified -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-2219 -dotnet_diagnostic.S2219.severity = warning - -# Title : "Exception" should not be caught -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-2221 -dotnet_diagnostic.S2221.severity = none - -# Title : Locks should be released on all paths -# Category : Critical Bug -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-2222 -dotnet_diagnostic.S2222.severity = warning - -# Title : Non-constant static fields should not be visible -# Category : Critical Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-2223 -dotnet_diagnostic.S2223.severity = warning - -# Title : "ToString()" method should not return null -# Category : Major Bug -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-2225 -dotnet_diagnostic.S2225.severity = warning - -# Title : Console logging should not be used -# Category : Minor Vulnerability -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-2228 -dotnet_diagnostic.S2228.severity = warning - -# Title : Parameters should be passed in the correct order -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-2234 -dotnet_diagnostic.S2234.severity = warning - -# Title : Using pseudorandom number generators (PRNGs) is security-sensitive -# Category : Critical Security Hotspot -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-2245 -dotnet_diagnostic.S2245.severity = warning - -# Title : A "for" loop update clause should move the counter in the right direction -# Category : Major Bug -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-2251 -dotnet_diagnostic.S2251.severity = warning - -# Title : For-loop conditions should be true at least once -# Category : Major Bug -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-2252 -dotnet_diagnostic.S2252.severity = warning - -# Title : Writing cookies is security-sensitive -# Category : Minor Security Hotspot -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-2255 -dotnet_diagnostic.S2255.severity = warning - -# Title : Using non-standard cryptographic algorithms is security-sensitive -# Category : Critical Security Hotspot -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-2257 -dotnet_diagnostic.S2257.severity = warning - -# Title : Null pointers should not be dereferenced -# Category : Major Bug -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-2259 -# Comment : Redundant, covered by modern C# compiler -dotnet_diagnostic.S2259.severity = none - -# Title : Composite format strings should not lead to unexpected behavior at runtime -# Category : Blocker Bug -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-2275 -dotnet_diagnostic.S2275.severity = warning - -# Title : Neither DES (Data Encryption Standard) nor DESede (3DES) should be used -# Category : Blocker Vulnerability -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-2278 -dotnet_diagnostic.S2278.severity = warning - -# Title : Field-like events should not be virtual -# Category : Critical Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-2290 -dotnet_diagnostic.S2290.severity = warning - -# Title : Overflow checking should not be disabled for "Enumerable.Sum" -# Category : Critical Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-2291 -dotnet_diagnostic.S2291.severity = warning - -# Title : Trivial properties should be auto-implemented -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-2292 -# Redundant: IDE0032 -dotnet_diagnostic.S2292.severity = none - -# Title : "nameof" should be used -# Category : Critical Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-2302 -dotnet_diagnostic.S2302.severity = warning - -# Title : "async" and "await" should not be used as identifiers -# Category : Blocker Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-2306 -dotnet_diagnostic.S2306.severity = warning - -# Title : Methods and properties that don't access instance data should be static -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-2325 -# Redundant: CA1822 -dotnet_diagnostic.S2325.severity = none - -# Title : Unused type parameters should be removed -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-2326 -# Comment : Valid pattern used in a number of places -dotnet_diagnostic.S2326.severity = none - -# Title : "try" statements with identical "catch" and/or "finally" blocks should be merged -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-2327 -dotnet_diagnostic.S2327.severity = warning - -# Title : "GetHashCode" should not reference mutable fields -# Category : Minor Bug -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-2328 -dotnet_diagnostic.S2328.severity = warning - -# Title : Array covariance should not be used -# Category : Critical Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-2330 -dotnet_diagnostic.S2330.severity = warning - -# Title : Redundant modifiers should not be used -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-2333 -dotnet_diagnostic.S2333.severity = warning - -# Title : Public constant members should not be used -# Category : Critical Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-2339 -dotnet_diagnostic.S2339.severity = none - -# Title : Enumeration types should comply with a naming convention -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-2342 -dotnet_diagnostic.S2342.severity = none - -# Title : Enumeration type names should not have "Flags" or "Enum" suffixes -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-2344 -dotnet_diagnostic.S2344.severity = warning - -# Title : Flags enumerations should explicitly initialize all their members -# Category : Minor Bug -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-2345 -dotnet_diagnostic.S2345.severity = warning - -# Title : Flags enumerations zero-value members should be named "None" -# Category : Critical Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-2346 -# Redundant: CA1008 -dotnet_diagnostic.S2346.severity = none - -# Title : Fields should be private -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-2357 -# Redundant: CA1051 -dotnet_diagnostic.S2357.severity = none - -# Title : Optional parameters should not be used -# Category : Critical Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-2360 -dotnet_diagnostic.S2360.severity = none - -# Title : Properties should not make collection or array copies -# Category : Critical Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-2365 -dotnet_diagnostic.S2365.severity = warning - -# Title : Public methods should not have multidimensional array parameters -# Category : Blocker Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-2368 -dotnet_diagnostic.S2368.severity = warning - -# Title : Exceptions should not be thrown from property getters -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-2372 -dotnet_diagnostic.S2372.severity = warning - -# Title : Write-only properties should not be used -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-2376 -dotnet_diagnostic.S2376.severity = warning - -# Title : Mutable fields should not be "public static" -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-2386 -dotnet_diagnostic.S2386.severity = warning - -# Title : Child class fields should not shadow parent class fields -# Category : Blocker Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-2387 -dotnet_diagnostic.S2387.severity = warning - -# Title : Types and methods should not have too many generic parameters -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-2436 -# Redundant: CA1005 -dotnet_diagnostic.S2436.severity = none - -# Title : Silly bit operations should not be performed -# Category : Blocker Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-2437 -dotnet_diagnostic.S2437.severity = warning - -# Title : Whitespace and control characters in string literals should be explicit -# Category : Critical Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-2479 -dotnet_diagnostic.S2479.severity = warning - -# Title : Generic exceptions should not be ignored -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-2486 -dotnet_diagnostic.S2486.severity = warning - -# Title : Shared resources should not be used for locking -# Category : Critical Bug -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-2551 -dotnet_diagnostic.S2551.severity = warning - -# Title : Conditionally executed code should be reachable -# Category : Major Bug -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-2583 -# Redundant: CA1508 -dotnet_diagnostic.S2583.severity = none - -# Title : Boolean expressions should not be gratuitous -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-2589 -dotnet_diagnostic.S2589.severity = warning - -# Title : Setting loose file permissions is security-sensitive -# Category : Major Security Hotspot -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-2612 -dotnet_diagnostic.S2612.severity = warning - -# Title : The length returned from a stream read should be checked -# Category : Minor Bug -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-2674 -dotnet_diagnostic.S2674.severity = warning - -# Title : Multiline blocks should be enclosed in curly braces -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-2681 -dotnet_diagnostic.S2681.severity = warning - -# Title : "NaN" should not be used in comparisons -# Category : Major Bug -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-2688 -dotnet_diagnostic.S2688.severity = warning - -# Title : "IndexOf" checks should not be for positive numbers -# Category : Critical Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-2692 -dotnet_diagnostic.S2692.severity = warning - -# Title : Instance members should not write to "static" fields -# Category : Critical Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-2696 -dotnet_diagnostic.S2696.severity = warning - -# Title : Tests should include assertions -# Category : Blocker Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-2699 -dotnet_diagnostic.S2699.severity = warning - -# Title : Literal boolean values should not be used in assertions -# Category : Critical Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-2701 -dotnet_diagnostic.S2701.severity = warning - -# Title : "catch" clauses should do more than rethrow -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-2737 -dotnet_diagnostic.S2737.severity = warning - -# Title : Static fields should not be used in generic types -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-2743 -dotnet_diagnostic.S2743.severity = none - -# Title : XML parsers should not be vulnerable to XXE attacks -# Category : Blocker Vulnerability -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-2755 -dotnet_diagnostic.S2755.severity = warning - -# Title : "=+" should not be used instead of "+=" -# Category : Major Bug -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-2757 -dotnet_diagnostic.S2757.severity = warning - -# Title : The ternary operator should not return the same value regardless of the condition -# Category : Major Bug -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-2758 -dotnet_diagnostic.S2758.severity = warning - -# Title : Sequential tests should not check the same condition -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-2760 -dotnet_diagnostic.S2760.severity = warning - -# Title : Doubled prefix operators "!!" and "~~" should not be used -# Category : Major Bug -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-2761 -dotnet_diagnostic.S2761.severity = warning - -# Title : SQL keywords should be delimited by whitespace -# Category : Blocker Bug -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-2857 -dotnet_diagnostic.S2857.severity = warning - -# Title : "IDisposables" should be disposed -# Category : Blocker Bug -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-2930 -# Redundant: CA2000 -dotnet_diagnostic.S2930.severity = none - -# Title : Classes with "IDisposable" members should implement "IDisposable" -# Category : Blocker Bug -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-2931 -# Redundant: CA1001 -dotnet_diagnostic.S2931.severity = none - -# Title : Fields that are only assigned in the constructor should be "readonly" -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-2933 -# Redundant: IDE0044 -dotnet_diagnostic.S2933.severity = none - -# Title : Property assignments should not be made for "readonly" fields not constrained to reference types -# Category : Minor Bug -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-2934 -dotnet_diagnostic.S2934.severity = warning - -# Title : Classes should "Dispose" of members from the classes' own "Dispose" methods -# Category : Critical Bug -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-2952 -dotnet_diagnostic.S2952.severity = warning - -# Title : Methods named "Dispose" should implement "IDisposable.Dispose" -# Category : Blocker Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-2953 -dotnet_diagnostic.S2953.severity = warning - -# Title : Generic parameters not constrained to reference types should not be compared to "null" -# Category : Minor Bug -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-2955 -dotnet_diagnostic.S2955.severity = warning - -# Title : "IEnumerable" LINQs should be simplified -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-2971 -dotnet_diagnostic.S2971.severity = warning - -# Title : "Object.ReferenceEquals" should not be used for value types -# Category : Major Bug -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-2995 -dotnet_diagnostic.S2995.severity = warning - -# Title : "ThreadStatic" fields should not be initialized -# Category : Major Bug -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-2996 -dotnet_diagnostic.S2996.severity = warning - -# Title : "IDisposables" created in a "using" statement should not be returned -# Category : Major Bug -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-2997 -dotnet_diagnostic.S2997.severity = warning - -# Title : "ThreadStatic" should not be used on non-static fields -# Category : Major Bug -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3005 -dotnet_diagnostic.S3005.severity = warning - -# Title : Static fields should not be updated in constructors -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3010 -dotnet_diagnostic.S3010.severity = warning - -# Title : Reflection should not be used to increase accessibility of classes, methods, or fields -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3011 -dotnet_diagnostic.S3011.severity = warning - -# Title : Members should not be initialized to default values -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3052 -# Redundant: CA1805 -dotnet_diagnostic.S3052.severity = none - -# Title : Types should not have members with visibility set higher than the type's visibility -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3059 -dotnet_diagnostic.S3059.severity = none - -# Title : "is" should not be used with "this" -# Category : Blocker Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3060 -dotnet_diagnostic.S3060.severity = warning - -# Title : "async" methods should not return "void" -# Category : Major Bug -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3168 -# Redundant: VSTHRD100 -dotnet_diagnostic.S3168.severity = none - -# Title : Multiple "OrderBy" calls should not be used -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3169 -dotnet_diagnostic.S3169.severity = warning - -# Title : Delegates should not be subtracted -# Category : Major Bug -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3172 -dotnet_diagnostic.S3172.severity = warning - -# Title : "interface" instances should not be cast to concrete types -# Category : Critical Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3215 -dotnet_diagnostic.S3215.severity = warning - -# Title : "ConfigureAwait(false)" should be used -# Category : Critical Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3216 -# Redundant: CA2007 -dotnet_diagnostic.S3216.severity = none - -# Title : "Explicit" conversions of "foreach" loops should not be used -# Category : Critical Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3217 -dotnet_diagnostic.S3217.severity = warning - -# Title : Inner class members should not shadow outer class "static" or type members -# Category : Critical Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3218 -dotnet_diagnostic.S3218.severity = warning - -# Title : Method calls should not resolve ambiguously to overloads with "params" -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3220 -dotnet_diagnostic.S3220.severity = warning - -# Title : "GC.SuppressFinalize" should not be invoked for types without destructors -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3234 -dotnet_diagnostic.S3234.severity = warning - -# Title : Redundant parentheses should not be used -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3235 -dotnet_diagnostic.S3235.severity = warning - -# Title : Caller information arguments should not be provided explicitly -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3236 -dotnet_diagnostic.S3236.severity = warning - -# Title : "value" parameters should be used -# Category : Blocker Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3237 -dotnet_diagnostic.S3237.severity = warning - -# Title : The simplest possible condition syntax should be used -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3240 -# Redundant: IDE0054 -dotnet_diagnostic.S3240.severity = none - -# Title : Methods should not return values that are never used -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3241 -dotnet_diagnostic.S3241.severity = warning - -# Title : Method parameters should be declared with base types -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3242 -# Comment : We want to encourage concrete types instead of interface types when possible as it's considerably faster. -dotnet_diagnostic.S3242.severity = none - -# Title : Anonymous delegates should not be used to unsubscribe from Events -# Category : Major Bug -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3244 -dotnet_diagnostic.S3244.severity = warning - -# Title : Generic type parameters should be co/contravariant when possible -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3246 -dotnet_diagnostic.S3246.severity = warning - -# Title : Duplicate casts should not be made -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3247 -dotnet_diagnostic.S3247.severity = warning - -# Title : Classes directly extending "object" should not call "base" in "GetHashCode" or "Equals" -# Category : Major Bug -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3249 -dotnet_diagnostic.S3249.severity = warning - -# Title : Implementations should be provided for "partial" methods -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3251 -dotnet_diagnostic.S3251.severity = warning - -# Title : Constructor and destructor declarations should not be redundant -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3253 -dotnet_diagnostic.S3253.severity = warning - -# Title : Default parameter values should not be passed as arguments -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3254 -dotnet_diagnostic.S3254.severity = warning - -# Title : "string.IsNullOrEmpty" should be used -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3256 -dotnet_diagnostic.S3256.severity = warning - -# Title : Declarations and initializations should be as concise as possible -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3257 -dotnet_diagnostic.S3257.severity = warning - -# Title : Non-derived "private" classes and records should be "sealed" -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3260 -# Redundant: R9A013 -dotnet_diagnostic.S3260.severity = none - -# Title : Namespaces should not be empty -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3261 -dotnet_diagnostic.S3261.severity = warning - -# Title : "params" should be used on overrides -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3262 -dotnet_diagnostic.S3262.severity = warning - -# Title : Static fields should appear in the order they must be initialized -# Category : Major Bug -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3263 -dotnet_diagnostic.S3263.severity = warning - -# Title : Events should be invoked -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3264 -dotnet_diagnostic.S3264.severity = warning - -# Title : Non-flags enums should not be used in bitwise operations -# Category : Critical Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3265 -dotnet_diagnostic.S3265.severity = warning - -# Title : Loops should be simplified with "LINQ" expressions -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3267 -dotnet_diagnostic.S3267.severity = none - -# Title : Cipher Block Chaining IVs should be unpredictable -# Category : Critical Vulnerability -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3329 -# Comment : Analysis is too slow -dotnet_diagnostic.S3329.severity = none - -# Title : Creating cookies without the "HttpOnly" flag is security-sensitive -# Category : Minor Security Hotspot -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3330 -dotnet_diagnostic.S3330.severity = warning - -# Title : Caller information parameters should come at the end of the parameter list -# Category : Major Bug -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3343 -dotnet_diagnostic.S3343.severity = warning - -# Title : Expressions used in "Debug.Assert" should not produce side effects -# Category : Major Bug -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3346 -dotnet_diagnostic.S3346.severity = warning - -# Title : Unchanged local variables should be "const" -# Category : Critical Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3353 -dotnet_diagnostic.S3353.severity = warning - -# Title : Ternary operators should not be nested -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3358 -dotnet_diagnostic.S3358.severity = warning - -# Title : "this" should not be exposed from constructors -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3366 -dotnet_diagnostic.S3366.severity = warning - -# Title : Attribute, EventArgs, and Exception type names should end with the type being extended -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3376 -# Redundant: CA1710 -dotnet_diagnostic.S3376.severity = none - -# Title : "base.Equals" should not be used to check for reference equality in "Equals" if "base" is not "object" -# Category : Minor Bug -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3397 -dotnet_diagnostic.S3397.severity = warning - -# Title : Methods should not return constants -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3400 -dotnet_diagnostic.S3400.severity = warning - -# Title : Assertion arguments should be passed in the correct order -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3415 -dotnet_diagnostic.S3415.severity = warning - -# Title : Method overloads with default parameter values should not overlap -# Category : Blocker Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3427 -dotnet_diagnostic.S3427.severity = warning - -# Title : "[ExpectedException]" should not be used -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3431 -dotnet_diagnostic.S3431.severity = warning - -# Title : Test method signatures should be correct -# Category : Blocker Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3433 -dotnet_diagnostic.S3433.severity = warning - -# Title : Variables should not be checked against the values they're about to be assigned -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3440 -dotnet_diagnostic.S3440.severity = warning - -# Title : Redundant property names should be omitted in anonymous classes -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3441 -dotnet_diagnostic.S3441.severity = warning - -# Title : "abstract" classes should not have "public" constructors -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3442 -dotnet_diagnostic.S3442.severity = warning - -# Title : Type should not be examined on "System.Type" instances -# Category : Blocker Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3443 -dotnet_diagnostic.S3443.severity = warning - -# Title : Interfaces should not simply inherit from base interfaces with colliding members -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3444 -dotnet_diagnostic.S3444.severity = warning - -# Title : Exceptions should not be explicitly rethrown -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3445 -dotnet_diagnostic.S3445.severity = warning - -# Title : "[Optional]" should not be used on "ref" or "out" parameters -# Category : Critical Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3447 -dotnet_diagnostic.S3447.severity = warning - -# Title : Right operands of shift operators should be integers -# Category : Critical Bug -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3449 -dotnet_diagnostic.S3449.severity = warning - -# Title : Parameters with "[DefaultParameterValue]" attributes should also be marked "[Optional]" -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3450 -dotnet_diagnostic.S3450.severity = warning - -# Title : "[DefaultValue]" should not be used when "[DefaultParameterValue]" is meant -# Category : Critical Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3451 -dotnet_diagnostic.S3451.severity = warning - -# Title : Classes should not have only "private" constructors -# Category : Major Bug -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3453 -dotnet_diagnostic.S3453.severity = warning - -# Title : "string.ToCharArray()" and "ReadOnlySpan.ToArray()" should not be called redundantly -# Category : Minor Bug -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3456 -dotnet_diagnostic.S3456.severity = warning - -# Title : Composite format strings should be used correctly -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3457 -dotnet_diagnostic.S3457.severity = warning - -# Title : Empty "case" clauses that fall through to the "default" should be omitted -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3458 -dotnet_diagnostic.S3458.severity = warning - -# Title : Unassigned members should be removed -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3459 -dotnet_diagnostic.S3459.severity = warning - -# Title : Type inheritance should not be recursive -# Category : Blocker Bug -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3464 -dotnet_diagnostic.S3464.severity = warning - -# Title : Optional parameters should be passed to "base" calls -# Category : Major Bug -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3466 -dotnet_diagnostic.S3466.severity = warning - -# Title : Empty "default" clauses should be removed -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3532 -dotnet_diagnostic.S3532.severity = warning - -# Title : "ServiceContract" and "OperationContract" attributes should be used together -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3597 -dotnet_diagnostic.S3597.severity = warning - -# Title : One-way "OperationContract" methods should have "void" return type -# Category : Major Bug -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3598 -dotnet_diagnostic.S3598.severity = warning - -# Title : "params" should not be introduced on overrides -# Category : Critical Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3600 -dotnet_diagnostic.S3600.severity = warning - -# Title : Methods with "Pure" attribute should return a value -# Category : Major Bug -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3603 -dotnet_diagnostic.S3603.severity = warning - -# Title : Member initializer values should not be redundant -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3604 -dotnet_diagnostic.S3604.severity = warning - -# Title : Nullable type comparison should not be redundant -# Category : Major Bug -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3610 -dotnet_diagnostic.S3610.severity = warning - -# Title : Jump statements should not be redundant -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3626 -dotnet_diagnostic.S3626.severity = warning - -# Title : Empty nullable value should not be accessed -# Category : Major Bug -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3655 -dotnet_diagnostic.S3655.severity = warning - -# Title : Exception constructors should not throw exceptions -# Category : Blocker Bug -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3693 -dotnet_diagnostic.S3693.severity = warning - -# Title : Track use of "NotImplementedException" -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3717 -dotnet_diagnostic.S3717.severity = warning - -# Title : Cognitive Complexity of methods should not be too high -# Category : Critical Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3776 -# Comment : Code gets complicated -dotnet_diagnostic.S3776.severity = none - -# Title : "SafeHandle.DangerousGetHandle" should not be called -# Category : Blocker Bug -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3869 -dotnet_diagnostic.S3869.severity = warning - -# Title : Exception types should be "public" -# Category : Critical Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3871 -# Redundant: CA1064 -dotnet_diagnostic.S3871.severity = none - -# Title : Parameter names should not duplicate the names of their methods -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3872 -dotnet_diagnostic.S3872.severity = warning - -# Title : "out" and "ref" parameters should not be used -# Category : Critical Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3874 -# Redundant: CA1021 -dotnet_diagnostic.S3874.severity = none - -# Title : "operator==" should not be overloaded on reference types -# Category : Blocker Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3875 -dotnet_diagnostic.S3875.severity = warning - -# Title : Strings or integral types should be used for indexers -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3876 -dotnet_diagnostic.S3876.severity = warning - -# Title : Exceptions should not be thrown from unexpected methods -# Category : Blocker Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3877 -dotnet_diagnostic.S3877.severity = warning - -# Title : Finalizers should not be empty -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3880 -dotnet_diagnostic.S3880.severity = warning - -# Title : "IDisposable" should be implemented correctly -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3881 -dotnet_diagnostic.S3881.severity = none - -# Title : "CoSetProxyBlanket" and "CoInitializeSecurity" should not be used -# Category : Blocker Vulnerability -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3884 -dotnet_diagnostic.S3884.severity = warning - -# Title : "Assembly.Load" should be used -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3885 -dotnet_diagnostic.S3885.severity = warning - -# Title : Mutable, non-private fields should not be "readonly" -# Category : Minor Bug -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3887 -dotnet_diagnostic.S3887.severity = warning - -# Title : Neither "Thread.Resume" nor "Thread.Suspend" should be used -# Category : Blocker Bug -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3889 -dotnet_diagnostic.S3889.severity = warning - -# Title : Classes that provide "Equals()" should implement "IEquatable" -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3897 -dotnet_diagnostic.S3897.severity = warning - -# Title : Value types should implement "IEquatable" -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3898 -dotnet_diagnostic.S3898.severity = none - -# Title : Arguments of public methods should be validated against null -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3900 -# Redundant: CA1062 -dotnet_diagnostic.S3900.severity = none - -# Title : "Assembly.GetExecutingAssembly" should not be called -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3902 -dotnet_diagnostic.S3902.severity = warning - -# Title : Types should be defined in named namespaces -# Category : Major Bug -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3903 -# Comment : Doesn't work with file-scoped namespaces, so disabling for now. -dotnet_diagnostic.S3903.severity = none - -# Title : Assemblies should have version information -# Category : Critical Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3904 -dotnet_diagnostic.S3904.severity = warning - -# Title : Event Handlers should have the correct signature -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3906 -dotnet_diagnostic.S3906.severity = warning - -# Title : Generic event handlers should be used -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3908 -dotnet_diagnostic.S3908.severity = warning - -# Title : Collections should implement the generic interface -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3909 -# Redundant: CA1010 -dotnet_diagnostic.S3909.severity = none - -# Title : All branches in a conditional structure should not have exactly the same implementation -# Category : Major Bug -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3923 -dotnet_diagnostic.S3923.severity = warning - -# Title : "ISerializable" should be implemented correctly -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3925 -# Comment : TODO - is ISerializable still relevant? -dotnet_diagnostic.S3925.severity = none - -# Title : Deserialization methods should be provided for "OptionalField" members -# Category : Major Bug -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3926 -dotnet_diagnostic.S3926.severity = warning - -# Title : Serialization event handlers should be implemented correctly -# Category : Major Bug -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3927 -dotnet_diagnostic.S3927.severity = warning - -# Title : Parameter names used into ArgumentException constructors should match an existing one -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3928 -dotnet_diagnostic.S3928.severity = warning - -# Title : Number patterns should be regular -# Category : Critical Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3937 -dotnet_diagnostic.S3937.severity = warning - -# Title : Calculations should not overflow -# Category : Major Bug -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3949 -dotnet_diagnostic.S3949.severity = suggestion - -# Title : "Generic.List" instances should not be part of public APIs -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3956 -# Redundant: CA1002 -dotnet_diagnostic.S3956.severity = none - -# Title : "static readonly" constants should be "const" instead -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3962 -# Redundant: CA1802 -dotnet_diagnostic.S3962.severity = none - -# Title : "static" fields should be initialized inline -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3963 -# Redundant: CA1810 and CA2207 -dotnet_diagnostic.S3963.severity = none - -# Title : Objects should not be disposed more than once -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3966 -dotnet_diagnostic.S3966.severity = warning - -# Title : Multidimensional arrays should not be used -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3967 -dotnet_diagnostic.S3967.severity = warning - -# Title : "GC.SuppressFinalize" should not be called -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3971 -dotnet_diagnostic.S3971.severity = warning - -# Title : Conditionals should start on new lines -# Category : Critical Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3972 -dotnet_diagnostic.S3972.severity = warning - -# Title : A conditionally executed single line should be denoted by indentation -# Category : Critical Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3973 -dotnet_diagnostic.S3973.severity = warning - -# Title : Collection sizes and array length comparisons should make sense -# Category : Major Bug -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3981 -dotnet_diagnostic.S3981.severity = warning - -# Title : Exceptions should not be created without being thrown -# Category : Major Bug -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3984 -dotnet_diagnostic.S3984.severity = warning - -# Title : Assemblies should be marked as CLS compliant -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3990 -# Redundant: CA1014 -dotnet_diagnostic.S3990.severity = none - -# Title : Assemblies should explicitly specify COM visibility -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3992 -# Redundant: CA1017 -dotnet_diagnostic.S3992.severity = none - -# Title : Custom attributes should be marked with "System.AttributeUsageAttribute" -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3993 -# Redundant: CA1018 -dotnet_diagnostic.S3993.severity = none - -# Title : URI Parameters should not be strings -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3994 -dotnet_diagnostic.S3994.severity = none - -# Title : URI return values should not be strings -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3995 -dotnet_diagnostic.S3995.severity = warning - -# Title : URI properties should not be strings -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3996 -dotnet_diagnostic.S3996.severity = warning - -# Title : String URI overloads should call "System.Uri" overloads -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3997 -dotnet_diagnostic.S3997.severity = warning - -# Title : Threads should not lock on objects with weak identity -# Category : Critical Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-3998 -dotnet_diagnostic.S3998.severity = warning - -# Title : Pointers to unmanaged memory should not be visible -# Category : Critical Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-4000 -dotnet_diagnostic.S4000.severity = warning - -# Title : Disposable types should declare finalizers -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-4002 -dotnet_diagnostic.S4002.severity = warning - -# Title : Collection properties should be readonly -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-4004 -# Redundant: CA2227 -dotnet_diagnostic.S4004.severity = none - -# Title : "System.Uri" arguments should be used instead of strings -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-4005 -# Redundant: CA2234 -dotnet_diagnostic.S4005.severity = none - -# Title : Inherited member visibility should not be decreased -# Category : Critical Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-4015 -dotnet_diagnostic.S4015.severity = warning - -# Title : Enumeration members should not be named "Reserved" -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-4016 -dotnet_diagnostic.S4016.severity = warning - -# Title : Method signatures should not contain nested generic types -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-4017 -dotnet_diagnostic.S4017.severity = none - -# Title : All type parameters should be used in the parameter list to enable type inference -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-4018 -dotnet_diagnostic.S4018.severity = none - -# Title : Base class methods should not be hidden -# Category : Critical Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-4019 -dotnet_diagnostic.S4019.severity = warning - -# Title : Enumerations should have "Int32" storage -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-4022 -dotnet_diagnostic.S4022.severity = warning - -# Title : Interfaces should not be empty -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-4023 -dotnet_diagnostic.S4023.severity = warning - -# Title : Child class fields should not differ from parent class fields only by capitalization -# Category : Critical Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-4025 -dotnet_diagnostic.S4025.severity = warning - -# Title : Assemblies should be marked with "NeutralResourcesLanguageAttribute" -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-4026 -dotnet_diagnostic.S4026.severity = warning - -# Title : Exceptions should provide standard constructors -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-4027 -# Redundant: CA1032 -dotnet_diagnostic.S4027.severity = none - -# Title : Classes implementing "IEquatable" should be sealed -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-4035 -dotnet_diagnostic.S4035.severity = warning - -# Title : Searching OS commands in PATH is security-sensitive -# Category : Minor Security Hotspot -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-4036 -dotnet_diagnostic.S4036.severity = warning - -# Title : Interface methods should be callable by derived types -# Category : Critical Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-4039 -dotnet_diagnostic.S4039.severity = warning - -# Title : Strings should be normalized to uppercase -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-4040 -# Redundant: CA1308 -dotnet_diagnostic.S4040.severity = none - -# Title : Type names should not match namespaces -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-4041 -dotnet_diagnostic.S4041.severity = warning - -# Title : Generics should be used when appropriate -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-4047 -dotnet_diagnostic.S4047.severity = warning - -# Title : Properties should be preferred -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-4049 -# Redundant: CA1024 -dotnet_diagnostic.S4049.severity = none - -# Title : Operators should be overloaded consistently -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-4050 -dotnet_diagnostic.S4050.severity = warning - -# Title : Types should not extend outdated base types -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-4052 -dotnet_diagnostic.S4052.severity = warning - -# Title : Literals should not be passed as localized parameters -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-4055 -dotnet_diagnostic.S4055.severity = none - -# Title : Overloads with a "CultureInfo" or an "IFormatProvider" parameter should be used -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-4056 -# Redundant: CA1305 -dotnet_diagnostic.S4056.severity = none - -# Title : Locales should be set for data types -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-4057 -dotnet_diagnostic.S4057.severity = warning - -# Title : Overloads with a "StringComparison" parameter should be used -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-4058 -# Redundant: CA1310 -dotnet_diagnostic.S4058.severity = none - -# Title : Property names should not match get methods -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-4059 -dotnet_diagnostic.S4059.severity = warning - -# Title : Non-abstract attributes should be sealed -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-4060 -# Redundant: CA1813 -dotnet_diagnostic.S4060.severity = none - -# Title : "params" should be used instead of "varargs" -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-4061 -dotnet_diagnostic.S4061.severity = warning - -# Title : Operator overloads should have named alternatives -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-4069 -# Redundant: CA2225 -dotnet_diagnostic.S4069.severity = none - -# Title : Non-flags enums should not be marked with "FlagsAttribute" -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-4070 -# Redundant: CA2217 -dotnet_diagnostic.S4070.severity = none - -# Title : Method overloads should be grouped together -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-4136 -dotnet_diagnostic.S4136.severity = warning - -# Title : Duplicate values should not be passed as arguments -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-4142 -dotnet_diagnostic.S4142.severity = warning - -# Title : Collection elements should not be replaced unconditionally -# Category : Major Bug -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-4143 -dotnet_diagnostic.S4143.severity = warning - -# Title : Methods should not have identical implementations -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-4144 -dotnet_diagnostic.S4144.severity = warning - -# Title : Empty collections should not be accessed or iterated -# Category : Minor Bug -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-4158 -dotnet_diagnostic.S4158.severity = warning - -# Title : Classes should implement their "ExportAttribute" interfaces -# Category : Blocker Bug -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-4159 -dotnet_diagnostic.S4159.severity = warning - -# Title : Native methods should be wrapped -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-4200 -dotnet_diagnostic.S4200.severity = warning - -# Title : Null checks should not be used with "is" -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-4201 -dotnet_diagnostic.S4201.severity = warning - -# Title : Windows Forms entry points should be marked with STAThread -# Category : Major Bug -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-4210 -dotnet_diagnostic.S4210.severity = warning - -# Title : Members should not have conflicting transparency annotations -# Category : Major Vulnerability -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-4211 -dotnet_diagnostic.S4211.severity = warning - -# Title : Serialization constructors should be secured -# Category : Major Vulnerability -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-4212 -dotnet_diagnostic.S4212.severity = warning - -# Title : "P/Invoke" methods should not be visible -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-4214 -dotnet_diagnostic.S4214.severity = warning - -# Title : Events should have proper arguments -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-4220 -dotnet_diagnostic.S4220.severity = warning - -# Title : Extension methods should not extend "object" -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-4225 -dotnet_diagnostic.S4225.severity = warning - -# Title : Extensions should be in separate namespaces -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-4226 -dotnet_diagnostic.S4226.severity = none - -# Title : "ConstructorArgument" parameters should exist in constructors -# Category : Major Bug -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-4260 -dotnet_diagnostic.S4260.severity = warning - -# Title : Methods should be named according to their synchronicities -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-4261 -dotnet_diagnostic.S4261.severity = none - -# Title : Getters and setters should access the expected fields -# Category : Critical Bug -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-4275 -dotnet_diagnostic.S4275.severity = warning - -# Title : "Shared" parts should not be created with "new" -# Category : Critical Bug -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-4277 -dotnet_diagnostic.S4277.severity = warning - -# Title : Weak SSL/TLS protocols should not be used -# Category : Critical Vulnerability -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-4423 -dotnet_diagnostic.S4423.severity = warning - -# Title : Cryptographic keys should be robust -# Category : Critical Vulnerability -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-4426 -dotnet_diagnostic.S4426.severity = warning - -# Title : "PartCreationPolicyAttribute" should be used with "ExportAttribute" -# Category : Major Bug -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-4428 -dotnet_diagnostic.S4428.severity = warning - -# Title : AES encryption algorithm should be used with secured mode -# Category : Critical Vulnerability -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-4432 -dotnet_diagnostic.S4432.severity = warning - -# Title : LDAP connections should be authenticated -# Category : Critical Vulnerability -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-4433 -dotnet_diagnostic.S4433.severity = warning - -# Title : Parameter validation in yielding methods should be wrapped -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-4456 -dotnet_diagnostic.S4456.severity = warning - -# Title : Parameter validation in "async"/"await" methods should be wrapped -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-4457 -dotnet_diagnostic.S4457.severity = warning - -# Title : Calls to "async" methods should not be blocking -# Category : Blocker Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-4462 -# Redundant: VSTHRD002 -dotnet_diagnostic.S4462.severity = none - -# Title : Unread "private" fields should be removed -# Category : Critical Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-4487 -# Redundant: IDE0052 -dotnet_diagnostic.S4487.severity = none - -# Title : Disabling CSRF protections is security-sensitive -# Category : Critical Security Hotspot -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-4502 -dotnet_diagnostic.S4502.severity = warning - -# Title : Delivering code in production with debug features activated is security-sensitive -# Category : Minor Security Hotspot -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-4507 -dotnet_diagnostic.S4507.severity = warning - -# Title : "default" clauses should be first or last -# Category : Critical Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-4524 -dotnet_diagnostic.S4524.severity = warning - -# Title : ASP.NET HTTP request validation feature should not be disabled -# Category : Major Vulnerability -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-4564 -dotnet_diagnostic.S4564.severity = warning - -# Title : "new Guid()" should not be used -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-4581 -dotnet_diagnostic.S4581.severity = warning - -# Title : Calls to delegate's method "BeginInvoke" should be paired with calls to "EndInvoke" -# Category : Critical Bug -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-4583 -dotnet_diagnostic.S4583.severity = warning - -# Title : Non-async "Task/Task" methods should not return null -# Category : Critical Bug -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-4586 -dotnet_diagnostic.S4586.severity = warning - -# Title : String offset-based methods should be preferred for finding substrings from offsets -# Category : Critical Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-4635 -dotnet_diagnostic.S4635.severity = warning - -# Title : Using regular expressions is security-sensitive -# Category : Critical Security Hotspot -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-4784 -dotnet_diagnostic.S4784.severity = warning - -# Title : Encrypting data is security-sensitive -# Category : Critical Security Hotspot -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-4787 -dotnet_diagnostic.S4787.severity = warning - -# Title : Using weak hashing algorithms is security-sensitive -# Category : Critical Security Hotspot -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-4790 -dotnet_diagnostic.S4790.severity = warning - -# Title : Configuring loggers is security-sensitive -# Category : Critical Security Hotspot -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-4792 -dotnet_diagnostic.S4792.severity = warning - -# Title : Using Sockets is security-sensitive -# Category : Critical Security Hotspot -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-4818 -dotnet_diagnostic.S4818.severity = warning - -# Title : Using command line arguments is security-sensitive -# Category : Critical Security Hotspot -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-4823 -dotnet_diagnostic.S4823.severity = warning - -# Title : Reading the Standard Input is security-sensitive -# Category : Critical Security Hotspot -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-4829 -dotnet_diagnostic.S4829.severity = warning - -# Title : Server certificates should be verified during SSL/TLS connections -# Category : Critical Vulnerability -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-4830 -# Redundant: CA5359 -dotnet_diagnostic.S4830.severity = none - -# Title : Controlling permissions is security-sensitive -# Category : Minor Security Hotspot -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-4834 -dotnet_diagnostic.S4834.severity = warning - -# Title : "ValueTask" should be consumed correctly -# Category : Critical Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-5034 -dotnet_diagnostic.S5034.severity = warning - -# Title : Expanding archive files without controlling resource consumption is security-sensitive -# Category : Critical Security Hotspot -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-5042 -dotnet_diagnostic.S5042.severity = warning - -# Title : Having a permissive Cross-Origin Resource Sharing policy is security-sensitive -# Category : Minor Security Hotspot -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-5122 -dotnet_diagnostic.S5122.severity = warning - -# Title : Using clear-text protocols is security-sensitive -# Category : Critical Security Hotspot -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-5332 -dotnet_diagnostic.S5332.severity = warning - -# Title : Using publicly writable directories is security-sensitive -# Category : Critical Security Hotspot -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-5443 -dotnet_diagnostic.S5443.severity = warning - -# Title : Insecure temporary file creation methods should not be used -# Category : Critical Vulnerability -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-5445 -dotnet_diagnostic.S5445.severity = warning - -# Title : Encryption algorithms should be used with secure mode and padding scheme -# Category : Critical Vulnerability -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-5542 -dotnet_diagnostic.S5542.severity = warning - -# Title : Cipher algorithms should be robust -# Category : Critical Vulnerability -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-5547 -dotnet_diagnostic.S5547.severity = warning - -# Title : JWT should be signed and verified with strong cipher algorithms -# Category : Critical Vulnerability -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-5659 -dotnet_diagnostic.S5659.severity = warning - -# Title : Allowing requests with excessive content length is security-sensitive -# Category : Major Security Hotspot -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-5693 -dotnet_diagnostic.S5693.severity = warning - -# Title : Disabling ASP.NET "Request Validation" feature is security-sensitive -# Category : Major Security Hotspot -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-5753 -dotnet_diagnostic.S5753.severity = warning - -# Title : Deserializing objects without performing data validation is security-sensitive -# Category : Major Security Hotspot -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-5766 -dotnet_diagnostic.S5766.severity = warning - -# Title : Types allowed to be deserialized should be restricted -# Category : Major Vulnerability -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-5773 -dotnet_diagnostic.S5773.severity = warning - -# Title : Use a testable date/time provider -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-6354 -# Redundant: R9A022 -dotnet_diagnostic.S6354.severity = none - -# Title : Azure Functions should be stateless -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-6419 -dotnet_diagnostic.S6419.severity = warning - -# Title : Client instances should not be recreated on each Azure Function invocation -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-6420 -dotnet_diagnostic.S6420.severity = warning - -# Title : Azure Functions should use Structured Error Handling -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-6421 -dotnet_diagnostic.S6421.severity = warning - -# Title : Calls to "async" methods should not be blocking in Azure Functions -# Category : Blocker Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-6422 -dotnet_diagnostic.S6422.severity = warning - -# Title : Azure Functions should log all failures -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-6423 -dotnet_diagnostic.S6423.severity = warning - -# Title : Interfaces for durable entities should satisfy the restrictions -# Category : Blocker Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-6424 -dotnet_diagnostic.S6424.severity = warning - -# Title : Not specifying a timeout for regular expressions is security-sensitive -# Category : Major Security Hotspot -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-6444 -dotnet_diagnostic.S6444.severity = warning - -# Title : Literal suffixes should be upper case -# Category : Minor Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-818 -dotnet_diagnostic.S818.severity = warning - -# Title : Increment (++) and decrement (--) operators should not be used in a method call or mixed with other operators in an expression -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-881 -dotnet_diagnostic.S881.severity = suggestion - -# Title : "goto" statement should not be used -# Category : Major Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-907 -dotnet_diagnostic.S907.severity = warning - -# Title : Parameter names should match base declaration and other partial definitions -# Category : Critical Code Smell -# Help Link: https://rules.sonarsource.com/csharp/RSPEC-927 -# Redundant: CA1725 -dotnet_diagnostic.S927.severity = none - -# Title : Copy-paste token calculator -# Category : -dotnet_diagnostic.S9999-cpd.severity = warning - -# Title : Log generator -# Category : -dotnet_diagnostic.S9999-log.severity = none - -# Title : File metadata generator -# Category : -dotnet_diagnostic.S9999-metadata.severity = warning - -# Title : Metrics calculator -# Category : -dotnet_diagnostic.S9999-metrics.severity = warning - -# Title : Symbol reference calculator -# Category : -dotnet_diagnostic.S9999-symbolRef.severity = warning - -# Title : Token type calculator -# Category : -dotnet_diagnostic.S9999-token-type.severity = warning - -# Title : XML comment analysis disabled -# Category : StyleCop.CSharp.SpecialRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA0001.md -dotnet_diagnostic.SA0001.severity = none - -# Title : Invalid settings file -# Category : StyleCop.CSharp.SpecialRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA0002.md -dotnet_diagnostic.SA0002.severity = warning - -# Title : Keywords should be spaced correctly -# Category : StyleCop.CSharp.SpacingRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1000.md -# Redundant: IDE0055 -dotnet_diagnostic.SA1000.severity = none - -# Title : Commas should be spaced correctly -# Category : StyleCop.CSharp.SpacingRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1001.md -# Redundant: IDE0055 -dotnet_diagnostic.SA1001.severity = none - -# Title : Semicolons should be spaced correctly -# Category : StyleCop.CSharp.SpacingRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1002.md -# Redundant: IDE0055 -dotnet_diagnostic.SA1002.severity = none - -# Title : Symbols should be spaced correctly -# Category : StyleCop.CSharp.SpacingRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1003.md -# Redundant: IDE0055 -dotnet_diagnostic.SA1003.severity = none - -# Title : Documentation lines should begin with single space -# Category : StyleCop.CSharp.SpacingRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1004.md -dotnet_diagnostic.SA1004.severity = warning - -# Title : Single line comments should begin with single space -# Category : StyleCop.CSharp.SpacingRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1005.md -dotnet_diagnostic.SA1005.severity = warning - -# Title : Preprocessor keywords should not be preceded by space -# Category : StyleCop.CSharp.SpacingRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1006.md -dotnet_diagnostic.SA1006.severity = warning - -# Title : Operator keyword should be followed by space -# Category : StyleCop.CSharp.SpacingRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1007.md -# Redundant: IDE0055 -dotnet_diagnostic.SA1007.severity = none - -# Title : Opening parenthesis should be spaced correctly -# Category : StyleCop.CSharp.SpacingRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1008.md -# Redundant: IDE0055 -dotnet_diagnostic.SA1008.severity = none - -# Title : Closing parenthesis should be spaced correctly -# Category : StyleCop.CSharp.SpacingRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1009.md -# Redundant: IDE0055 -dotnet_diagnostic.SA1009.severity = none - -# Title : Opening square brackets should be spaced correctly -# Category : StyleCop.CSharp.SpacingRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1010.md -# Redundant: IDE0055 -dotnet_diagnostic.SA1010.severity = none - -# Title : Closing square brackets should be spaced correctly -# Category : StyleCop.CSharp.SpacingRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1011.md -# Redundant: IDE0055 -dotnet_diagnostic.SA1011.severity = none - -# Title : Opening braces should be spaced correctly -# Category : StyleCop.CSharp.SpacingRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1012.md -# Redundant: IDE0055 -dotnet_diagnostic.SA1012.severity = none - -# Title : Closing braces should be spaced correctly -# Category : StyleCop.CSharp.SpacingRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1013.md -# Redundant: IDE0055 -dotnet_diagnostic.SA1013.severity = none - -# Title : Opening generic brackets should be spaced correctly -# Category : StyleCop.CSharp.SpacingRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1014.md -# Redundant: IDE0055 -dotnet_diagnostic.SA1014.severity = none - -# Title : Closing generic brackets should be spaced correctly -# Category : StyleCop.CSharp.SpacingRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1015.md -# Redundant: IDE0055 -dotnet_diagnostic.SA1015.severity = none - -# Title : Opening attribute brackets should be spaced correctly -# Category : StyleCop.CSharp.SpacingRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1016.md -# Redundant: IDE0055 -dotnet_diagnostic.SA1016.severity = none - -# Title : Closing attribute brackets should be spaced correctly -# Category : StyleCop.CSharp.SpacingRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1017.md -# Redundant: IDE0055 -dotnet_diagnostic.SA1017.severity = none - -# Title : Nullable type symbols should be spaced correctly -# Category : StyleCop.CSharp.SpacingRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1018.md -# Redundant: IDE0055 -dotnet_diagnostic.SA1018.severity = none - -# Title : Member access symbols should be spaced correctly -# Category : StyleCop.CSharp.SpacingRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1019.md -# Redundant: IDE0055 -dotnet_diagnostic.SA1019.severity = none - -# Title : Increment decrement symbols should be spaced correctly -# Category : StyleCop.CSharp.SpacingRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1020.md -# Redundant: IDE0055 -dotnet_diagnostic.SA1020.severity = none - -# Title : Negative signs should be spaced correctly -# Category : StyleCop.CSharp.SpacingRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1021.md -# Redundant: IDE0055 -dotnet_diagnostic.SA1021.severity = none - -# Title : Positive signs should be spaced correctly -# Category : StyleCop.CSharp.SpacingRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1022.md -# Redundant: IDE0055 -dotnet_diagnostic.SA1022.severity = none - -# Title : Dereference and access of symbols should be spaced correctly -# Category : StyleCop.CSharp.SpacingRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1023.md -# Redundant: IDE0055 -dotnet_diagnostic.SA1023.severity = none - -# Title : Colons Should Be Spaced Correctly -# Category : StyleCop.CSharp.SpacingRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1024.md -# Redundant: IDE0055 -dotnet_diagnostic.SA1024.severity = none - -# Title : Code should not contain multiple whitespace in a row -# Category : StyleCop.CSharp.SpacingRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1025.md -# Redundant: IDE0055 -dotnet_diagnostic.SA1025.severity = none - -# Title : Code should not contain space after new or stackalloc keyword in implicitly typed array allocation -# Category : StyleCop.CSharp.SpacingRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1026.md -# Redundant: IDE0055 -dotnet_diagnostic.SA1026.severity = none - -# Title : Use tabs correctly -# Category : StyleCop.CSharp.SpacingRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1027.md -dotnet_diagnostic.SA1027.severity = warning - -# Title : Code should not contain trailing whitespace -# Category : StyleCop.CSharp.SpacingRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1028.md -# Redundant: IDE0055 -dotnet_diagnostic.SA1028.severity = none - -# Title : Do not prefix calls with base unless local implementation exists -# Category : StyleCop.CSharp.ReadabilityRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1100.md -dotnet_diagnostic.SA1100.severity = warning - -# Title : Prefix local calls with this -# Category : StyleCop.CSharp.ReadabilityRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1101.md -dotnet_diagnostic.SA1101.severity = none - -# Title : Query clause should follow previous clause -# Category : StyleCop.CSharp.ReadabilityRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1102.md -dotnet_diagnostic.SA1102.severity = warning - -# Title : Query clauses should be on separate lines or all on one line -# Category : StyleCop.CSharp.ReadabilityRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1103.md -dotnet_diagnostic.SA1103.severity = warning - -# Title : Query clause should begin on new line when previous clause spans multiple lines -# Category : StyleCop.CSharp.ReadabilityRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1104.md -dotnet_diagnostic.SA1104.severity = warning - -# Title : Query clauses spanning multiple lines should begin on own line -# Category : StyleCop.CSharp.ReadabilityRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1105.md -dotnet_diagnostic.SA1105.severity = warning - -# Title : Code should not contain empty statements -# Category : StyleCop.CSharp.ReadabilityRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1106.md -dotnet_diagnostic.SA1106.severity = warning - -# Title : Code should not contain multiple statements on one line -# Category : StyleCop.CSharp.ReadabilityRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1107.md -# Redundant: IDE2001 -dotnet_diagnostic.SA1107.severity = none - -# Title : Block statements should not contain embedded comments -# Category : StyleCop.CSharp.ReadabilityRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1108.md -dotnet_diagnostic.SA1108.severity = warning - -# Title : Block statements should not contain embedded regions -# Category : StyleCop.CSharp.ReadabilityRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1109.md -dotnet_diagnostic.SA1109.severity = warning - -# Title : Opening parenthesis or bracket should be on declaration line -# Category : StyleCop.CSharp.ReadabilityRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1110.md -dotnet_diagnostic.SA1110.severity = warning - -# Title : Closing parenthesis should be on line of last parameter -# Category : StyleCop.CSharp.ReadabilityRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1111.md -dotnet_diagnostic.SA1111.severity = warning - -# Title : Closing parenthesis should be on line of opening parenthesis -# Category : StyleCop.CSharp.ReadabilityRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1112.md -dotnet_diagnostic.SA1112.severity = warning - -# Title : Comma should be on the same line as previous parameter -# Category : StyleCop.CSharp.ReadabilityRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1113.md -dotnet_diagnostic.SA1113.severity = warning - -# Title : Parameter list should follow declaration -# Category : StyleCop.CSharp.ReadabilityRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1114.md -dotnet_diagnostic.SA1114.severity = warning - -# Title : Parameter should follow comma -# Category : StyleCop.CSharp.ReadabilityRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1115.md -dotnet_diagnostic.SA1115.severity = none - -# Title : Split parameters should start on line after declaration -# Category : StyleCop.CSharp.ReadabilityRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1116.md -dotnet_diagnostic.SA1116.severity = none - -# Title : Parameters should be on same line or separate lines -# Category : StyleCop.CSharp.ReadabilityRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1117.md -dotnet_diagnostic.SA1117.severity = none - -# Title : Parameter should not span multiple lines -# Category : StyleCop.CSharp.ReadabilityRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1118.md -dotnet_diagnostic.SA1118.severity = warning - -# Title : Statement should not use unnecessary parenthesis -# Category : StyleCop.CSharp.MaintainabilityRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1119.md -dotnet_diagnostic.SA1119.severity = warning - -# Title : Statement should not use unnecessary parenthesis -# Category : StyleCop.CSharp.MaintainabilityRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1119.md -dotnet_diagnostic.SA1119_p.severity = none - -# Title : Comments should contain text -# Category : StyleCop.CSharp.ReadabilityRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1120.md -dotnet_diagnostic.SA1120.severity = warning - -# Title : Use built-in type alias -# Category : StyleCop.CSharp.ReadabilityRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1121.md -dotnet_diagnostic.SA1121.severity = warning - -# Title : Use string.Empty for empty strings -# Category : StyleCop.CSharp.ReadabilityRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1122.md -dotnet_diagnostic.SA1122.severity = warning - -# Title : Do not place regions within elements -# Category : StyleCop.CSharp.ReadabilityRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1123.md -dotnet_diagnostic.SA1123.severity = warning - -# Title : Do not use regions -# Category : StyleCop.CSharp.ReadabilityRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1124.md -dotnet_diagnostic.SA1124.severity = none - -# Title : Use shorthand for nullable types -# Category : StyleCop.CSharp.ReadabilityRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1125.md -dotnet_diagnostic.SA1125.severity = warning - -# Title : Prefix calls correctly -# Category : StyleCop.CSharp.ReadabilityRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1126.md -dotnet_diagnostic.SA1126.severity = none - -# Title : Generic type constraints should be on their own line -# Category : StyleCop.CSharp.ReadabilityRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1127.md -dotnet_diagnostic.SA1127.severity = warning - -# Title : Put constructor initializers on their own line -# Category : StyleCop.CSharp.ReadabilityRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1128.md -dotnet_diagnostic.SA1128.severity = warning - -# Title : Do not use default value type constructor -# Category : StyleCop.CSharp.ReadabilityRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1129.md -dotnet_diagnostic.SA1129.severity = warning - -# Title : Use lambda syntax -# Category : StyleCop.CSharp.ReadabilityRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1130.md -dotnet_diagnostic.SA1130.severity = warning - -# Title : Use readable conditions -# Category : StyleCop.CSharp.ReadabilityRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1131.md -dotnet_diagnostic.SA1131.severity = warning - -# Title : Do not combine fields -# Category : StyleCop.CSharp.ReadabilityRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1132.md -# Comment : S1169 handles fields and variables -# Redundant: S1169 -dotnet_diagnostic.SA1132.severity = none - -# Title : Do not combine attributes -# Category : StyleCop.CSharp.ReadabilityRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1133.md -dotnet_diagnostic.SA1133.severity = warning - -# Title : Attributes should not share line -# Category : StyleCop.CSharp.ReadabilityRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1134.md -# Redundant: IDE0055 -dotnet_diagnostic.SA1134.severity = none - -# Title : Using directives should be qualified -# Category : StyleCop.CSharp.ReadabilityRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1135.md -dotnet_diagnostic.SA1135.severity = warning - -# Title : Enum values should be on separate lines -# Category : StyleCop.CSharp.ReadabilityRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1136.md -dotnet_diagnostic.SA1136.severity = warning - -# Title : Elements should have the same indentation -# Category : StyleCop.CSharp.ReadabilityRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1137.md -# Comment : Doesn't work with file-scoped namespaces -dotnet_diagnostic.SA1137.severity = none - -# Title : Use literal suffix notation instead of casting -# Category : StyleCop.CSharp.ReadabilityRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1139.md -dotnet_diagnostic.SA1139.severity = warning - -# Title : Use tuple syntax -# Category : StyleCop.CSharp.ReadabilityRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1141.md -dotnet_diagnostic.SA1141.severity = warning - -# Title : Refer to tuple fields by name -# Category : StyleCop.CSharp.ReadabilityRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1142.md -# Redundant: IDE0033 -dotnet_diagnostic.SA1142.severity = none - -# Title : Using directives should be placed correctly -# Category : StyleCop.CSharp.OrderingRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1200.md -# Redundant: IDE0065 -dotnet_diagnostic.SA1200.severity = none - -# Title : Elements should appear in the correct order -# Category : StyleCop.CSharp.OrderingRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1201.md -dotnet_diagnostic.SA1201.severity = none - -# Title : Elements should be ordered by access -# Category : StyleCop.CSharp.OrderingRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1202.md -dotnet_diagnostic.SA1202.severity = warning - -# Title : Constants should appear before fields -# Category : StyleCop.CSharp.OrderingRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1203.md -dotnet_diagnostic.SA1203.severity = warning - -# Title : Static elements should appear before instance elements -# Category : StyleCop.CSharp.OrderingRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1204.md -dotnet_diagnostic.SA1204.severity = warning - -# Title : Partial elements should declare access -# Category : StyleCop.CSharp.OrderingRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1205.md -dotnet_diagnostic.SA1205.severity = warning - -# Title : Declaration keywords should follow order -# Category : StyleCop.CSharp.OrderingRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1206.md -dotnet_diagnostic.SA1206.severity = warning - -# Title : Protected should come before internal -# Category : StyleCop.CSharp.OrderingRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1207.md -dotnet_diagnostic.SA1207.severity = warning - -# Title : System using directives should be placed before other using directives -# Category : StyleCop.CSharp.OrderingRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1208.md -dotnet_diagnostic.SA1208.severity = warning - -# Title : Using alias directives should be placed after other using directives -# Category : StyleCop.CSharp.OrderingRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1209.md -dotnet_diagnostic.SA1209.severity = warning - -# Title : Using directives should be ordered alphabetically by namespace -# Category : StyleCop.CSharp.OrderingRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1210.md -dotnet_diagnostic.SA1210.severity = warning - -# Title : Using alias directives should be ordered alphabetically by alias name -# Category : StyleCop.CSharp.OrderingRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1211.md -dotnet_diagnostic.SA1211.severity = warning - -# Title : Property accessors should follow order -# Category : StyleCop.CSharp.OrderingRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1212.md -dotnet_diagnostic.SA1212.severity = warning - -# Title : Event accessors should follow order -# Category : StyleCop.CSharp.OrderingRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1213.md -dotnet_diagnostic.SA1213.severity = warning - -# Title : Readonly fields should appear before non-readonly fields -# Category : StyleCop.CSharp.OrderingRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1214.md -dotnet_diagnostic.SA1214.severity = warning - -# Title : Using static directives should be placed at the correct location -# Category : StyleCop.CSharp.OrderingRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1216.md -dotnet_diagnostic.SA1216.severity = warning - -# Title : Using static directives should be ordered alphabetically -# Category : StyleCop.CSharp.OrderingRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1217.md -dotnet_diagnostic.SA1217.severity = warning - -# Title : Element should begin with upper-case letter -# Category : StyleCop.CSharp.NamingRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1300.md -# Redundant: IDE1006 -dotnet_diagnostic.SA1300.severity = none - -# Title : Element should begin with lower-case letter -# Category : StyleCop.CSharp.NamingRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1301.md -# Redundant: IDE1006 -dotnet_diagnostic.SA1301.severity = none - -# Title : Interface names should begin with I -# Category : StyleCop.CSharp.NamingRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1302.md -# Redundant: IDE1006 -dotnet_diagnostic.SA1302.severity = none - -# Title : Const field names should begin with upper-case letter -# Category : StyleCop.CSharp.NamingRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1303.md -# Redundant: IDE1006 -dotnet_diagnostic.SA1303.severity = none - -# Title : Non-private readonly fields should begin with upper-case letter -# Category : StyleCop.CSharp.NamingRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1304.md -# Redundant: IDE1006 -dotnet_diagnostic.SA1304.severity = none - -# Title : Field names should not use Hungarian notation -# Category : StyleCop.CSharp.NamingRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1305.md -# Redundant: IDE1006 -dotnet_diagnostic.SA1305.severity = none - -# Title : Field names should begin with lower-case letter -# Category : StyleCop.CSharp.NamingRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1306.md -# Redundant: IDE1006 -dotnet_diagnostic.SA1306.severity = none - -# Title : Accessible fields should begin with upper-case letter -# Category : StyleCop.CSharp.NamingRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1307.md -# Redundant: IDE1006 -dotnet_diagnostic.SA1307.severity = none - -# Title : Variable names should not be prefixed -# Category : StyleCop.CSharp.NamingRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1308.md -# Redundant: IDE1006 -dotnet_diagnostic.SA1308.severity = none - -# Title : Field names should not begin with underscore -# Category : StyleCop.CSharp.NamingRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1309.md -# Redundant: IDE1006 -dotnet_diagnostic.SA1309.severity = none - -# Title : Field names should not contain underscore -# Category : StyleCop.CSharp.NamingRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1310.md -dotnet_diagnostic.SA1310.severity = warning - -# Title : Static readonly fields should begin with upper-case letter -# Category : StyleCop.CSharp.NamingRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1311.md -# Redundant: IDE1006 -dotnet_diagnostic.SA1311.severity = none - -# Title : Variable names should begin with lower-case letter -# Category : StyleCop.CSharp.NamingRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1312.md -# Redundant: IDE1006 -dotnet_diagnostic.SA1312.severity = none - -# Title : Parameter names should begin with lower-case letter -# Category : StyleCop.CSharp.NamingRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1313.md -# Redundant: IDE1006 -dotnet_diagnostic.SA1313.severity = none - -# Title : Type parameter names should begin with T -# Category : StyleCop.CSharp.NamingRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1314.md -# Redundant: IDE1006 -dotnet_diagnostic.SA1314.severity = none - -# Title : Tuple element names should use correct casing -# Category : StyleCop.CSharp.NamingRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1316.md -dotnet_diagnostic.SA1316.severity = warning - -# Title : Access modifier should be declared -# Category : StyleCop.CSharp.MaintainabilityRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1400.md -dotnet_diagnostic.SA1400.severity = warning - -# Title : Fields should be private -# Category : StyleCop.CSharp.MaintainabilityRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1401.md -# Redundant: CA1051 -dotnet_diagnostic.SA1401.severity = none - -# Title : File may only contain a single type -# Category : StyleCop.CSharp.MaintainabilityRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1402.md -dotnet_diagnostic.SA1402.severity = warning - -# Title : File may only contain a single namespace -# Category : StyleCop.CSharp.MaintainabilityRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1403.md -dotnet_diagnostic.SA1403.severity = warning - -# Title : Code analysis suppression should have justification -# Category : StyleCop.CSharp.MaintainabilityRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1404.md -dotnet_diagnostic.SA1404.severity = warning - -# Title : Debug.Assert should provide message text -# Category : StyleCop.CSharp.MaintainabilityRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1405.md -dotnet_diagnostic.SA1405.severity = warning - -# Title : Debug.Fail should provide message text -# Category : StyleCop.CSharp.MaintainabilityRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1406.md -dotnet_diagnostic.SA1406.severity = warning - -# Title : Arithmetic expressions should declare precedence -# Category : StyleCop.CSharp.MaintainabilityRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1407.md -dotnet_diagnostic.SA1407.severity = warning - -# Title : Conditional expressions should declare precedence -# Category : StyleCop.CSharp.MaintainabilityRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1408.md -dotnet_diagnostic.SA1408.severity = warning - -# Title : Remove unnecessary code -# Category : StyleCop.CSharp.MaintainabilityRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1409.md -dotnet_diagnostic.SA1409.severity = warning - -# Title : Remove delegate parenthesis when possible -# Category : StyleCop.CSharp.MaintainabilityRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1410.md -dotnet_diagnostic.SA1410.severity = warning - -# Title : Attribute constructor should not use unnecessary parenthesis -# Category : StyleCop.CSharp.MaintainabilityRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1411.md -dotnet_diagnostic.SA1411.severity = warning - -# Title : Store files as UTF-8 with byte order mark -# Category : StyleCop.CSharp.MaintainabilityRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1412.md -# Comment : Pedantic -dotnet_diagnostic.SA1412.severity = none - -# Title : Use trailing comma in multi-line initializers -# Category : StyleCop.CSharp.MaintainabilityRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1413.md -dotnet_diagnostic.SA1413.severity = none - -# Title : Tuple types in signatures should have element names -# Category : StyleCop.CSharp.ReadabilityRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1414.md -dotnet_diagnostic.SA1414.severity = warning - -# Title : Braces for multi-line statements should not share line -# Category : StyleCop.CSharp.LayoutRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1500.md -dotnet_diagnostic.SA1500.severity = warning - -# Title : Statement should not be on a single line -# Category : StyleCop.CSharp.LayoutRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1501.md -dotnet_diagnostic.SA1501.severity = warning - -# Title : Element should not be on a single line -# Category : StyleCop.CSharp.LayoutRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1502.md -dotnet_diagnostic.SA1502.severity = warning - -# Title : Braces should not be omitted -# Category : StyleCop.CSharp.LayoutRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1503.md -# Redundant: IDE0011 -dotnet_diagnostic.SA1503.severity = none - -# Title : All accessors should be single-line or multi-line -# Category : StyleCop.CSharp.LayoutRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1504.md -dotnet_diagnostic.SA1504.severity = warning - -# Title : Opening braces should not be followed by blank line -# Category : StyleCop.CSharp.LayoutRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1505.md -dotnet_diagnostic.SA1505.severity = warning - -# Title : Element documentation headers should not be followed by blank line -# Category : StyleCop.CSharp.LayoutRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1506.md -dotnet_diagnostic.SA1506.severity = warning - -# Title : Code should not contain multiple blank lines in a row -# Category : StyleCop.CSharp.LayoutRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1507.md -# Redundant: IDE2000 -dotnet_diagnostic.SA1507.severity = none - -# Title : Closing braces should not be preceded by blank line -# Category : StyleCop.CSharp.LayoutRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1508.md -# Redundant: IDE2002 -dotnet_diagnostic.SA1508.severity = none - -# Title : Opening braces should not be preceded by blank line -# Category : StyleCop.CSharp.LayoutRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1509.md -dotnet_diagnostic.SA1509.severity = warning - -# Title : Chained statement blocks should not be preceded by blank line -# Category : StyleCop.CSharp.LayoutRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1510.md -dotnet_diagnostic.SA1510.severity = warning - -# Title : While-do footer should not be preceded by blank line -# Category : StyleCop.CSharp.LayoutRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1511.md -dotnet_diagnostic.SA1511.severity = warning - -# Title : Single-line comments should not be followed by blank line -# Category : StyleCop.CSharp.LayoutRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1512.md -dotnet_diagnostic.SA1512.severity = none - -# Title : Closing brace should be followed by blank line -# Category : StyleCop.CSharp.LayoutRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1513.md -dotnet_diagnostic.SA1513.severity = warning - -# Title : Element documentation header should be preceded by blank line -# Category : StyleCop.CSharp.LayoutRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1514.md -dotnet_diagnostic.SA1514.severity = warning - -# Title : Single-line comment should be preceded by blank line -# Category : StyleCop.CSharp.LayoutRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1515.md -dotnet_diagnostic.SA1515.severity = warning - -# Title : Elements should be separated by blank line -# Category : StyleCop.CSharp.LayoutRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1516.md -dotnet_diagnostic.SA1516.severity = none - -# Title : Code should not contain blank lines at start of file -# Category : StyleCop.CSharp.LayoutRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1517.md -dotnet_diagnostic.SA1517.severity = warning - -# Title : Use line endings correctly at end of file -# Category : StyleCop.CSharp.LayoutRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1518.md -dotnet_diagnostic.SA1518.severity = none - -# Title : Braces should not be omitted from multi-line child statement -# Category : StyleCop.CSharp.LayoutRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1519.md -dotnet_diagnostic.SA1519.severity = warning - -# Title : Use braces consistently -# Category : StyleCop.CSharp.LayoutRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1520.md -dotnet_diagnostic.SA1520.severity = warning - -# Title : Elements should be documented -# Category : StyleCop.CSharp.DocumentationRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1600.md -dotnet_diagnostic.SA1600.severity = none - -# Title : Partial elements should be documented -# Category : StyleCop.CSharp.DocumentationRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1601.md -dotnet_diagnostic.SA1601.severity = none - -# Title : Enumeration items should be documented -# Category : StyleCop.CSharp.DocumentationRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1602.md -dotnet_diagnostic.SA1602.severity = none - -# Title : Documentation should contain valid XML -# Category : StyleCop.CSharp.DocumentationRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1603.md -dotnet_diagnostic.SA1603.severity = warning - -# Title : Element documentation should have summary -# Category : StyleCop.CSharp.DocumentationRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1604.md -dotnet_diagnostic.SA1604.severity = warning - -# Title : Partial element documentation should have summary -# Category : StyleCop.CSharp.DocumentationRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1605.md -dotnet_diagnostic.SA1605.severity = warning - -# Title : Element documentation should have summary text -# Category : StyleCop.CSharp.DocumentationRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1606.md -dotnet_diagnostic.SA1606.severity = warning - -# Title : Partial element documentation should have summary text -# Category : StyleCop.CSharp.DocumentationRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1607.md -dotnet_diagnostic.SA1607.severity = warning - -# Title : Element documentation should not have default summary -# Category : StyleCop.CSharp.DocumentationRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1608.md -dotnet_diagnostic.SA1608.severity = warning - -# Title : Property documentation should have value -# Category : StyleCop.CSharp.DocumentationRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1609.md -dotnet_diagnostic.SA1609.severity = none - -# Title : Property documentation should have value text -# Category : StyleCop.CSharp.DocumentationRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1610.md -dotnet_diagnostic.SA1610.severity = none - -# Title : Element parameters should be documented -# Category : StyleCop.CSharp.DocumentationRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1611.md -# Redundant: CS1573 -dotnet_diagnostic.SA1611.severity = none - -# Title : Element parameter documentation should match element parameters -# Category : StyleCop.CSharp.DocumentationRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1612.md -dotnet_diagnostic.SA1612.severity = warning - -# Title : Element parameter documentation should declare parameter name -# Category : StyleCop.CSharp.DocumentationRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1613.md -dotnet_diagnostic.SA1613.severity = warning - -# Title : Element parameter documentation should have text -# Category : StyleCop.CSharp.DocumentationRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1614.md -dotnet_diagnostic.SA1614.severity = warning - -# Title : Element return value should be documented -# Category : StyleCop.CSharp.DocumentationRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1615.md -dotnet_diagnostic.SA1615.severity = none - -# Title : Element return value documentation should have text -# Category : StyleCop.CSharp.DocumentationRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1616.md -dotnet_diagnostic.SA1616.severity = warning - -# Title : Void return value should not be documented -# Category : StyleCop.CSharp.DocumentationRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1617.md -dotnet_diagnostic.SA1617.severity = warning - -# Title : Generic type parameters should be documented -# Category : StyleCop.CSharp.DocumentationRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1618.md -dotnet_diagnostic.SA1618.severity = warning - -# Title : Generic type parameters should be documented partial class -# Category : StyleCop.CSharp.DocumentationRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1619.md -dotnet_diagnostic.SA1619.severity = warning - -# Title : Generic type parameter documentation should match type parameters -# Category : StyleCop.CSharp.DocumentationRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1620.md -dotnet_diagnostic.SA1620.severity = warning - -# Title : Generic type parameter documentation should declare parameter name -# Category : StyleCop.CSharp.DocumentationRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1621.md -dotnet_diagnostic.SA1621.severity = warning - -# Title : Generic type parameter documentation should have text -# Category : StyleCop.CSharp.DocumentationRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1622.md -dotnet_diagnostic.SA1622.severity = warning - -# Title : Property summary documentation should match accessors -# Category : StyleCop.CSharp.DocumentationRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md -dotnet_diagnostic.SA1623.severity = warning - -# Title : Property summary documentation should omit accessor with restricted access -# Category : StyleCop.CSharp.DocumentationRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1624.md -dotnet_diagnostic.SA1624.severity = warning - -# Title : Element documentation should not be copied and pasted -# Category : StyleCop.CSharp.DocumentationRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1625.md -dotnet_diagnostic.SA1625.severity = warning - -# Title : Single-line comments should not use documentation style slashes -# Category : StyleCop.CSharp.DocumentationRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1626.md -dotnet_diagnostic.SA1626.severity = warning - -# Title : Documentation text should not be empty -# Category : StyleCop.CSharp.DocumentationRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1627.md -dotnet_diagnostic.SA1627.severity = warning - -# Title : Documentation text should begin with a capital letter -# Category : StyleCop.CSharp.DocumentationRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1628.md -dotnet_diagnostic.SA1628.severity = warning - -# Title : Documentation text should end with a period -# Category : StyleCop.CSharp.DocumentationRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1629.md -dotnet_diagnostic.SA1629.severity = warning - -# Title : Documentation text should contain whitespace -# Category : StyleCop.CSharp.DocumentationRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1630.md -dotnet_diagnostic.SA1630.severity = warning - -# Title : Documentation should meet character percentage -# Category : StyleCop.CSharp.DocumentationRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1631.md -dotnet_diagnostic.SA1631.severity = warning - -# Title : Documentation text should meet minimum character length -# Category : StyleCop.CSharp.DocumentationRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1632.md -dotnet_diagnostic.SA1632.severity = warning - -# Title : File should have header -# Category : StyleCop.CSharp.DocumentationRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1633.md -# Redundant: IDE0073 -dotnet_diagnostic.SA1633.severity = none - -# Title : File header should show copyright -# Category : StyleCop.CSharp.DocumentationRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1634.md -dotnet_diagnostic.SA1634.severity = none - -# Title : File header should have copyright text -# Category : StyleCop.CSharp.DocumentationRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1635.md -dotnet_diagnostic.SA1635.severity = none - -# Title : File header copyright text should match -# Category : StyleCop.CSharp.DocumentationRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1636.md -dotnet_diagnostic.SA1636.severity = none - -# Title : File header should contain file name -# Category : StyleCop.CSharp.DocumentationRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1637.md -dotnet_diagnostic.SA1637.severity = none - -# Title : File header file name documentation should match file name -# Category : StyleCop.CSharp.DocumentationRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1638.md -dotnet_diagnostic.SA1638.severity = none - -# Title : File header should have summary -# Category : StyleCop.CSharp.DocumentationRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1639.md -dotnet_diagnostic.SA1639.severity = none - -# Title : File header should have valid company text -# Category : StyleCop.CSharp.DocumentationRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1640.md -dotnet_diagnostic.SA1640.severity = none - -# Title : File header company name text should match -# Category : StyleCop.CSharp.DocumentationRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1641.md -dotnet_diagnostic.SA1641.severity = none - -# Title : Constructor summary documentation should begin with standard text -# Category : StyleCop.CSharp.DocumentationRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1642.md -dotnet_diagnostic.SA1642.severity = warning - -# Title : Destructor summary documentation should begin with standard text -# Category : StyleCop.CSharp.DocumentationRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1643.md -dotnet_diagnostic.SA1643.severity = warning - -# Title : Documentation headers should not contain blank lines -# Category : StyleCop.CSharp.DocumentationRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1644.md -dotnet_diagnostic.SA1644.severity = warning - -# Title : Included documentation file does not exist -# Category : StyleCop.CSharp.DocumentationRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1645.md -dotnet_diagnostic.SA1645.severity = warning - -# Title : Included documentation XPath does not exist -# Category : StyleCop.CSharp.DocumentationRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1646.md -dotnet_diagnostic.SA1646.severity = warning - -# Title : Include node does not contain valid file and path -# Category : StyleCop.CSharp.DocumentationRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1647.md -dotnet_diagnostic.SA1647.severity = warning - -# Title : inheritdoc should be used with inheriting class -# Category : StyleCop.CSharp.DocumentationRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1648.md -dotnet_diagnostic.SA1648.severity = warning - -# Title : File name should match first type name -# Category : StyleCop.CSharp.DocumentationRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1649.md -dotnet_diagnostic.SA1649.severity = warning - -# Title : Element documentation should be spelled correctly -# Category : StyleCop.CSharp.DocumentationRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1650.md -# Comment : Deprecated -dotnet_diagnostic.SA1650.severity = none - -# Title : Do not use placeholder elements -# Category : StyleCop.CSharp.DocumentationRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1651.md -dotnet_diagnostic.SA1651.severity = warning - -# Title : Do not prefix local calls with 'this.' -# Category : StyleCop.CSharp.ReadabilityRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SX1101.md -dotnet_diagnostic.SX1101.severity = warning - -# Title : Field names should begin with underscore -# Category : StyleCop.CSharp.NamingRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SX1309.md -# Redundant: IDE1006 -dotnet_diagnostic.SX1309.severity = none - -# Title : Static field names should begin with underscore -# Category : StyleCop.CSharp.NamingRules -# Help Link: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SX1309S.md -# Redundant: IDE1006 -dotnet_diagnostic.SX1309S.severity = none - -# Title : Avoid legacy thread switching APIs -# Category : Usage -# Help Link: https://github.com/Microsoft/vs-threading/blob/main/doc/analyzers/VSTHRD001.md -dotnet_diagnostic.VSTHRD001.severity = warning - -# Title : Avoid problematic synchronous waits -# Category : Usage -# Help Link: https://github.com/Microsoft/vs-threading/blob/main/doc/analyzers/VSTHRD002.md -dotnet_diagnostic.VSTHRD002.severity = warning - -# Title : Avoid awaiting foreign Tasks -# Category : Usage -# Help Link: https://github.com/Microsoft/vs-threading/blob/main/doc/analyzers/VSTHRD003.md -dotnet_diagnostic.VSTHRD003.severity = warning - -# Title : Await SwitchToMainThreadAsync -# Category : Usage -# Help Link: https://github.com/Microsoft/vs-threading/blob/main/doc/analyzers/VSTHRD004.md -dotnet_diagnostic.VSTHRD004.severity = error - -# Title : Invoke single-threaded types on Main thread -# Category : Usage -# Help Link: https://github.com/Microsoft/vs-threading/blob/main/doc/analyzers/VSTHRD010.md -dotnet_diagnostic.VSTHRD010.severity = warning - -# Title : Use AsyncLazy -# Category : Usage -# Help Link: https://github.com/Microsoft/vs-threading/blob/main/doc/analyzers/VSTHRD011.md -dotnet_diagnostic.VSTHRD011.severity = error - -# Title : Provide JoinableTaskFactory where allowed -# Category : Usage -# Help Link: https://github.com/Microsoft/vs-threading/blob/main/doc/analyzers/VSTHRD012.md -dotnet_diagnostic.VSTHRD012.severity = warning - -# Title : Avoid async void methods -# Category : Usage -# Help Link: https://github.com/Microsoft/vs-threading/blob/main/doc/analyzers/VSTHRD100.md -dotnet_diagnostic.VSTHRD100.severity = error - -# Title : Avoid unsupported async delegates -# Category : Usage -# Help Link: https://github.com/Microsoft/vs-threading/blob/main/doc/analyzers/VSTHRD101.md -dotnet_diagnostic.VSTHRD101.severity = error - -# Title : Implement internal logic asynchronously -# Category : Usage -# Help Link: https://github.com/Microsoft/vs-threading/blob/main/doc/analyzers/VSTHRD102.md -dotnet_diagnostic.VSTHRD102.severity = suggestion - -# Title : Call async methods when in an async method -# Category : Usage -# Help Link: https://github.com/Microsoft/vs-threading/blob/main/doc/analyzers/VSTHRD103.md -dotnet_diagnostic.VSTHRD103.severity = warning - -# Title : Offer async methods -# Category : Usage -# Help Link: https://github.com/Microsoft/vs-threading/blob/main/doc/analyzers/VSTHRD104.md -dotnet_diagnostic.VSTHRD104.severity = none - -# Title : Avoid method overloads that assume TaskScheduler.Current -# Category : Usage -# Help Link: https://github.com/Microsoft/vs-threading/blob/main/doc/analyzers/VSTHRD105.md -dotnet_diagnostic.VSTHRD105.severity = warning - -# Title : Use InvokeAsync to raise async events -# Category : Usage -# Help Link: https://github.com/Microsoft/vs-threading/blob/main/doc/analyzers/VSTHRD106.md -dotnet_diagnostic.VSTHRD106.severity = warning - -# Title : Await Task within using expression -# Category : Usage -# Help Link: https://github.com/Microsoft/vs-threading/blob/main/doc/analyzers/VSTHRD107.md -dotnet_diagnostic.VSTHRD107.severity = error - -# Title : Assert thread affinity unconditionally -# Category : Usage -# Help Link: https://github.com/Microsoft/vs-threading/blob/main/doc/analyzers/VSTHRD108.md -dotnet_diagnostic.VSTHRD108.severity = warning - -# Title : Switch instead of assert in async methods -# Category : Usage -# Help Link: https://github.com/Microsoft/vs-threading/blob/main/doc/analyzers/VSTHRD109.md -dotnet_diagnostic.VSTHRD109.severity = error - -# Title : Observe result of async calls -# Category : Usage -# Help Link: https://github.com/Microsoft/vs-threading/blob/main/doc/analyzers/VSTHRD110.md -# Redundant: CS4014, IDE0058 -dotnet_diagnostic.VSTHRD110.severity = none - -# Title : Use ConfigureAwait(bool) -# Category : Usage -# Help Link: https://github.com/Microsoft/vs-threading/blob/main/doc/analyzers/VSTHRD111.md -# Redundant: CA2007 -dotnet_diagnostic.VSTHRD111.severity = none - -# Title : Implement System.IAsyncDisposable -# Category : Usage -# Help Link: https://github.com/Microsoft/vs-threading/blob/main/doc/analyzers/VSTHRD112.md -dotnet_diagnostic.VSTHRD112.severity = suggestion - -# Title : Check for System.IAsyncDisposable -# Category : Usage -# Help Link: https://github.com/Microsoft/vs-threading/blob/main/doc/analyzers/VSTHRD113.md -dotnet_diagnostic.VSTHRD113.severity = suggestion - -# Title : Avoid returning a null Task -# Category : Usage -# Help Link: https://github.com/Microsoft/vs-threading/blob/main/doc/analyzers/VSTHRD114.md -dotnet_diagnostic.VSTHRD114.severity = warning - -# Title : Avoid returning a null Task -# Category : Usage -# Help Link: https://github.com/Microsoft/vs-threading/blob/main/doc/analyzers/VSTHRD114.md -dotnet_diagnostic.VSTHRD114.severity = error - -# Title : Use "Async" suffix for async methods -# Category : Style -# Help Link: https://github.com/Microsoft/vs-threading/blob/main/doc/analyzers/VSTHRD200.md -dotnet_diagnostic.VSTHRD200.severity = none - diff --git a/src/ToBeMoved/DependencyInjection.NamedService/DependencyInjection.NamedService.csproj b/src/ToBeMoved/DependencyInjection.NamedService/DependencyInjection.NamedService.csproj deleted file mode 100644 index e72eca758f6..00000000000 --- a/src/ToBeMoved/DependencyInjection.NamedService/DependencyInjection.NamedService.csproj +++ /dev/null @@ -1,24 +0,0 @@ - - - Microsoft.Extensions.DependencyInjection.NamedService - Microsoft.Extensions.DependencyInjection - Extensions to register and resolve named services. - Fundamentals - Configuration - true - - - - dev - 97 - 100 - - - - - - - - - - diff --git a/src/ToBeMoved/DependencyInjection.NamedService/INamedServiceProvider.cs b/src/ToBeMoved/DependencyInjection.NamedService/INamedServiceProvider.cs deleted file mode 100644 index d0b81b6a85f..00000000000 --- a/src/ToBeMoved/DependencyInjection.NamedService/INamedServiceProvider.cs +++ /dev/null @@ -1,34 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. - -using System.Collections.Generic; - -namespace Microsoft.Extensions.DependencyInjection; - -/// -/// Provides a mechanism for retrieving named service objects of the specified type. -/// -/// The type of the service objects to retrieve. -public interface INamedServiceProvider - where TService : class -{ - /// - /// Gets the service object with the specified name. - /// - /// The name of the service object. - /// The object. - /// - /// This method returns the latest registered under the name. - /// - public TService? GetService(string name); - - /// - /// Gets all the service objects with the specified name. - /// - /// The name of the service objects. - /// The collection of objects. - /// - /// This method returns all registered under the name in the order they were registered. - /// - public IEnumerable GetServices(string name); -} diff --git a/src/ToBeMoved/DependencyInjection.NamedService/NamedServiceCollectionExtensions.cs b/src/ToBeMoved/DependencyInjection.NamedService/NamedServiceCollectionExtensions.cs deleted file mode 100644 index 91b80948259..00000000000 --- a/src/ToBeMoved/DependencyInjection.NamedService/NamedServiceCollectionExtensions.cs +++ /dev/null @@ -1,117 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. - -using System; -using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.DependencyInjection.Extensions; -using Microsoft.Shared.Diagnostics; - -namespace Microsoft.Extensions.DependencyInjection; - -/// -/// Extensions for adding named services to . -/// -public static class NamedServiceCollectionExtensions -{ - /// - /// Adds a singleton named service of the type specific in to the - /// specified . - /// - /// The type of the service to add. - /// The to add the service to. - /// The name of the service. - /// The factory that creates the service. - /// A reference to this instance after the operation has completed. - public static IServiceCollection AddNamedSingleton(this IServiceCollection serviceCollection, - string name, Func implementationFactory) - where TService : class - { - _ = Throw.IfNull(serviceCollection); - _ = Throw.IfNullOrEmpty(name); - - _ = serviceCollection.AddOptions>(name) - .Configure(options => - options.Services.Add(NamedServiceDescriptor.Describe( - implementationFactory, - ServiceLifetime.Singleton))); - - serviceCollection.TryAdd(ServiceDescriptor.Singleton(typeof(INamedServiceProvider<>), typeof(NamedServiceProvider<>))); - - return serviceCollection; - } - - /// - /// Adds a singleton named service of the type specific in to the - /// specified . - /// - /// The type of the service to add. - /// The type of the implementation to use. - /// The to add the service to. - /// The name of the service. - /// A reference to this instance after the operation has completed. - public static IServiceCollection AddNamedSingleton(this IServiceCollection serviceCollection, - string name) - where TService : class - where TImplementation : TService - { - return serviceCollection.AddNamedSingleton(name, - provider => ActivatorUtilities.CreateInstance(provider, Array.Empty())); - } - - /// - /// Adds a singleton named service of the type specific in to the - /// specified . - /// - /// The type of the service to add. - /// The to add the service to. - /// The name of the service. - /// A reference to this instance after the operation has completed. - public static IServiceCollection AddNamedSingleton(this IServiceCollection serviceCollection, - string name) - where TService : class - { - return serviceCollection.AddNamedSingleton(name); - } - - /// - /// Adds a transient named service of the type specific in to the - /// specified . - /// - /// The type of the service to add. - /// The to add the service to. - /// The name of the service. - /// A reference to this instance after the operation has completed. - public static IServiceCollection AddNamedTransient(this IServiceCollection serviceCollection, string name) - where TService : class - { - return serviceCollection.AddNamedTransient(name, - provider => ActivatorUtilities.CreateInstance(provider, Array.Empty())); - } - - /// - /// Adds a transient named service of the type specific in to the - /// specified . - /// - /// The type of the service to add. - /// The to add the service to. - /// The name of the service. - /// The factory that creates the service. - /// A reference to this instance after the operation has completed. - public static IServiceCollection AddNamedTransient(this IServiceCollection serviceCollection, - string name, Func implementationFactory) - where TService : class - { - _ = Throw.IfNull(serviceCollection); - _ = Throw.IfNullOrEmpty(name); - - _ = serviceCollection.AddOptions>(name) - .Configure(options => - options.Services.Add(NamedServiceDescriptor.Describe( - implementationFactory, - ServiceLifetime.Transient))); - - serviceCollection.TryAdd(ServiceDescriptor.Singleton(typeof(INamedServiceProvider<>), typeof(NamedServiceProvider<>))); - - return serviceCollection; - } -} diff --git a/src/ToBeMoved/DependencyInjection.NamedService/NamedServiceDescriptor.cs b/src/ToBeMoved/DependencyInjection.NamedService/NamedServiceDescriptor.cs deleted file mode 100644 index b1a7b63d007..00000000000 --- a/src/ToBeMoved/DependencyInjection.NamedService/NamedServiceDescriptor.cs +++ /dev/null @@ -1,26 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. - -using System; -using Microsoft.Extensions.DependencyInjection; - -namespace Microsoft.Extensions.DependencyInjection; - -internal sealed class NamedServiceDescriptor - where TService : class -{ - public NamedServiceDescriptor(Func implementationFactory, ServiceLifetime lifetime) - { - ImplementationFactory = implementationFactory; - Lifetime = lifetime; - } - - public ServiceLifetime Lifetime { get; } - - public Func ImplementationFactory { get; } - - public static NamedServiceDescriptor Describe(Func implementationFactory, ServiceLifetime lifetime) - { - return new NamedServiceDescriptor(implementationFactory, lifetime); - } -} diff --git a/src/ToBeMoved/DependencyInjection.NamedService/NamedServiceProvider.cs b/src/ToBeMoved/DependencyInjection.NamedService/NamedServiceProvider.cs deleted file mode 100644 index 113c1cbf7e8..00000000000 --- a/src/ToBeMoved/DependencyInjection.NamedService/NamedServiceProvider.cs +++ /dev/null @@ -1,84 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. - -using System; -using System.Collections.Concurrent; -using System.Collections.Generic; -using System.Linq; -using System.Threading; -using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.Options; - -namespace Microsoft.Extensions.DependencyInjection; - -internal sealed class NamedServiceProvider : INamedServiceProvider - where TService : class -{ - private readonly IServiceProvider _serviceProvider; - private readonly IOptionsMonitor> _optionsMonitor; - private readonly ConcurrentDictionary, Lazy> _cache = new(); - - private readonly Func, Lazy> _factory; - - public NamedServiceProvider(IServiceProvider serviceProvider, - IOptionsMonitor> optionsMonitor) - { - _serviceProvider = serviceProvider; - _optionsMonitor = optionsMonitor; - _factory = CreateTService; - } - - public TService? GetService(string name) - { - var options = _optionsMonitor.Get(name); - int count = options.Services.Count; - if (count == 0) - { - return null; - } - - // the last one wins - var serviceDescriptor = options.Services[count - 1]; - return GetOrCreateTService(serviceDescriptor); - } - - public IEnumerable GetServices(string name) - { - var options = _optionsMonitor.Get(name); - int count = options.Services.Count; - if (count == 0) - { - return Enumerable.Empty(); - } - - var collection = new List(count); - foreach (var serviceDescriptor in options.Services) - { - collection.Add(GetOrCreateTService(serviceDescriptor)); - } - - return collection; - } - - private TService GetOrCreateTService(NamedServiceDescriptor serviceDescriptor) - { - if (_cache.TryGetValue(serviceDescriptor, out var lazy)) - { - return lazy.Value; - } - - if (serviceDescriptor.Lifetime == ServiceLifetime.Transient) - { - return serviceDescriptor.ImplementationFactory(_serviceProvider); - } - - return _cache.GetOrAdd(serviceDescriptor, _factory).Value; - } - - private Lazy CreateTService(NamedServiceDescriptor serviceDescriptor) - { - return new Lazy( - () => serviceDescriptor.ImplementationFactory(_serviceProvider), - LazyThreadSafetyMode.ExecutionAndPublication); - } -} diff --git a/src/ToBeMoved/DependencyInjection.NamedService/NamedServiceProviderExtensions.cs b/src/ToBeMoved/DependencyInjection.NamedService/NamedServiceProviderExtensions.cs deleted file mode 100644 index 4ecccddaf04..00000000000 --- a/src/ToBeMoved/DependencyInjection.NamedService/NamedServiceProviderExtensions.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. - -using Microsoft.Shared.Diagnostics; - -namespace Microsoft.Extensions.DependencyInjection; - -/// -/// Extension methods for getting services from an . -/// -public static class NamedServiceProviderExtensions -{ - /// - /// Get service of type from the . - /// - /// The type of service object to get. - /// The to retrieve the service object from. - /// The name of the service. - /// A service object of type . - /// There is no service of type with the name. - /// - /// This method returns the latest registered under the name. - /// - public static TService GetRequiredService(this INamedServiceProvider provider, string name) - where TService : class - { - _ = Throw.IfNull(provider); - _ = Throw.IfNullOrEmpty(name); - - var service = provider.GetService(name); - if (service == null) - { - Throw.InvalidOperationException($"No service for type '${typeof(TService)}' and name '${name}' has been registered."); - } - - return service; - } -} diff --git a/src/ToBeMoved/DependencyInjection.NamedService/NamedServiceProviderOptions.cs b/src/ToBeMoved/DependencyInjection.NamedService/NamedServiceProviderOptions.cs deleted file mode 100644 index 32ebd74f957..00000000000 --- a/src/ToBeMoved/DependencyInjection.NamedService/NamedServiceProviderOptions.cs +++ /dev/null @@ -1,12 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. - -using System.Collections.Generic; - -namespace Microsoft.Extensions.DependencyInjection; - -internal sealed class NamedServiceProviderOptions - where TService : class -{ - public List> Services { get; set; } = new(); -} diff --git a/src/ToBeMoved/Directory.Build.props b/src/ToBeMoved/Directory.Build.props deleted file mode 100644 index a04f955a666..00000000000 --- a/src/ToBeMoved/Directory.Build.props +++ /dev/null @@ -1,17 +0,0 @@ - - - - - $(NetCoreTargetFrameworks)$(ConditionalNet462) - true - false - - true - true - true - true - true - true - true - - diff --git a/test/Libraries/System.Cloud.Messaging.Tests/DependencyInjection/Internal/PipelineDelegateFactoryTests.cs b/test/Libraries/System.Cloud.Messaging.Tests/DependencyInjection/Internal/PipelineDelegateFactoryTests.cs index f97183f37c0..7cf3765fdb5 100644 --- a/test/Libraries/System.Cloud.Messaging.Tests/DependencyInjection/Internal/PipelineDelegateFactoryTests.cs +++ b/test/Libraries/System.Cloud.Messaging.Tests/DependencyInjection/Internal/PipelineDelegateFactoryTests.cs @@ -41,7 +41,7 @@ public void PipelineBuild_ShouldWorkCorrectly_WhenTerminalDelegateIsConfigured(s using var host = hostBuilder.Build(); var serviceProvider = host.Services; - var messageDelegate = serviceProvider.GetRequiredService>().GetService(pipelineName); + var messageDelegate = serviceProvider.GetKeyedService(pipelineName); Assert.NotNull(messageDelegate); } @@ -61,7 +61,7 @@ public void PipelineBuild_ShouldWorkCorrectly_WhenMiddlewareAndTerminalDelegateI using var host = hostBuilder.Build(); var serviceProvider = host.Services; - var messageDelegate = serviceProvider.GetRequiredService>().GetService(pipelineName); + var messageDelegate = serviceProvider.GetKeyedService(pipelineName); Assert.NotNull(messageDelegate); } } diff --git a/test/ToBeMoved/DependencyInjection.NamedService.Tests/DependencyInjection.NamedService.Tests.csproj b/test/ToBeMoved/DependencyInjection.NamedService.Tests/DependencyInjection.NamedService.Tests.csproj deleted file mode 100644 index 7efb9bb610c..00000000000 --- a/test/ToBeMoved/DependencyInjection.NamedService.Tests/DependencyInjection.NamedService.Tests.csproj +++ /dev/null @@ -1,15 +0,0 @@ - - - Microsoft.Extensions.DependencyInjection.NamedService.Tests - Microsoft.Extensions.DependencyInjection.NamedService.Test - Tests for Microsoft.Extensions.DependencyInjection.NamedService - - - - - - - - - - diff --git a/test/ToBeMoved/DependencyInjection.NamedService.Tests/ResolutionTests.cs b/test/ToBeMoved/DependencyInjection.NamedService.Tests/ResolutionTests.cs deleted file mode 100644 index 0326a1470cd..00000000000 --- a/test/ToBeMoved/DependencyInjection.NamedService.Tests/ResolutionTests.cs +++ /dev/null @@ -1,100 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. - -using System; -using System.Linq; -using FluentAssertions; -using Microsoft.Extensions.DependencyInjection; -using Xunit; - -namespace Microsoft.Extensions.DependencyInjection.NamedService.Test; - -public class ResolutionTests : IDisposable -{ - private const string NamedSingleton = nameof(NamedSingleton); - private const string NamedTransient = nameof(NamedTransient); - private readonly ServiceProvider _provider; - - public ResolutionTests() - { - var serviceCollection = new ServiceCollection(); - serviceCollection.AddNamedSingleton(NamedSingleton); - serviceCollection.AddNamedSingleton(NamedSingleton); - serviceCollection.AddNamedTransient(NamedTransient); - _provider = serviceCollection.BuildServiceProvider(); - } - - [Fact] - public void GetRequiredService_WhenTypeIsRegistered_ShouldReturnNewObject() - { - var namedProvider = _provider.GetRequiredService>(); - var service = namedProvider.GetRequiredService(NamedSingleton); - service.Should().BeOfType(); - } - - [Fact] - public void GetRequiredService_WhenResolveSingletonSecondTime_ShouldReturnSameObject() - { - var namedProvider = _provider.GetRequiredService>(); - var service = namedProvider.GetRequiredService(NamedSingleton); - var service2 = namedProvider.GetRequiredService(NamedSingleton); - service2.Should().BeOfType(); - service2.Should().BeSameAs(service); - } - - [Fact] - public void GetRequiredService_WhenResolveTransientSecondTime_ShouldReturnNewObject() - { - var namedProvider = _provider.GetRequiredService>(); - var service = namedProvider.GetRequiredService(NamedTransient); - var service2 = namedProvider.GetRequiredService(NamedTransient); - service2.Should().NotBeSameAs(service); - } - - [Fact] - public void GetService_WhenNotRegistered_ShouldReturnNull() - { - var namedProvider = _provider.GetRequiredService>(); - var service = namedProvider.GetService("bogus"); - service.Should().BeNull(); - } - - [Fact] - public void GetRequiredService_WhenNotRegistered_ShouldThrow() - { - var namedProvider = _provider.GetRequiredService>(); - Assert.Throws(() => namedProvider.GetRequiredService("bogus")); - } - - [Fact] - public void GetServices_WhenMultipleTypes_ReturnsCollection() - { - var namedProvider = _provider.GetRequiredService>(); - var collection = namedProvider.GetServices(NamedSingleton).ToList(); - collection.Should().HaveCount(2); - collection.First().Should().BeOfType(); - collection.Skip(1).First().Should().BeOfType(); - } - - private class TestClass - { - } - - private sealed class DuplicateTestClass : TestClass - { - } - - protected virtual void Dispose(bool disposing) - { - if (disposing) - { - _provider.Dispose(); - } - } - - public void Dispose() - { - Dispose(true); - GC.SuppressFinalize(this); - } -} diff --git a/test/ToBeMoved/Directory.Build.props b/test/ToBeMoved/Directory.Build.props deleted file mode 100644 index d64d3a34c2c..00000000000 --- a/test/ToBeMoved/Directory.Build.props +++ /dev/null @@ -1,8 +0,0 @@ - - - - - $(TestNetCoreTargetFrameworks) - $(TestNetCoreTargetFrameworks)$(ConditionalNet462) - -