Enable SA1212: Property accessors should follow order (#14051)

https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1202.md
This commit is contained in:
xtqqczze 2020-11-21 15:01:33 +00:00 committed by GitHub
parent 7dee446324
commit 8f659a2e31
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -1251,7 +1251,7 @@ dotnet_diagnostic.SA1210.severity = none
dotnet_diagnostic.SA1211.severity = none
# SA1212: Property accessors should follow order
dotnet_diagnostic.SA1212.severity = none
dotnet_diagnostic.SA1212.severity = warning
# SA1213: Event accessors should follow order
dotnet_diagnostic.SA1213.severity = none

View file

@ -675,9 +675,9 @@ namespace System.Management.Automation.Remoting
private Thread workerThreadStart;
private Thread workerThreadStop;
public bool Done { set; get; }
public bool Done { get; set; }
public int SleepTime { set; get; } = 100;
public int SleepTime { get; set; } = 100;
private void WorkerThreadMethodStart()
{