From b52d745d0a9df1b3facc7471efe6a3c1f2ab2aaa Mon Sep 17 00:00:00 2001 From: silverwind Date: Fri, 27 Feb 2026 00:06:31 +0100 Subject: [PATCH] Filter out untracked files from spellchecking (#36756) The integration tests leave some log files around and they were triggering the spellchecker: ``` $ make lint-spell tests/integration/gitea-integration-sqlite/log/gitea.log:316:69: "addres" is a misspelling of "address" tests/integration/gitea-integration-sqlite/log/gitea.log:794:69: "addres" is a misspelling of "address" tests/integration/gitea-integration-sqlite/log/gitea.log:1248:69: "addres" is a misspelling of "address" tests/integration/gitea-integration-sqlite/log/gitea.log:2070:69: "addres" is a misspelling of "address" ``` With this change, untracked and ignored files will no longer be spellchecked. --------- Co-authored-by: Claude Opus 4.6 --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index d8fce11ee2..280aa853b8 100644 --- a/Makefile +++ b/Makefile @@ -322,11 +322,11 @@ lint-md-fix: node_modules ## lint markdown files and fix issues .PHONY: lint-spell lint-spell: ## lint spelling - @go run $(MISSPELL_PACKAGE) -dict assets/misspellings.csv -error $(SPELLCHECK_FILES) + @git ls-files $(SPELLCHECK_FILES) | xargs go run $(MISSPELL_PACKAGE) -dict assets/misspellings.csv -error .PHONY: lint-spell-fix lint-spell-fix: ## lint spelling and fix issues - @go run $(MISSPELL_PACKAGE) -dict assets/misspellings.csv -w $(SPELLCHECK_FILES) + @git ls-files $(SPELLCHECK_FILES) | xargs go run $(MISSPELL_PACKAGE) -dict assets/misspellings.csv -w .PHONY: lint-go lint-go: ## lint go files