From f367e43f7a3619f36b2678141d4d751a79f52c7a Mon Sep 17 00:00:00 2001 From: ZLoo Date: Sat, 13 Jul 2024 00:49:33 +0300 Subject: [PATCH] fix S4049 --- src/Polly/PolicyBuilder.cs | 4 ++++ src/Polly/Polly.csproj | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Polly/PolicyBuilder.cs b/src/Polly/PolicyBuilder.cs index bc3e2f58c53..8d0d93aa155 100644 --- a/src/Polly/PolicyBuilder.cs +++ b/src/Polly/PolicyBuilder.cs @@ -51,6 +51,7 @@ public override bool Equals(object obj) => public override int GetHashCode() => base.GetHashCode(); +#pragma warning disable S4049 //Consider making method a property /// /// Gets the of the current instance. /// @@ -60,6 +61,7 @@ public override int GetHashCode() => [EditorBrowsable(EditorBrowsableState.Never)] public new Type GetType() => base.GetType(); +#pragma warning restore S4049 #endregion } @@ -129,6 +131,7 @@ public override bool Equals(object obj) => public override int GetHashCode() => base.GetHashCode(); +#pragma warning disable S4049 //Consider making method a property /// /// Gets the of the current instance. /// @@ -138,6 +141,7 @@ public override int GetHashCode() => [EditorBrowsable(EditorBrowsableState.Never)] public new Type GetType() => base.GetType(); +#pragma warning restore S4049 #endregion } diff --git a/src/Polly/Polly.csproj b/src/Polly/Polly.csproj index 456451d1089..dbd07761a27 100644 --- a/src/Polly/Polly.csproj +++ b/src/Polly/Polly.csproj @@ -8,7 +8,7 @@ 70 true $(NoWarn);CA1010;CA1031;CA1032;CA1051;CA1062;CA1063;CA1064;CA1710;CA1716;CA1724;CA1805;CA1815;CA1816;CA2211 - $(NoWarn);S2223;S3215;S3246;S3971;S4039;S4049;S4457 + $(NoWarn);S2223;S3215;S3246;S3971;S4039;S4457 $(NoWarn);RS0037;