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

Tim Wiederhake posted 3 patches 2 years, 3 months ago
Test syntax-check failed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/20220121094150.15878-1-twiederh@redhat.com
.codespellrc              |   2 +
.gitlab-ci.yml            |  13 +++-
build-aux/meson.build     |  16 +++++
meson.build               |   1 +
meson_options.txt         |   1 +
scripts/check-spelling.py | 135 ++++++++++++++++++++++++++++++++++++++
scripts/meson.build       |   1 +
7 files changed, 168 insertions(+), 1 deletion(-)
create mode 100644 .codespellrc
create mode 100755 scripts/check-spelling.py
[libvirt PATCH v3 0/3] ci: Check spelling
Posted by Tim Wiederhake 2 years, 3 months 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
V2: https://listman.redhat.com/archives/libvir-list/2022-January/msg00382.html

Changes since V2:
* Added meson integration
* Add option to ignore files untracked by git
* Pre-filter .po files to reduce run time

Regards,
Tim

Tim Wiederhake (3):
  scripts: Check spelling
  meson: Add spell checking
  ci: Add spell checking

 .codespellrc              |   2 +
 .gitlab-ci.yml            |  13 +++-
 build-aux/meson.build     |  16 +++++
 meson.build               |   1 +
 meson_options.txt         |   1 +
 scripts/check-spelling.py | 135 ++++++++++++++++++++++++++++++++++++++
 scripts/meson.build       |   1 +
 7 files changed, 168 insertions(+), 1 deletion(-)
 create mode 100644 .codespellrc
 create mode 100755 scripts/check-spelling.py

-- 
2.31.1