File tree Expand file tree Collapse file tree 1 file changed +0
-35
lines changed Expand file tree Collapse file tree 1 file changed +0
-35
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments