We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee26b3d commit 6ae165bCopy full SHA for 6ae165b
Makefile
@@ -11,6 +11,7 @@ PKGS := $(PKG_ERR2) $(PKG_ASSERT) $(PKG_TRY) $(PKG_DEBUG) $(PKG_HANDLER) $(PKG_S
11
12
SRCDIRS := $(shell go list -f '{{.Dir}}' $(PKGS))
13
14
+MAX_LINE ?= 80
15
GO ?= go
16
TEST_ARGS ?= -benchmem
17
# -"gcflags '-N -l'" both optimization & inlining disabled
@@ -106,6 +107,12 @@ bench_x:
106
107
vet: | test
108
$(GO) vet $(PKGS)
109
110
+fmt:
111
+ @golines -t 5 -w -m $(MAX_LINE) --ignore-generated .
112
+
113
+dry-fmt:
114
+ @golines -t 5 --dry-run -m $(MAX_LINE) --ignore-generated .
115
116
gofmt:
117
@echo Checking code is gofmted
118
@test -z "$(shell gofmt -s -l -d -e $(SRCDIRS) | tee /dev/stderr)"
0 commit comments