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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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





[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux