Skip to content

Commit

Permalink
feat: Add action to sort cspell-words dictionary on save (#42)
Browse files Browse the repository at this point in the history
Tiny little action to save a sorted version of cspell-words.txt on save

Co-authored-by: David Apirian <[email protected]>
  • Loading branch information
EliSchleifer and dapirian authored Nov 1, 2022
1 parent 4183065 commit 6e768c8
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .trunk/cspell-words.txt
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
cachedir
codespell
commitlint
eamodio
elif
endmacro
indentless
kwargs
markdownlint
nofail
proto
protobuf
pyyaml
runtimes
sarif
scrollback
SCRIPTDIR
scrollback
sqlfluff
sqlfmt
trivy
trunkio
elif
endmacro
pyyaml
proto
protobuf
runtimes
indentless
kwargs
vuln
trivy
cachedir
sqlfmt
8 changes: 8 additions & 0 deletions .trunk/trunk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,15 @@ actions:
- actions/**
- lint/**
run: tools/toggle-local/toggle notify ${workspace}
- id: sort-dictionary
display_name: sort `cspell-words`
description: sort cspell dictionary
run: bash -c "sort -u -f -o ${workspace}/.trunk/cspell-words.txt ${workspace}/.trunk/cspell-words.txt"
triggers:
- files:
- .trunk/cspell-words.txt
enabled:
- sort-dictionary
- toggle-local
- trunk-cache-prune
- trunk-upgrade-available
Expand Down

0 comments on commit 6e768c8

Please sign in to comment.