-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Spelling pass, add a sort script for the wordlist
- Check spelling in docs/ and devlog/, add allowed words as needed and correct mispellings, change to American english - Add a small bash script that will tidy up the wordlist
- Loading branch information
1 parent
42b0903
commit aadf704
Showing
6 changed files
with
37 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
|
||
# Checks that .cspell-allowed-words.txt exists, then: | ||
# 1. Converts all text to lowercase | ||
# 2. Sorts the file | ||
# 3. Removes duplicate entries | ||
|
||
TARGET='.cspell-allowed-words.txt' | ||
|
||
if [ ! -f $TARGET ]; then | ||
echo "File $TARGET not found!" | ||
exit 1 | ||
|
||
fi | ||
|
||
awk -i inplace '{print tolower($0)}' $TARGET | ||
sort -o $TARGET $TARGET | ||
awk -i inplace '!seen[$0]++' $TARGET |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters