From 80e4ab0cfe5470458910066610384ac5ea2543ea Mon Sep 17 00:00:00 2001 From: ZLoo Date: Fri, 19 Jul 2024 01:07:50 +0300 Subject: [PATCH 1/3] Fix warning CA1716 --- src/Polly/Polly.csproj | 2 +- src/Polly/Registry/IReadOnlyPolicyRegistry.cs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Polly/Polly.csproj b/src/Polly/Polly.csproj index 724f7d26e46..bf6d0e08866 100644 --- a/src/Polly/Polly.csproj +++ b/src/Polly/Polly.csproj @@ -7,7 +7,7 @@ Library 70 true - $(NoWarn);CA1010;CA1031;CA1051;CA1062;CA1063;CA1064;CA1710;CA1716;CA1724;CA1805;CA1815;CA1816;CA2211 + $(NoWarn);CA1010;CA1031;CA1051;CA1062;CA1063;CA1064;CA1710;CA1724;CA1805;CA1815;CA1816;CA2211 $(NoWarn);S2223;S3215;S4039 $(NoWarn);RS0037; diff --git a/src/Polly/Registry/IReadOnlyPolicyRegistry.cs b/src/Polly/Registry/IReadOnlyPolicyRegistry.cs index b9a551f2b22..f638c32a471 100644 --- a/src/Polly/Registry/IReadOnlyPolicyRegistry.cs +++ b/src/Polly/Registry/IReadOnlyPolicyRegistry.cs @@ -23,8 +23,10 @@ public interface IReadOnlyPolicyRegistry : IEnumerableThe type of Policy. /// The policy stored in the registry under the given key. /// Thrown when is . +#pragma warning disable CA1716 // Identifiers should not match keywords TPolicy Get(TKey key) where TPolicy : IsPolicy; +#pragma warning restore CA1716 /// /// Gets the policy stored under the provided key, casting to . From a3bef65845e1db55f2cf0854c9e830edf332182e Mon Sep 17 00:00:00 2001 From: ZLoo Date: Fri, 19 Jul 2024 01:22:53 +0300 Subject: [PATCH 2/3] Fix formatting ide0055 --- src/Polly/Registry/IReadOnlyPolicyRegistry.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Polly/Registry/IReadOnlyPolicyRegistry.cs b/src/Polly/Registry/IReadOnlyPolicyRegistry.cs index f638c32a471..18c3cec820a 100644 --- a/src/Polly/Registry/IReadOnlyPolicyRegistry.cs +++ b/src/Polly/Registry/IReadOnlyPolicyRegistry.cs @@ -16,6 +16,7 @@ public interface IReadOnlyPolicyRegistry : IEnumerableThe value associated with the specified key. IsPolicy this[TKey key] { get; } +#pragma warning disable CA1716 // Identifiers should not match keywords /// /// Gets the policy stored under the provided key, casting to . /// @@ -23,7 +24,6 @@ public interface IReadOnlyPolicyRegistry : IEnumerableThe type of Policy. /// The policy stored in the registry under the given key. /// Thrown when is . -#pragma warning disable CA1716 // Identifiers should not match keywords TPolicy Get(TKey key) where TPolicy : IsPolicy; #pragma warning restore CA1716 From 1bd19e069a570357bed463b7824080b088de83d6 Mon Sep 17 00:00:00 2001 From: Martin Costello Date: Thu, 18 Jul 2024 23:33:47 +0100 Subject: [PATCH 3/3] Update Polly.csproj --- src/Polly/Polly.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Polly/Polly.csproj b/src/Polly/Polly.csproj index 0f3bfa3db98..b220c06d916 100644 --- a/src/Polly/Polly.csproj +++ b/src/Polly/Polly.csproj @@ -7,7 +7,7 @@ Library 70 true - $(NoWarn);CA1010;CA1031;CA1051;CA1062;CA1063;CA1064;CA1710;CA1724;CA1805;CA1816;CA2211 + $(NoWarn);CA1010;CA1031;CA1051;CA1062;CA1063;CA1064;CA1710;CA1724;CA1805;CA1816;CA2211 $(NoWarn);S2223;S3215;S4039 $(NoWarn);RS0037;