Skip to content

Commit

Permalink
Supress S4039, CA1010 in Context.Dictionary
Browse files Browse the repository at this point in the history
  • Loading branch information
ShawnWu33 committed Oct 7, 2024
1 parent faaa79d commit 2e249ab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/Polly/Context.Dictionary.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
namespace Polly;

#pragma warning disable CA1033 // Interface methods should be callable by child types
#pragma warning disable CA1033,S4039 // Interface methods should be callable by child types
#pragma warning disable CA1010 // Collections should implement generic interface

/// <summary>
/// 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.
Expand Down
4 changes: 2 additions & 2 deletions src/Polly/Polly.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
<ProjectType>Library</ProjectType>
<MutationScore>70</MutationScore>
<IncludePollyUsings>true</IncludePollyUsings>
<NoWarn>$(NoWarn);CA1010;CA1031;CA1051;CA1063;CA1064;CA1724;</NoWarn>
<NoWarn>$(NoWarn);S2223;S3215;S4039</NoWarn>
<NoWarn>$(NoWarn);CA1031;CA1051;CA1063;CA1064;CA1724;</NoWarn>
<NoWarn>$(NoWarn);S2223;S3215;</NoWarn>
<!--Public API Analyzers: We do not need to fix these as it would break compatibility with released Polly versions-->
<NoWarn>$(NoWarn);RS0037;</NoWarn>
</PropertyGroup>
Expand Down

0 comments on commit 2e249ab

Please sign in to comment.