Skip to content

Commit

Permalink
[.NET Analyzers] Add new approved namespace (#7674)
Browse files Browse the repository at this point in the history
The focus of these changes is to add the "Azure.Compute"
namespace to the approved list, per Krzysztof's
approval for use in the `Azure.Compute.Batch` package.
  • Loading branch information
jsquire authored Feb 13, 2024
1 parent d9959dc commit 99d970b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class Program { }

var diagnostic = Verifier.Diagnostic("AZC0001")
.WithMessage("Namespace 'RandomNamespace' shouldn't contain public types. 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.Containers, Azure.Core.Expressions, Azure.Data, Azure.Developer, Azure.DigitalTwins, Azure.Identity, Azure.IoT, Azure.Learn, Azure.Management, Azure.Media, Azure.Messaging, Azure.MixedReality, Azure.Monitor, Azure.ResourceManager, Azure.Search, Azure.Security, Azure.Storage, Azure.Template, Microsoft.Extensions.Azure")
" Azure.AI, Azure.Analytics, Azure.Communication, Azure.Compute, Azure.Containers, Azure.Core.Expressions, Azure.Data, Azure.Developer, Azure.DigitalTwins, Azure.Identity, Azure.IoT, Azure.Learn, Azure.Management, Azure.Media, Azure.Messaging, Azure.MixedReality, Azure.Monitor, Azure.ResourceManager, Azure.Search, Azure.Security, Azure.Storage, Azure.Template, Microsoft.Extensions.Azure")
.WithSpan(2, 11, 2, 26);

await Verifier.VerifyAnalyzerAsync(code, diagnostic);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ public class ClientAssemblyNamespaceAnalyzer : SymbolAnalyzerBase
"Azure.AI",
"Azure.Analytics",
"Azure.Communication",
"Azure.Compute",
"Azure.Containers",
"Azure.Core.Expressions",
"Azure.Data",
Expand Down

0 comments on commit 99d970b

Please sign in to comment.