Skip to content

Commit 4e7d099

Browse files
authored
Supress S4039 and CA1010 warnings (#2329)
1 parent faaa79d commit 4e7d099

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

src/Polly/Context.Dictionary.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
namespace Polly;
22

3-
#pragma warning disable CA1033 // Interface methods should be callable by child types
3+
#pragma warning disable CA1033,S4039 // Interface methods should be callable by child types
44

55
/// <summary>
66
/// Context that carries with a single execution through a Policy. Commonly-used properties are directly on the class. Backed by a dictionary of string key / object value pairs, to which user-defined values may be added.

src/Polly/Context.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ namespace Polly;
44
/// Context that carries with a single execution through a Policy. Commonly-used properties are directly on the class. Backed by a dictionary of string key / object value pairs, to which user-defined values may be added.
55
/// <remarks>Do not re-use an instance of <see cref="Context"/> across more than one call through .Execute(...) or .ExecuteAsync(...).</remarks>
66
/// </summary>
7+
#pragma warning disable CA1010 // Collections should implement generic interface
78
#pragma warning disable CA1710 // Identifiers should have correct suffix
89
public partial class Context
910
#pragma warning restore CA1710

src/Polly/Polly.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
<ProjectType>Library</ProjectType>
88
<MutationScore>70</MutationScore>
99
<IncludePollyUsings>true</IncludePollyUsings>
10-
<NoWarn>$(NoWarn);CA1010;CA1031;CA1051;CA1063;CA1064;CA1724;</NoWarn>
11-
<NoWarn>$(NoWarn);S2223;S3215;S4039</NoWarn>
10+
<NoWarn>$(NoWarn);CA1031;CA1051;CA1063;CA1064;CA1724;</NoWarn>
11+
<NoWarn>$(NoWarn);S2223;S3215;</NoWarn>
1212
<!--Public API Analyzers: We do not need to fix these as it would break compatibility with released Polly versions-->
1313
<NoWarn>$(NoWarn);RS0037;</NoWarn>
1414
</PropertyGroup>

0 commit comments

Comments
 (0)