Skip to content

Commit 96c633d

Browse files
authored
Merge pull request #200 from per1234/spellcheck-instructions
Print instructions for false positive resolution when spell check fails
2 parents 37f7eb1 + 515175f commit 96c633d

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

Taskfile.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,15 @@ tasks:
167167
POETRY_GROUPS: dev
168168
cmds:
169169
- |
170-
poetry run \
171-
codespell
170+
if ! {
171+
poetry run \
172+
codespell
173+
}; then
174+
echo
175+
echo "If this was a false positive, add the word to the ignore list:"
176+
echo "https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/spell-check-task.md#false-positives"
177+
exit 1
178+
fi
172179
173180
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/spell-check-task/Taskfile.yml
174181
general:correct-spelling:

0 commit comments

Comments
 (0)