Skip to content

Commit 2d3ddf5

Browse files
authored
Changes required for testing upgrades to cspell (#36612)
Depends on Azure/azure-sdk-tools#12910
1 parent f808020 commit 2d3ddf5

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

eng/pipelines/templates/steps/analyze.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ steps:
1414
Artifacts: ${{ parameters.Artifacts }}
1515

1616
- template: /eng/common/pipelines/templates/steps/check-spelling.yml
17+
parameters:
18+
ScriptToValidateUpgrade: eng/scripts/spell-check-public-api.ps1
1719

1820
- task: PowerShell@2
1921
inputs:

eng/scripts/spell-check-public-api.ps1

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,10 @@ foreach ($directory in $packageDirectories) {
5353
$filePaths += (Get-ChildItem -Path $directory -Filter *.md -Recurse).FullName
5454
}
5555

56-
$cspellOutput = &"$REPO_ROOT/eng/common/spelling/Invoke-Cspell.ps1" `
56+
&"$REPO_ROOT/eng/common/spelling/Invoke-Cspell.ps1" `
5757
-FileList $filePaths
5858

5959
if ($LASTEXITCODE) {
60-
foreach ($log in $cspellOutput) {
61-
LogError $log
62-
}
6360
LogError "Spelling errors detected. To correct false positives or learn about spell checking see: https://aka.ms/azsdk/engsys/spellcheck"
6461
exit 1
6562
}

0 commit comments

Comments
 (0)