-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
hard-nett
committed
Nov 21, 2024
1 parent
587f6f4
commit c71bb63
Showing
4 changed files
with
17 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,27 +12,24 @@ lint-help: | |
@echo "" | ||
@echo "Available Commands:" | ||
@echo " format-tools Run linters with auto-fix" | ||
@echo " markdown Run markdown linter with auto-fix" | ||
@echo " mdlint Run markdown linter" | ||
@echo " lint-markdown Run markdown linter with auto-fix" | ||
@echo " lint-run Run golangci-lint" | ||
@echo "" | ||
# lint: lint-help | ||
lint: lint-help | ||
|
||
lint-format-tools: | ||
go install mvdan.cc/[email protected] | ||
go install github.com/client9/misspell/cmd/[email protected] | ||
go install golang.org/x/tools/cmd/goimports@latest | ||
|
||
lint: lint-format-tools | ||
lint-run: lint-format-tools | ||
golangci-lint run --tests=false | ||
find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" -not -path "*_test.go" | xargs gofumpt -d | ||
format: format-tools | ||
find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" -not -path "./client/lcd/statik/statik.go" | xargs gofumpt -w -s | ||
find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" -not -path "./client/lcd/statik/statik.go" | xargs gofumpt -w | ||
find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" -not -path "./client/lcd/statik/statik.go" | xargs goimports -w -local github.com/terpnetwork/terp-core | ||
|
||
lint-mdlint: | ||
@echo "--> Running markdown linter" | ||
@docker run -v $(PWD):/workdir ghcr.io/igorshubovych/markdownlint-cli:latest "**/*.md" | ||
|
||
lint-markdown: | ||
@docker run -v $(PWD):/workdir ghcr.io/igorshubovych/markdownlint-cli:latest "**/*.md" --fix | ||
@echo "--> Running markdown linter" | ||
@docker run -v $(PWD):/workdir ghcr.io/igorshubovych/markdownlint-cli:latest "**/*.md" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters