Skip to content

Commit

Permalink
add GA'ed namespaces to namespace analyzer (#4932)
Browse files Browse the repository at this point in the history
  • Loading branch information
annelo-msft authored Dec 12, 2022
1 parent aaf3502 commit 8d0a197
Show file tree
Hide file tree
Showing 2 changed files with 3 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.Core.Expressions, Azure.Data, Azure.DigitalTwins, Azure.Identity, Azure.IoT, Azure.Learn, Azure.Management, Azure.Media, Azure.Messaging, Azure.Monitor, Azure.ResourceManager, Azure.Search, Azure.Security, Azure.Storage, Azure.Template, Microsoft.Extensions.Azure")
" Azure.AI, Azure.Analytics, Azure.Communication, Azure.Containers, Azure.Core.Expressions, Azure.Data, 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.Containers",
"Azure.Core.Expressions",
"Azure.Data",
"Azure.DigitalTwins",
Expand All @@ -24,6 +25,7 @@ public class ClientAssemblyNamespaceAnalyzer : SymbolAnalyzerBase
"Azure.Management",
"Azure.Media",
"Azure.Messaging",
"Azure.MixedReality",
"Azure.Monitor",
"Azure.ResourceManager",
"Azure.Search",
Expand Down

0 comments on commit 8d0a197

Please sign in to comment.