Skip to content

Commit

Permalink
build: add gofmt to format make target (#254)
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Gianelloni <[email protected]>
  • Loading branch information
wolf31o2 authored Dec 20, 2024
1 parent 32cfd58 commit 5235f2c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,16 @@ all: format build
# Alias for building program binary
build: $(BINARIES)

tidy:
mod-tidy:
# Needed to fetch new dependencies and add them to go.mod
go mod tidy

clean:
rm -f $(BINARIES)

format: tidy
format: mod-tidy
go fmt ./...
gofmt -s -w $(GO_FILES)

golines:
golines -w --ignore-generated --chain-split-dots --max-len=80 --reformat-tags .
Expand Down

0 comments on commit 5235f2c

Please sign in to comment.