Skip to content

Commit

Permalink
build: add gofmt to format make target
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Gianelloni <wolf31o2@blinklabs.io>
  • Loading branch information
wolf31o2 committed Dec 19, 2024
1 parent 0961bd1 commit 5eda55a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,17 @@ install: build

uninstall:
rm -f $(HOME)/.local/bin/$(BINARIES)

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

clean:
rm -f $(BINARIES)

format:
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 5eda55a

Please sign in to comment.