Skip to content

Commit 891db45

Browse files
authored
skip az tools when analyzing examples (#20032)
1 parent c9a0d1b commit 891db45

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tools/StaticAnalysis/ExampleAnalyzer/Measure-MarkdownOrScript.ps1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,11 @@ if ($PSCmdlet.ParameterSetName -eq "Markdown") {
7676
if ((Get-Item -Path $_.FullName).Directory.Parent.Name -eq "netcoreapp3.1") {
7777
continue
7878
}
79+
# Skip Az.Tools.* modules as they may not comply with Az convention
80+
if (($_.FullName -cmatch "Az\.Tools\.")) {
81+
Write-Debug "Skipping $($_.FullName)"
82+
continue
83+
}
7984
Write-Output "Searching in file $($_.FullName) ..."
8085
if ((Get-Item -Path $_.FullName).Directory.Parent.Parent.Name -ne "src") {
8186
$module = (Get-Item -Path $_.FullName).Directory.Parent.Parent.Name

0 commit comments

Comments
 (0)