mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-12-04 03:12:19 +08:00
fix: make file verify spelling
This commit is contained in:
parent
e0e6243b06
commit
dcb5f62427
@ -244,7 +244,7 @@ go.imports: tools.verify.goimports
|
|||||||
|
|
||||||
## go.verify: execute all verity scripts.
|
## go.verify: execute all verity scripts.
|
||||||
.PHONY: go.verify
|
.PHONY: go.verify
|
||||||
go.verify:
|
go.verify: tools.verify.misspell
|
||||||
@echo "Starting verification..."
|
@echo "Starting verification..."
|
||||||
@scripts_list=$$(find $(ROOT_DIR)/scripts -type f -name 'verify-*' | sort); \
|
@scripts_list=$$(find $(ROOT_DIR)/scripts -type f -name 'verify-*' | sort); \
|
||||||
for script in $$scripts_list; do \
|
for script in $$scripts_list; do \
|
||||||
|
|||||||
@ -217,6 +217,11 @@ install.depth:
|
|||||||
install.go-callvis:
|
install.go-callvis:
|
||||||
@$(GO) install github.com/ofabry/go-callvis@latest
|
@$(GO) install github.com/ofabry/go-callvis@latest
|
||||||
|
|
||||||
|
## install.misspell
|
||||||
|
.PHONY: install.misspell
|
||||||
|
install.misspell:
|
||||||
|
@$(GO) install github.com/client9/misspell/cmd/misspell@latest
|
||||||
|
|
||||||
## install.gothanks: Install gothanks, used to thank go dependencies
|
## install.gothanks: Install gothanks, used to thank go dependencies
|
||||||
.PHONY: install.gothanks
|
.PHONY: install.gothanks
|
||||||
install.gothanks:
|
install.gothanks:
|
||||||
|
|||||||
@ -25,17 +25,8 @@ OPENIM_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
|
|||||||
export OPENIM_ROOT
|
export OPENIM_ROOT
|
||||||
source "${OPENIM_ROOT}/scripts/lib/init.sh"
|
source "${OPENIM_ROOT}/scripts/lib/init.sh"
|
||||||
|
|
||||||
# Ensure that we find the binaries we build before anything else.
|
|
||||||
export GOBIN="${KUBE_OUTPUT_BINPATH}"
|
|
||||||
PATH="${GOBIN}:${PATH}"
|
|
||||||
|
|
||||||
# Install tools we need
|
|
||||||
pushd "${OPENIM_ROOT}/tools" >/dev/null
|
|
||||||
GO111MODULE=on go install github.com/client9/misspell/cmd/misspell
|
|
||||||
popd >/dev/null
|
|
||||||
|
|
||||||
# Spell checking
|
# Spell checking
|
||||||
# All the skipping files are defined in scripts/.spelling_failures
|
# All the skipping files are defined in scripts/.spelling_failures
|
||||||
skipping_file="${OPENIM_ROOT}/scripts/.spelling_failures"
|
skipping_file="${OPENIM_ROOT}/scripts/.spelling_failures"
|
||||||
failing_packages=$(sed "s| | -e |g" "${skipping_file}")
|
failing_packages=$(sed "s| | -e |g" "${skipping_file}")
|
||||||
git ls-files | grep -v -e "${failing_packages}" | xargs misspell -i "Creater,creater,ect" -error -o stderr
|
git ls-files | grep -v -e "${failing_packages}" | xargs "$OPENIM_ROOT/_output/tools/misspell" -i "Creater,creater,ect" -error -o stderr
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user