From 2c3f503c1031e34daf6ca06e66aca0b50714ed84 Mon Sep 17 00:00:00 2001 From: azurepowershell Date: Fri, 21 Apr 2023 03:26:15 +0000 Subject: [PATCH] Sync tools folder from main branch to generation branch --- .ci-config.json | 2 +- .../StaticAnalysis/ExampleAnalyzer/Measure-MarkdownOrScript.ps1 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.ci-config.json b/.ci-config.json index 6aff884ffc49..a68d381c8226 100644 --- a/.ci-config.json +++ b/.ci-config.json @@ -89,7 +89,7 @@ "phases": [ "build:module", "help:module", - "example:module" + "help-example:module" ] }, { diff --git a/tools/StaticAnalysis/ExampleAnalyzer/Measure-MarkdownOrScript.ps1 b/tools/StaticAnalysis/ExampleAnalyzer/Measure-MarkdownOrScript.ps1 index ef2d69283e9d..7312d01607eb 100644 --- a/tools/StaticAnalysis/ExampleAnalyzer/Measure-MarkdownOrScript.ps1 +++ b/tools/StaticAnalysis/ExampleAnalyzer/Measure-MarkdownOrScript.ps1 @@ -72,7 +72,7 @@ if ($PSCmdlet.ParameterSetName -eq "Markdown") { } foreach ($_ in Get-ChildItem $MarkdownPath -Recurse:$Recurse) { # Filter the .md of overview in "\help\" - if ((Get-Item -Path $_.FullName).Directory.Name -eq "help" -and $_.FullName -cmatch ".*\.md" -and $_.BaseName -cmatch "^[A-Z][a-z]+-([A-Z][a-z0-9]*)+$") { + if (((Get-Item -Path $_.FullName).Directory.Name -eq "help" -or (Get-Item -Path $_.FullName).Directory.Name -eq "docs") -and $_.FullName -cmatch ".*\.md" -and $_.BaseName -cmatch "^[A-Z][a-z]+-([A-Z][a-z0-9]*)+$") { if ((Get-Item -Path $_.FullName).Directory.Parent.Name -eq "netcoreapp3.1") { continue }