aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNRK <nrk@disroot.org>2022-07-27 08:57:50 +0200
committerNRK <nrk@disroot.org>2022-07-27 08:57:50 +0200
commit1263f23970af5fa68cdd9644469b14832d125a65 (patch)
tree581eab9d37082f18fef76b49cd5fd5fb465f6cab
parentdd0b3cb163c7b64ee630b2e71d6c96ce5918f1e0 (diff)
downloadnsxiv-1263f23970af5fa68cdd9644469b14832d125a65.tar.zst
[ci]: use `git ls-files` for spellchecking (#345)
excluding the `.png` icons. this also fixes the wrong `.patch` and `.diff` extensions checks. no clue why we were trying to find `.patch` and `.diff` to begin with. i think i probably copy pasted the command i tested on nsxiv-extra repo or somewhere else without changing the extensions to `.c` and `.h`. Reviewed-on: https://codeberg.org/nsxiv/nsxiv/pulls/345
-rw-r--r--.woodpecker/spell.yml6
1 files changed, 2 insertions, 4 deletions
diff --git a/.woodpecker/spell.yml b/.woodpecker/spell.yml
index 2c080ac..a184092 100644
--- a/.woodpecker/spell.yml
+++ b/.woodpecker/spell.yml
@@ -5,7 +5,5 @@ pipeline:
spell-check:
image: alpine:edge
commands: |
- apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing py3-codespell >/dev/null
- find . \( -name '*.patch' -o -name '*.diff' -o -name '*.md' \) -print | \
- xargs -I{} codespell {}
- codespell nsxiv.1 config.mk Makefile
+ apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing py3-codespell git >/dev/null
+ git ls-files | sed '/\.png$/d' | xargs codespell