cspell issues in cpp branch , needs updated node, and cspell and npx need to be installed for cspell to run (#4086)
Co-authored-by: George Arama <50641385+gearama@users.noreply.github.com>
This commit is contained in:
parent
f4bea88a51
commit
13100c5985
@ -18,8 +18,8 @@ steps:
|
||||
- task: NodeTool@0
|
||||
condition: and(succeededOrFailed(), ne(variables['Skip.SpellCheck'],'true'))
|
||||
inputs:
|
||||
versionSpec: 16.x
|
||||
displayName: Use Node.js 16.x
|
||||
versionSpec: 18.x
|
||||
displayName: Use Node.js 18.x
|
||||
|
||||
- task: PowerShell@2
|
||||
displayName: Check spelling (cspell)
|
||||
|
||||
@ -167,10 +167,12 @@ $originalLocation = Get-Location
|
||||
|
||||
try {
|
||||
Set-Location $PackageInstallCache
|
||||
npm install npx | Out-Null
|
||||
npm install cspell | Out-Null
|
||||
npm install | Out-Null
|
||||
|
||||
# Use the mutated configuration file when calling cspell
|
||||
$command = "npx --no-install cspell $JobType --config $CSpellConfigPath --no-must-find-files --root $SpellCheckRoot --relative"
|
||||
$command = "npx cspell $JobType --config $CSpellConfigPath --no-must-find-files --root $SpellCheckRoot --relative"
|
||||
Write-Host $command
|
||||
$cspellOutput = npx `
|
||||
--no-install `
|
||||
|
||||
Loading…
Reference in New Issue
Block a user