From 344028f73ea820e575d2a6c3f33a0de844d63998 Mon Sep 17 00:00:00 2001 From: "Jonathan Gonzalez V." Date: Tue, 6 May 2025 07:07:08 +0200 Subject: [PATCH] chore: add word ordered task to CI Added a word list ordered to the Taskfile to run as a dependency of the `spellcheck` task to keep the .wordlist.txt file in order Closes #310 Signed-off-by: Jonathan Gonzalez V. --- Taskfile.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Taskfile.yml b/Taskfile.yml index ba31932..5315ffe 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -30,8 +30,16 @@ tasks: sources: - ./**/*.go + wordlist-ordered: + desc: Order the word list file + cmds: + - LANG=C LC_ALL=C sort .wordlist.txt > .wordlist.txt.new + - mv -f .wordlist.txt.new .wordlist.txt + spellcheck: desc: Run spellcheck + deps: + - wordlist-ordered env: # renovate: datasource=git-refs depName=spellcheck lookupName=https://github.com/cloudnative-pg/daggerverse currentValue=main DAGGER_SPELLCHECK_SHA: ba865842d907910c469d016c3ecfa009e4c66915