From fccc1c414476a7e58bccd802b0af12dd6831b88c Mon Sep 17 00:00:00 2001
From: Jose Arriaga Maldonado <45773732+joseharriaga@users.noreply.github.com>
Date: Fri, 26 Jan 2024 14:36:57 -0800
Subject: [PATCH] [Monitor] Remove unnecessary suppressions of AZC0001 (#41555)
Analyzer rule AZC0001 checks that a namespace uses an approved prefix. I noticed that several libraries are suppressing this rule even though they are using approved prefixes. This change removes those unnecessary suppressions from Azure.Monitor.*.
---
.../Azure.Monitor.Ingestion/src/GlobalSuppressions.cs | 6 ------
.../Azure.Monitor.Query/src/Azure.Monitor.Query.csproj | 1 -
2 files changed, 7 deletions(-)
delete mode 100644 sdk/monitor/Azure.Monitor.Ingestion/src/GlobalSuppressions.cs
diff --git a/sdk/monitor/Azure.Monitor.Ingestion/src/GlobalSuppressions.cs b/sdk/monitor/Azure.Monitor.Ingestion/src/GlobalSuppressions.cs
deleted file mode 100644
index 26f64bc53a206..0000000000000
--- a/sdk/monitor/Azure.Monitor.Ingestion/src/GlobalSuppressions.cs
+++ /dev/null
@@ -1,6 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-using System.Diagnostics.CodeAnalysis;
-
-[assembly: SuppressMessage("Usage", "AZC0001:Use one of the following pre-approved namespace groups (https://azure.github.io/azure-sdk/registered_namespaces.html): Azure.AI, Azure.Analytics, Azure.Communication, Azure.Data, Azure.DigitalTwins, Azure.IoT, Azure.Learn, Azure.Media, Azure.Management, Azure.Messaging, Azure.ResourceManager, Azure.Search, Azure.Security, Azure.Storage, Azure.Template, Azure.Identity, Microsoft.Extensions.Azure", Justification = "https://github.com/Azure/azure-sdk-tools/issues/3483", Scope = "namespace", Target = "~N:Azure.Monitor.Ingestion")]
diff --git a/sdk/monitor/Azure.Monitor.Query/src/Azure.Monitor.Query.csproj b/sdk/monitor/Azure.Monitor.Query/src/Azure.Monitor.Query.csproj
index f181ab6d93798..ed5212e75dda7 100644
--- a/sdk/monitor/Azure.Monitor.Query/src/Azure.Monitor.Query.csproj
+++ b/sdk/monitor/Azure.Monitor.Query/src/Azure.Monitor.Query.csproj
@@ -8,7 +8,6 @@
Azure Monitor Query
true
$(RequiredTargetFrameworks)
- $(NoWarn);AZC0001
true