From ee912e176a2133fb74ce477a43a2650dee3e6354 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Papp?= Date: Mon, 8 Jun 2026 17:14:38 +0200 Subject: [PATCH] ci: skip translated locales in codespell with version-stable globs The recursive ** skip pattern did not take effect with the codespell shipped by the action, so de/common.json still tripped on real German words. Use single-star globs (matched per path segment across versions) and skip every translated locale, keeping only en as source of truth. --- .github/workflows/golangci-lint.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index e13bcf3a2..9c299dfc6 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -24,9 +24,13 @@ jobs: ignore_words_list: erro,clienta,hastable,iif,groupd,testin,groupe,cros,ans,deriver,te,userA,ede,additionals # Non-English UI translations trip codespell on real foreign words # (de: "Sie", "oder", "ist"). Only en/common.json is the source of - # truth that should be spell-checked. Add each new locale dir here - # when a language is added under client/ui/i18n/locales/. - skip: go.mod,go.sum,**/proxy/web/**,**/pnpm-lock.yaml,**/package-lock.json,client/ui/i18n/locales/de/**,client/ui/i18n/locales/hu/** + # truth that should be spell-checked. List each translated locale + # dir below and add new ones as languages are added under + # client/ui/i18n/locales/. Single-star globs are matched per path + # segment by codespell and behave the same across versions; the + # recursive "**" form did not take effect with the codespell shipped + # by this action. + skip: go.mod,go.sum,*/proxy/web/*,*pnpm-lock.yaml,*package-lock.json,*/locales/de/*,*/locales/hu/* golangci: strategy: fail-fast: false