File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2525 cache : true
2626 - run : make tools
2727 - run : make lint
28- - run : make website -lint
28+ - run : make docs -lint
2929 - run : make build
3030 - run : make test
3131
Original file line number Diff line number Diff line change 11TEST? =$$(go list ./... |grep -v 'vendor' )
2- WEBSITE_REPO =github.com/hashicorp/terraform-website
32PKG_NAME =github
43
54default : build
65
76tools :
7+ go install github.com/golangci/misspell/cmd/misspell@latest
88 go install github.com/golangci/golangci-lint/v2/cmd/
[email protected] 99 go install github.com/hashicorp/terraform-plugin-docs/cmd/
[email protected] 1010
@@ -37,22 +37,10 @@ test-compile:
3737 fi
3838 CGO_ENABLED=0 go test -c $(TEST ) $(TESTARGS )
3939
40- website :
41- ifeq (,$(wildcard $(GOPATH ) /src/$(WEBSITE_REPO ) ) )
42- echo "$(WEBSITE_REPO) not found in your GOPATH (necessary for layouts and assets), get-ting..."
43- git clone https://$(WEBSITE_REPO) $(GOPATH)/src/$(WEBSITE_REPO)
44- endif
45- @$(MAKE) -C $(GOPATH)/src/$(WEBSITE_REPO) website-provider PROVIDER_PATH=$(shell pwd) PROVIDER_NAME=$(PKG_NAME)
46-
47- website-lint :
48- @echo " ==> Checking website against linters..."
49- @misspell -error -source=text website/
50-
51- website-test :
52- ifeq (,$(wildcard $(GOPATH ) /src/$(WEBSITE_REPO ) ) )
53- echo "$(WEBSITE_REPO) not found in your GOPATH (necessary for layouts and assets), get-ting..."
54- git clone https://$(WEBSITE_REPO) $(GOPATH)/src/$(WEBSITE_REPO)
55- endif
56- @$(MAKE) -C $(GOPATH)/src/$(WEBSITE_REPO) website-provider-test PROVIDER_PATH=$(shell pwd) PROVIDER_NAME=$(PKG_NAME)
57-
58- .PHONY : build test testacc fmt fmtcheck lint tools test-compile website website-lint website-test
40+ docs-lint :
41+ @echo " ==> Checking docs against linters..."
42+ @misspell -error -source=text docs/
43+ @tfplugindocs validate
44+
45+
46+ .PHONY : build test testacc fmt fmtcheck lint tools test-compile docs-lint
You can’t perform that action at this time.
0 commit comments