Skip to content

Commit 5d0988c

Browse files
azure-sdkgearama
andauthored
cspell issues in cpp branch , needs updated node, and cspell and npx need to be installed for cspell to run (Azure#32255)
Co-authored-by: George Arama <[email protected]>
1 parent 567a36d commit 5d0988c

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

eng/common/pipelines/templates/steps/check-spelling.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ steps:
1818
- task: NodeTool@0
1919
condition: and(succeededOrFailed(), ne(variables['Skip.SpellCheck'],'true'))
2020
inputs:
21-
versionSpec: 16.x
22-
displayName: Use Node.js 16.x
21+
versionSpec: 18.x
22+
displayName: Use Node.js 18.x
2323

2424
- task: PowerShell@2
2525
displayName: Check spelling (cspell)

eng/common/spelling/Invoke-Cspell.ps1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,10 +167,12 @@ $originalLocation = Get-Location
167167

168168
try {
169169
Set-Location $PackageInstallCache
170+
npm install npx | Out-Null
171+
npm install cspell | Out-Null
170172
npm install | Out-Null
171173

172174
# Use the mutated configuration file when calling cspell
173-
$command = "npx --no-install cspell $JobType --config $CSpellConfigPath --no-must-find-files --root $SpellCheckRoot --relative"
175+
$command = "npx cspell $JobType --config $CSpellConfigPath --no-must-find-files --root $SpellCheckRoot --relative"
174176
Write-Host $command
175177
$cspellOutput = npx `
176178
--no-install `

0 commit comments

Comments
 (0)