mirror of
https://github.com/go-gitea/gitea.git
synced 2026-03-03 08:45:58 +01:00
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 <noreply@anthropic.com>
This commit is contained in:
parent
f109b97ddd
commit
b52d745d0a
4
Makefile
4
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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user