123456789101112131415161718192021222324252627282930313233 |
- #!/usr/bin/env pwsh
- <
- .SYNOPSIS
- Checks spelling of code and docs.
- $scriptDir = Split-Path $PSCommandPath -Parent
- $projectDir = (Get-Item $scriptDir).Parent
- Push-Location $projectDir
- $ExitCode = 0
- codespell coderedcms docs
- $ExitCode = $LastExitCode
- if ($ExitCode -eq 0) {
- Write-Host "Spelling looks good!"
- }
- else {
-
- Write-Host -ForegroundColor Red `
- "##vso[task.LogIssue type=error;]Spelling errors! 👩🏫"
- }
- Pop-Location
- exit $ExitCode
|