mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 12:45:47 +00:00
Enable CA2211: Non-constant fields should not be visible (#14073)
https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2211
This commit is contained in:
1 parent
358db74479
commit
75e0683725
2 files changed
+3
-1
No files matched your search
+1
-1
@@ -391,7 +391,7 @@ dotnet_diagnostic.CA2207.severity = warning
|
||||
dotnet_diagnostic.CA2208.severity = suggestion
|
||||
|
||||
# CA2211: Non-constant fields should not be visible
|
||||
dotnet_diagnostic.CA2211.severity = suggestion
|
||||
dotnet_diagnostic.CA2211.severity = warning
|
||||
|
||||
# CA2213: Disposable fields should be disposed
|
||||
dotnet_diagnostic.CA2213.severity = none
|
||||
|
||||
@@ -18,7 +18,9 @@ namespace System.Management.Automation.Remoting
|
||||
{
|
||||
/// <summary>
|
||||
/// </summary>
|
||||
#pragma warning disable CA2211 // Non-constant fields should not be visible
|
||||
public static bool IsServerManager;
|
||||
#pragma warning restore CA2211 // Non-constant fields should not be visible
|
||||
|
||||
#region Public Properties
|
||||
|
||||
|
||||
Reference in new issue
Block a user