From 4d3e9a5e6ac0628379896bd9d54206044fbc540b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C2=8DAmitla=20Vannikumar?= Date: Fri, 9 Sep 2022 15:53:46 -0700 Subject: [PATCH] Changed the supression messaged according to documentation --- src/Microsoft.ComponentDetection.Detectors/pip/IPyPiClient.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Microsoft.ComponentDetection.Detectors/pip/IPyPiClient.cs b/src/Microsoft.ComponentDetection.Detectors/pip/IPyPiClient.cs index ad3774cfa..d97cf547d 100644 --- a/src/Microsoft.ComponentDetection.Detectors/pip/IPyPiClient.cs +++ b/src/Microsoft.ComponentDetection.Detectors/pip/IPyPiClient.cs @@ -37,7 +37,7 @@ public class PyPiClient : IPyPiClient private static HttpClientHandler httpClientHandler = new HttpClientHandler() { CheckCertificateRevocationList = true }; - [SuppressMessage("StyleCop.CSharp.NamingRules", "SA1202:ElementMustBeAccessLevelOrder", Justification = "Field needs to be declared before use so order can not follow Access Levels.")] + [SuppressMessage("StyleCop.CSharp.OrderingRules", "SA1202:ElementsMustBeOrderedByAccess", Justification = "Field needs to be declared before use so order can not follow Access Levels.")] internal static HttpClient HttpClient = new HttpClient(httpClientHandler); // time to wait before retrying a failed call to pypi.org