mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2026-05-17 08:36:55 +03:00
25 lines
704 B
Makefile
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
|