You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Updates the `GNUmakefile` to:
- Support HCL formatting in `docs/` and `examples/.
- Remove unneeded options.
Signed-off-by: Ryan Johnson <[email protected]>
@go vet $$(go list ./... | grep -v vendor/);if [ $$?-eq 1 ];then \
38
-
echo"";\
39
-
echo"Vet found suspicious constructs. Please check the reported constructs";\
40
-
echo"and fix them if necessary before submitting the code for review.";\
41
-
exit 1;\
42
-
fi
29
+
@go vet $(shell go list ./... | grep -v vendor/)|| { echo"";echo"Vet found suspicious constructs. Please fix them before submitting your code.";exit 1; }
43
30
44
31
fmt:
45
32
gofmt -w -s $(GOFMT_FILES)
46
33
47
34
fmtcheck:
48
-
@sh -c "'$(CURDIR)/scripts/gofmtcheck.sh'"
35
+
@$(CURDIR)/scripts/gofmtcheck.sh
49
36
50
37
test-compile:
51
-
@if [ "$(TEST)"="./..." ];then\
52
-
echo"ERROR: Set TEST to a specific package. For example,";\
53
-
echo" make test-compile TEST=./$(PKG_NAME)";\
54
-
exit 1;\
55
-
fi
38
+
@if [ "$(TEST)"="./..." ];thenecho"ERROR: Set TEST to a specific package. For example,";echo" make test-compile TEST=./$(PKG_NAME)";exit 1;fi
56
39
go test -c $(TEST)$(TESTARGS)
57
40
58
-
lint:
59
-
@echo "==> Checking source code against linters..."
60
-
@golangci-lint --disable errcheck run ./$(PKG_NAME)/...
61
-
62
41
tools:
63
-
GO111MODULE=on go install github.com/client9/misspell/cmd/misspell
64
42
GO111MODULE=on go install github.com/golangci/golangci-lint/cmd/golangci-lint
43
+
GO111MODULE=on go install -mod=mod github.com/katbyte/terrafmt
65
44
66
-
website:
67
-
ifeq (,$(wildcard$(GOPATH)/src/$(WEBSITE_REPO)))
68
-
echo "$(WEBSITE_REPO) not found in your GOPATH (necessary for layouts and assets), get-ting..."
0 commit comments