Skip to content

Commit 57d3e42

Browse files
marqdevxsebromero
andauthored
Scripts: Spell-check for windows (#501)
* Add spell checker for windows * Check pip * Update scripts/spell-check.cmd Co-authored-by: Sebastian Romero <s.romero@arduino.cc> Co-authored-by: Sebastian Romero <s.romero@arduino.cc>
1 parent 6db4f63 commit 57d3e42

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

.vscode/tasks.json

+3
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

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
@ECHO OFF
2+
3+
pip --version || pip3 --version
4+
IF %ERRORLEVEL% NEQ 0 (
5+
cls
6+
ECHO Please install Python from https://www.python.org/downloads/ and Pip following https://pip.pypa.io/en/stable/installation/
7+
EXIT /B
8+
)
9+
10+
cls
11+
codespell --version
12+
IF %ERRORLEVEL% NEQ 0 (
13+
ECHO Installing codespell
14+
pip install codespell || pip3 install codespell
15+
) else (
16+
ECHO Codespell already installed
17+
)
18+
cls
19+
codespell -I scripts/resources/spell-check-ignore-list.txt --skip="*.svg,*.dxf" content

0 commit comments

Comments
 (0)