diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 7ce8456131..59065fbc01 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -137,6 +137,9 @@ "options": { "cwd": "${workspaceFolder}" }, + "windows": { + "command": ".\\scripts\\spell-check.cmd" + }, "group": "none", "presentation": { "reveal": "always", diff --git a/scripts/spell-check.cmd b/scripts/spell-check.cmd new file mode 100644 index 0000000000..d3c7858ccd --- /dev/null +++ b/scripts/spell-check.cmd @@ -0,0 +1,19 @@ +@ECHO OFF + +pip --version || pip3 --version +IF %ERRORLEVEL% NEQ 0 ( + cls + ECHO Please install Python from https://www.python.org/downloads/ and Pip following https://pip.pypa.io/en/stable/installation/ + EXIT /B +) + +cls +codespell --version +IF %ERRORLEVEL% NEQ 0 ( + ECHO Installing codespell + pip install codespell || pip3 install codespell +) else ( + ECHO Codespell already installed +) +cls +codespell -I scripts/resources/spell-check-ignore-list.txt --skip="*.svg,*.dxf" content \ No newline at end of file