Skip to content

Commit 31d166d

Browse files
committed
Add spell checker for windows
1 parent ad6bc88 commit 31d166d

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

.vscode/tasks.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,9 @@
137137
"options": {
138138
"cwd": "${workspaceFolder}"
139139
},
140+
"windows": {
141+
"command": ".\\scripts\\spell-check.cmd"
142+
},
140143
"group": "none",
141144
"presentation": {
142145
"reveal": "always",

scripts/spell-check.cmd

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
@ECHO OFF
2+
3+
codespell --version
4+
IF %ERRORLEVEL% NEQ 0 (
5+
ECHO Installing codespell
6+
pip install codespell || pip3 install codespell
7+
) else (
8+
ECHO Codespell already installed
9+
)
10+
cls
11+
codespell -I scripts/resources/spell-check-ignore-list.txt --skip="*.svg,*.dxf" content
12+
ECHO Spell-check finished

0 commit comments

Comments
 (0)