From 95d5749c0004a96efbb2eb609a8673c898b55ff9 Mon Sep 17 00:00:00 2001 From: xtqqczze Date: Thu, 12 Nov 2020 09:20:43 +0000 Subject: [PATCH] Enable SA1212: Property accessors should follow order https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1202.md --- .globalconfig | 2 +- .../engine/remoting/common/throttlemanager.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.globalconfig b/.globalconfig index ced5ff22453..899a4054821 100644 --- a/.globalconfig +++ b/.globalconfig @@ -1250,7 +1250,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 diff --git a/src/System.Management.Automation/engine/remoting/common/throttlemanager.cs b/src/System.Management.Automation/engine/remoting/common/throttlemanager.cs index cf742cdba7d..afccc28362a 100644 --- a/src/System.Management.Automation/engine/remoting/common/throttlemanager.cs +++ b/src/System.Management.Automation/engine/remoting/common/throttlemanager.cs @@ -675,9 +675,9 @@ internal class Operation : IThrottleOperation 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() {