Skip to content

Commit

Permalink
feat: crosschain pending switch parameter (#604)
Browse files Browse the repository at this point in the history
Co-authored-by: fx0x55 <80245546+fx0x55@users.noreply.github.com>
  • Loading branch information
zakir-code and fx0x55 authored Jul 30, 2024
1 parent 37097fe commit c6da633
Show file tree
Hide file tree
Showing 14 changed files with 872 additions and 729 deletions.
15 changes: 6 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@ lint: lint-install
echo "--> Running linter"
@golangci-lint run --build-tags=$(GO_BUILD) --out-format=tab
@if [ $$(find . -name '*.go' -type f | xargs grep 'nolint\|#nosec' | wc -l) -ne 44 ]; then \
echo "--> increase or decrease nolint, please recheck them"; \
echo "--> list nolint: \`find . -name '*.go' -type f | xargs grep 'nolint\|#nosec'\`"; exit 1;\
echo "\033[91m--> increase or decrease nolint, please recheck them\033[0m"; \
echo "\033[91m--> list nolint: \`find . -name '*.go' -type f | xargs grep 'nolint\|#nosec'\`\033[0m"; exit 1;\
fi

format: lint-install
Expand Down Expand Up @@ -224,13 +224,10 @@ $(STATIK):
@go install github.com/rakyll/statik@latest

update-swagger-docs: statik
$(GOPATH)/bin/statik -src=docs/swagger-ui -dest=docs -f -m
@if [ -n "$(git status --porcelain)" ]; then \
echo "\033[91mSwagger docs are out of sync!!!\033[0m";\
else \
echo "\033[92mSwagger docs are in sync\033[0m";\
fi
perl -pi -e "print \"host: fx-rest.functionx.io\nschemes:\n - https\n\" if $$.==6 " ./docs/swagger-ui/swagger.yaml
@$(GOPATH)/bin/statik -src=docs/swagger-ui -dest=docs -f -m
@if [ "$(shell sed -n '7p' docs/swagger-ui/swagger.yaml)" != "schemes:" ]; then \
perl -pi -e "print \"host: fx-rest.functionx.io\nschemes:\n - https\n\" if $$.==6 " ./docs/swagger-ui/swagger.yaml; \
fi

.PHONY: statik update-swagger-docs

Expand Down
Loading

0 comments on commit c6da633

Please sign in to comment.