-
-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add streetsidesoftware.code-spell-checker extension
- Loading branch information
Showing
3 changed files
with
36 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
.vscode/settings.json | ||
spelling_errors.json |
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,17 @@ | ||
{ | ||
"version": "0.2", | ||
"language": "en", | ||
"allowCompoundWords": true, | ||
"enableFiletypes": [], | ||
"ignorePaths": [ | ||
"cspell.json" | ||
], | ||
// FlagWords allows you to specify a list of words that will always be considered incorrect. Useful for words that are commonly misspelled. | ||
"flagWords": [], | ||
// Ignore allows you the specify a list of words you want to ignore. | ||
"ignoreWords": [], | ||
// The words list allows you to add words that will be considered correct and will be used as suggestions. | ||
// Feel free to add newly introduced words to the list | ||
"words": [ | ||
] | ||
} |
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,18 @@ | ||
#!/bin/bash | ||
|
||
# When editing this file, please check whether the changes also need to be applied to the LinuxGSM and LinuxGSM-Dev-Docs repositories. | ||
|
||
# Temporary file for cspell output | ||
tempFile=$(mktemp) | ||
|
||
# Run cspell on all files and capture the output | ||
cspell "**" > "$tempFile" 2>&1 | ||
|
||
# Process the output to extract unique words and save them to spelling_errors.json | ||
# This assumes that the spelling errors are identifiable in a specific format from cspell output | ||
grep "Unknown word" "$tempFile" | grep -oP "\(\K[^\)]+" | sort -u | jq -R . | jq -s . > spelling_errors.json | ||
|
||
# Cleanup | ||
rm "$tempFile" | ||
|
||
echo "Spelling errors have been saved to spelling_errors.json" |