Skip to content

Commit

Permalink
chore: use golangci-lint to format the code
Browse files Browse the repository at this point in the history
  • Loading branch information
rach-id committed Oct 9, 2024
1 parent f2c00da commit ac21986
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,8 @@ clean_certs:
###############################################################################

format:
find . -name '*.go' -type f -not -path "*.git*" -not -name '*.pb.go' -not -name '*pb_test.go' | xargs gofmt -w -s
find . -name '*.go' -type f -not -path "*.git*" -not -name '*.pb.go' -not -name '*pb_test.go' | xargs goimports -w -local github.com/cometbft/cometbft
@echo "--> Running golangci-lint --fix"
@golangci-lint run --fix
.PHONY: format

lint:
Expand Down

0 comments on commit ac21986

Please sign in to comment.