Skip to content

Commit

Permalink
Set new baseline for cspell (#32171)
Browse files Browse the repository at this point in the history
* Set cspell baseilne

* Update documentation/cspell.yaml to remove compound words

* pwsh
  • Loading branch information
danieljurek authored Jan 16, 2025
1 parent fb677c5 commit dee7146
Show file tree
Hide file tree
Showing 246 changed files with 6,054 additions and 1,897 deletions.
6 changes: 6 additions & 0 deletions .github/cspell.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: '0.2'
import:
- ../cspell.yaml
words:
- azsdk
- pwsh
30 changes: 30 additions & 0 deletions .github/workflows/spelling-all.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: SpellCheck - All

on:
push:
branches:
- main
- RPSaaSMaster

schedule:
# Run every day at 12:06 UTC
- cron: "6 12 * * *"
workflow_dispatch:

jobs:
spellcheck:
name: SpellCheck
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 1

- name: Run spelling check
run: |
./eng/common/spelling/Invoke-Cspell.ps1 `
-ScanGlobs 'specification/**' `
-CSpellConfigPath './cspell.json'
shell: pwsh
2 changes: 1 addition & 1 deletion .github/workflows/spelling.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Run spelling check
run: |
./eng/common/scripts/check-spelling-in-changed-files.ps1 `
-CSpellConfigPath 'cSpell.json' `
-CSpellConfigPath 'cspell.json' `
-SourceCommittish HEAD `
-TargetCommittish HEAD^ `
-ExitWithError
Expand Down
Loading

0 comments on commit dee7146

Please sign in to comment.