From ce000574deef1b3707f0e0b91c74f575efe60b40 Mon Sep 17 00:00:00 2001 From: Anne Thompson Date: Fri, 11 Aug 2023 10:57:14 -0700 Subject: [PATCH] Address warnings --- .../Azure.ClientSdk.Analyzers/BannedTypesAnalyzer.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/dotnet/Azure.ClientSdk.Analyzers/Azure.ClientSdk.Analyzers/BannedTypesAnalyzer.cs b/src/dotnet/Azure.ClientSdk.Analyzers/Azure.ClientSdk.Analyzers/BannedTypesAnalyzer.cs index dc4fbb53853..74795495973 100644 --- a/src/dotnet/Azure.ClientSdk.Analyzers/Azure.ClientSdk.Analyzers/BannedTypesAnalyzer.cs +++ b/src/dotnet/Azure.ClientSdk.Analyzers/Azure.ClientSdk.Analyzers/BannedTypesAnalyzer.cs @@ -35,7 +35,12 @@ public sealed class BannedTypesAnalyzer : SymbolAnalyzerBase SymbolKind.Property, }; + // Note: suppressing warnings because they are handled in base.Initialize(). +#pragma warning disable RS1025 // Configure generated code analysis +#pragma warning disable RS1026 // Enable concurrent execution public override void Initialize(AnalysisContext context) +#pragma warning restore RS1026 // Enable concurrent execution +#pragma warning restore RS1025 // Configure generated code analysis { base.Initialize(context);