diff --git a/eng/pipelines/aggregate-reports.yml b/eng/pipelines/aggregate-reports.yml index 20dfef1641f1c..b705a6465c70f 100644 --- a/eng/pipelines/aggregate-reports.yml +++ b/eng/pipelines/aggregate-reports.yml @@ -35,6 +35,7 @@ jobs: - pwsh: | npx cspell lint ` --config ./.vscode/cspell.json ` + --no-must-find-files ` ./sdk/**/api/*.cs displayName: Check spelling of public API surface # Spelling errors in public api surface are not blockers yet but will diff --git a/eng/scripts/Export-API.ps1 b/eng/scripts/Export-API.ps1 index 688cddf438685..9855ce9428697 100644 --- a/eng/scripts/Export-API.ps1 +++ b/eng/scripts/Export-API.ps1 @@ -20,6 +20,7 @@ if ($SpellCheckPublicApiSurface) { Write-Host "Spell check public API surface" npx cspell lint ` --config "$PSScriptRoot/../../.vscode/cspell.json" ` + --no-must-find-files ` "$PSScriptRoot/../../sdk/$ServiceDirectory/*/api/*.cs" if ($LASTEXITCODE) { Write-Host "##vso[task.LogIssue type=error;]Spelling errors detected. To correct false positives or learn about spell checking see: https://aka.ms/azsdk/engsys/spellcheck"