Skip to content

Commit 9c18c77

Browse files
authored
Remove the check in HelpGeneration (#22244)
1 parent ae0cc97 commit 9c18c77

File tree

1 file changed

+0
-35
lines changed

1 file changed

+0
-35
lines changed

tools/HelpGeneration/HelpGeneration.psm1

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -177,41 +177,6 @@ function Test-AzMarkdownHelp
177177
$fileErrors += "No description found"
178178
}
179179
}
180-
"## EXAMPLES"
181-
{
182-
# Move the index to the start of the PowerShell code
183-
while (-not $content[$idx].StartsWith("``````"))
184-
{
185-
$idx++
186-
if ($idx -ge $content.Length)
187-
{
188-
Write-Error "Could not find start of PowerShell example in file $($file.Name)"
189-
return
190-
}
191-
}
192-
193-
# Check for the platyPS example template
194-
#
195-
# ```
196-
# PS C:\> {{ Add example code here }}
197-
# ```
198-
#
199-
if ($content[$idx+1] -contains "{{ Add example code here }}")
200-
{
201-
$fileErrors += "No examples found"
202-
}
203-
204-
# Check for other missing example formats (such as empty)
205-
#
206-
# ```
207-
#
208-
# ```
209-
#
210-
if ([string]::IsNullOrWhiteSpace("$($content[$idx+1])"))
211-
{
212-
$fileErrors += "No examples found"
213-
}
214-
}
215180
"@{Text=}"
216181
{
217182
# This case occurs when there is no description provided for a parameter

0 commit comments

Comments
 (0)