From 7bee42ef24b49b26f9ae50a62ea55e3699ae484f Mon Sep 17 00:00:00 2001 From: marqdevx Date: Tue, 23 Aug 2022 10:53:27 +0200 Subject: [PATCH 1/3] Add spell checker for windows --- .vscode/tasks.json | 3 +++ scripts/spell-check.cmd | 12 ++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 scripts/spell-check.cmd 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..60637d3f42 --- /dev/null +++ b/scripts/spell-check.cmd @@ -0,0 +1,12 @@ +@ECHO OFF + +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 +ECHO Spell-check finished \ No newline at end of file From c8c0831bd2791d8e4c14a12c606ef9b01e6724be Mon Sep 17 00:00:00 2001 From: marqdevx Date: Tue, 23 Aug 2022 10:57:09 +0200 Subject: [PATCH 2/3] Check pip --- scripts/spell-check.cmd | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/spell-check.cmd b/scripts/spell-check.cmd index 60637d3f42..1173e51fc5 100644 --- a/scripts/spell-check.cmd +++ b/scripts/spell-check.cmd @@ -1,5 +1,13 @@ @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 From fb5ad6b67b95c16e36a194e3ef74fd0e49c4884a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20Marqu=C3=ADnez=20Ferr=C3=A1ndiz?= Date: Tue, 23 Aug 2022 12:08:57 +0200 Subject: [PATCH 3/3] Update scripts/spell-check.cmd Co-authored-by: Sebastian Romero --- scripts/spell-check.cmd | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/spell-check.cmd b/scripts/spell-check.cmd index 1173e51fc5..d3c7858ccd 100644 --- a/scripts/spell-check.cmd +++ b/scripts/spell-check.cmd @@ -16,5 +16,4 @@ IF %ERRORLEVEL% NEQ 0 ( ECHO Codespell already installed ) cls -codespell -I scripts/resources/spell-check-ignore-list.txt --skip="*.svg,*.dxf" content -ECHO Spell-check finished \ No newline at end of file +codespell -I scripts/resources/spell-check-ignore-list.txt --skip="*.svg,*.dxf" content \ No newline at end of file