mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
Update lint make target to match CI (#2025)
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
This commit is contained in:
parent
00e17ff51c
commit
cf30f69148
5
Makefile
5
Makefile
@ -47,8 +47,7 @@ protobuf:
|
||||
# Golangci-lint
|
||||
.PHONY: golangci-lint
|
||||
golangci-lint:
|
||||
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.58.1
|
||||
golangci-lint run --timeout 60m ./...
|
||||
go run github.com/golangci/golangci-lint/cmd/golangci-lint@v1.58.2 run --timeout 60m --new-from-rev dd5f9afe8948186c76fe6b8b1193d7a8f46919d8 ./...
|
||||
|
||||
# Run license check
|
||||
.PHONY: license-check
|
||||
@ -234,4 +233,4 @@ help: ## Prints this help message.
|
||||
@awk 'BEGIN {FS = ":.*$$"; OFS = ""} \
|
||||
/^# .*$$/ { doc=$$0; sub(/^# /, "", doc); next } \
|
||||
/^[a-zA-Z0-9_-]+:.*## .*$$/ { target=$$1; sub(/:$$/, "", target); desc=$$0; sub(/^[^#]*## /, "", desc); if (!seen[target]++) { printf "\033[1m%-30s\033[0m %s\n", target, desc } } \
|
||||
/^[a-zA-Z0-9_-]+:.*$$/ { target=$$1; sub(/:$$/, "", target); if (!seen[target]++) { if (doc != "") { printf "\033[1m%-30s\033[0m %s\n", target, doc; doc="" } else { printf "\033[1m%-30s\033[0m\n", target } } }' $(MAKEFILE_LIST)
|
||||
/^[a-zA-Z0-9_-]+:.*$$/ { target=$$1; sub(/:$$/, "", target); if (!seen[target]++) { if (doc != "") { printf "\033[1m%-30s\033[0m %s\n", target, doc; doc="" } else { printf "\033[1m%-30s\033[0m\n", target } } }' $(MAKEFILE_LIST)
|
||||
|
Loading…
Reference in New Issue
Block a user