Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,16 @@ tasks:
vars:
POETRY_GROUPS: dev
cmds:
- poetry run codespell
- |
if
! poetry run \
codespell
then
echo
echo "If this was a false positive, add the word to the ignore list. See:"
echo "https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/spell-check-task.md#false-positives"
exit 1
fi
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-files-task/Taskfile.yml
general:check-symlinks:
Expand Down
11 changes: 10 additions & 1 deletion workflow-templates/assets/spell-check-task/Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,16 @@ tasks:
vars:
POETRY_GROUPS: dev
cmds:
- poetry run codespell
- |
if
! poetry run \
codespell
then
echo
echo "If this was a false positive, add the word to the ignore list:"
echo "https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/spell-check-task.md#false-positives"
exit 1
fi
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/spell-check-task/Taskfile.yml
general:correct-spelling:
Expand Down
2 changes: 2 additions & 0 deletions workflow-templates/spell-check-task.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ Commit the resulting changes to the `pyproject.toml` and `poetry.lock` files.

If the repository contains generated or vendored files, they can be excluded from the check by adding them to the `skip` field in the `.codespellrc` configuration file.

#### False positives

In the event of a false positive, the problematic word should be added, in all lowercase, to the `ignore-words-list` field of `./.codespellrc`. Regardless of the case of the word in the false positive, it must be in all lowercase in the ignore list. The ignore list is comma-separated with no spaces.

Reference:
Expand Down
Loading