12345678910111213141516171819202122232425262728293031323334 |
- #!/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 --skip="migrations,vendor,_build,*.css.map,*.jpg,*.png,*.pyc" `
- 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
|