Skip to content

Commit

Permalink
suppress spell check
Browse files Browse the repository at this point in the history
  • Loading branch information
sima-zhu authored and azure-sdk committed Mar 17, 2022
1 parent 775d381 commit 31b2007
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ steps:
if ((!"$(System.PullRequest.SourceBranch)".StartsWith("sync-eng/common")) -and $targetBranch -eq "$(DefaultBranch)")
{
$filesInCommonDir = & "eng/common/scripts/get-changedfiles.ps1" -TargetCommittish $targetBranch -DiffPath 'eng/common/*'
# cSpell:ignore LASTEXITCODE
if (($LASTEXITCODE -eq 0) -and ($filesInCommonDir.Count -gt 0))
{
Write-Host "##vso[task.LogIssue type=error;]Changes to files under 'eng/common' directory should not be made in this Repo`n${filesInCommonDir}"
Expand Down
1 change: 1 addition & 0 deletions eng/common/scripts/Detect-Api-Changes.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Param (
[string] $APIViewUri,
[string] $RepoFullName = "",
[string] $ArtifactName = "packages",
# spell-checker: disable
[string] $TargetBranch = ("origin/${env:SYSTEM_PULLREQUEST_TARGETBRANCH}" -replace "refs/heads/")
)

Expand Down
6 changes: 5 additions & 1 deletion eng/common/scripts/Helpers/git-helpers.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@

# cSpell:ignore Committish
# cSpell:ignore committish
# cSpell:ignore PULLREQUEST
# cSpell:ignore TARGETBRANCH
# cSpell:ignore SOURCEVERSION
function Get-ChangedFiles {
param (
[string]$SourceCommittish= "${env:BUILD_SOURCEVERSION}",
Expand Down
3 changes: 3 additions & 0 deletions eng/common/scripts/check-spelling-in-changed-files.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ Param (

Set-StrictMode -Version 3.0

# cSpell:ignore LASTEXITCODE
# cSpell:ignore errrrrorrrrr
# cSpell:ignore sepleing
function TestSpellChecker() {
Test-Exit0WhenAllFilesExcluded
ResetTest
Expand Down
3 changes: 3 additions & 0 deletions eng/common/scripts/common.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ $EngCommonDir = Join-Path $EngDir "common"
$EngCommonScriptsDir = Join-Path $EngCommonDir "scripts"
$EngScriptsDir = Join-Path $EngDir "scripts"

# cSpell:ignore Apireview
# cSpell:ignore Onboarded

# Import required scripts
. (Join-Path $EngCommonScriptsDir SemVer.ps1)
. (Join-Path $EngCommonScriptsDir ChangeLog-Operations.ps1)
Expand Down
5 changes: 5 additions & 0 deletions eng/common/scripts/get-changedfiles.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@
E.g. 'ad' means filter out the newly added file and deleted file
E.g. '' means no filter on file mode.
#>
# cSpell:ignore Committish
# cSpell:ignore committish
# cSpell:ignore PULLREQUEST
# cSpell:ignore TARGETBRANCH
# cSpell:ignore SOURCEVERSION
[CmdletBinding()]
param (
[string] $SourceCommittish = "${env:BUILD_SOURCEVERSION}",
Expand Down

0 comments on commit 31b2007

Please sign in to comment.