Files
VictoriaMetrics/codespell/Makefile
2025-06-11 14:21:11 +02:00

25 lines
704 B
Makefile

# These commands must be run from the VictoriaMetrics repository root.
# Builds spellcheck image.
codespell:
@docker build codespell -t codespell
# Runs cspell container commands.
codespell-check: codespell
@-docker run \
--mount type=bind,src="$(PWD)",dst=/vm \
--rm \
codespell \
--ignore-words=/vm/codespell/stopwords \
--skip='*/node_modules/*,*/vmdocs/*,*/vendor/*,*.js,*.pb.go,*.qtpl.go' /vm
# Automatically fixes spelling errors.
codespell-fix: codespell
@-docker run \
--mount type=bind,src="$(PWD)",dst=/vm \
--rm \
codespell \
--write-changes \
--ignore-words=/vm/codespell/stopwords \
--skip='*/node_modules/*,*/vmdocs/*,*/vendor/*,*.js,*.pb.go,*.qtpl.go' /vm