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);