[libvirt PATCH v2 0/3] ci: Check spelling

Tim Wiederhake posted 3 patches 2 weeks, 3 days ago
Test syntax-check failed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/20220110154127.32620-1-twiederh@redhat.com
.gitlab-ci.yml                    |  12 +++
scripts/check-spelling.py         | 119 ++++++++++++++++++++++++++++++
src/qemu/qemu_cgroup.c            |   2 +-
tests/qemucapabilitiesnumbering.c |   2 +-
tests/qemucapabilitiestest.c      |   4 +-
5 files changed, 135 insertions(+), 4 deletions(-)
create mode 100755 scripts/check-spelling.py

[libvirt PATCH v2 0/3] ci: Check spelling

Posted by Tim Wiederhake 2 weeks, 3 days ago
This is a wrapper for codespell [1], a spell checker for source code.
Codespell does not compare words to a dictionary, but rather works by
checking words against a list of common typos, making it produce fewer
false positives than other solutions.

The script in this patch works around the lack of per-directory ignore
lists and some oddities regarding capitalization in ignore lists.

[1] (https://github.com/codespell-project/codespell/)

V1: https://listman.redhat.com/archives/libvir-list/2021-October/msg00015.html
The wrapper script changed since it was Reviewed-by: Ján, hence I did not mark
patch #2 as already reviewed.

Regards,
Tim

Tim Wiederhake (3):
  scripts: Check spelling
  ci: Add spell checking
  Fix some typos

 .gitlab-ci.yml                    |  12 +++
 scripts/check-spelling.py         | 119 ++++++++++++++++++++++++++++++
 src/qemu/qemu_cgroup.c            |   2 +-
 tests/qemucapabilitiesnumbering.c |   2 +-
 tests/qemucapabilitiestest.c      |   4 +-
 5 files changed, 135 insertions(+), 4 deletions(-)
 create mode 100755 scripts/check-spelling.py

-- 
2.31.1