1
0
mirror of https://git.savannah.gnu.org/git/gnulib.git synced 2026-10-24 00:48:56 +03:00

maintainer-makefile: Check spelling using 'codespell'.

* top/maint.mk (sc_codespell): Add.
This commit is contained in:
Simon Josefsson
2025-03-27 19:45:30 +01:00
parent 18ccaf8743
commit fe06b2bec5
2 changed files with 20 additions and 0 deletions

View File

@@ -1,3 +1,8 @@
2025-03-27 Simon Josefsson <simon@josefsson.org>
maintainer-makefile: Check spelling using 'codespell'.
* top/maint.mk (sc_codespell): Add.
2025-03-24 Paul Eggert <eggert@cs.ucla.edu>
same-inode: don't assume memory objects have ino

View File

@@ -1815,6 +1815,21 @@ sc_indent:
exit 1; } || :; \
fi
# Check code spelling.
# Example 'cfg.mk' settings for inspiration:
# codespell_ignore_words_list = foo
# exclude_file_name_regexp--sc_codespell = ^po/.*.po|doc/.*.pdf$$
# codespell_extra_args = --summary --count
# codespell_args = --ignore-words=doc/my-codespell-ignores.txt
codespell_args ?= --ignore-words-list $(codespell_ignore_words_list) \
$(codespell_extra_args)
sc_codespell:
@if ! command -v codespell > /dev/null; then \
echo 1>&2 '$(ME): sc_codespell: codespell is missing'; \
else \
codespell $(codespell_args) $$($(VC_LIST_EXCEPT)); \
fi
# If you want to set UPDATE_COPYRIGHT_* environment variables,
# put the assignments in this variable.
update-copyright-env ?=