diff --git a/src/Atc.Rest.Extended/Options/ConfigureAuthorizationOptions.cs b/src/Atc.Rest.Extended/Options/ConfigureAuthorizationOptions.cs index 473da089..ac46a972 100644 --- a/src/Atc.Rest.Extended/Options/ConfigureAuthorizationOptions.cs +++ b/src/Atc.Rest.Extended/Options/ConfigureAuthorizationOptions.cs @@ -22,8 +22,7 @@ public ConfigureAuthorizationOptions( [SuppressMessage("Design", "MA0051:Method is too long", Justification = "OK.")] [SuppressMessage("Design", "CA1062:Validate arguments of public methods", Justification = "OK.")] [SuppressMessage("Design", "CA5404:Do not disable token validation checks", Justification = "OK.")] - [SuppressMessage("Usage", "VSTHRD002:Avoid problematic synchronous waits", Justification = "OK.")] - public void PostConfigure(string name, JwtBearerOptions options) + public void PostConfigure(string? name, JwtBearerOptions options) { if (apiOptions.Authorization is not null && !apiOptions.Authorization.IsSecurityEnabled()) @@ -93,7 +92,7 @@ public void PostConfigure(string name, JwtBearerOptions options) options.TokenValidationParameters.ValidateIssuerSigningKey = options.TokenValidationParameters.IssuerSigningKeys.Any(); } - public void PostConfigure(string name, AuthenticationOptions options) + public void PostConfigure(string? name, AuthenticationOptions options) { ArgumentNullException.ThrowIfNull(options); diff --git a/src/Atc.Rest/Models/RequestLogModel.cs b/src/Atc.Rest/Models/RequestLogModel.cs index ff92c471..f4d59554 100644 --- a/src/Atc.Rest/Models/RequestLogModel.cs +++ b/src/Atc.Rest/Models/RequestLogModel.cs @@ -76,7 +76,7 @@ private static Dictionary ExtractHeaderParameters( var pairs = new Dictionary(StringComparer.Ordinal); foreach (var header in headers) { - pairs.Add(header.Key, header.Value); + pairs.Add(header.Key, header.Value!); } return pairs; diff --git a/src/Atc.Rest/Models/ResponseLogModel.cs b/src/Atc.Rest/Models/ResponseLogModel.cs index 214c078c..59ca70fe 100644 --- a/src/Atc.Rest/Models/ResponseLogModel.cs +++ b/src/Atc.Rest/Models/ResponseLogModel.cs @@ -33,7 +33,7 @@ private static Dictionary ExtractHeaderParameters( var pairs = new Dictionary(StringComparer.Ordinal); foreach (var header in headers) { - pairs.Add(header.Key, header.Value); + pairs.Add(header.Key, header.Value!); } return pairs; diff --git a/src/Atc/Atc.csproj b/src/Atc/Atc.csproj index e04e131a..693f8dfa 100644 --- a/src/Atc/Atc.csproj +++ b/src/Atc/Atc.csproj @@ -9,8 +9,8 @@ - - + + diff --git a/src/Atc/Helpers/CultureHelper.cs b/src/Atc/Helpers/CultureHelper.cs index 0090e066..1e8b7c03 100644 --- a/src/Atc/Helpers/CultureHelper.cs +++ b/src/Atc/Helpers/CultureHelper.cs @@ -8,7 +8,6 @@ namespace Atc.Helpers; /// CultureHelper. /// [SuppressMessage("Design", "CA1002:Do not expose generic lists", Justification = "OK.")] -[SuppressMessage("Design", "MA0016:Prefer returning collection abstraction instead of implementation", Justification = "OK.")] [SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1615:Element return value should be documented", Justification = "OK.")] public static class CultureHelper {