Skip to content

Commit 57cb499

Browse files
committed
Allow linters to lint acceptance tests
1 parent ad6e9a2 commit 57cb499

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

GNUmakefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ test: ## Run unit tests.
2323

2424
fmt: tool-golangci-lint tool-terraform tool-shfmt tfproviderlint-plugin ## Format files and fix issues.
2525
gofmt -w -s .
26-
$(GOBIN)/golangci-lint run --fix
26+
$(GOBIN)/golangci-lint run --build-tags acceptance --fix
2727
$(GOBIN)/terraform fmt -recursive -list ./examples
2828
$(GOBIN)/shfmt -l -s -w ./examples
2929

3030
lint-golangci: tool-golangci-lint tfproviderlint-plugin ## Run golangci-lint linter (same as fmt but without modifying files).
31-
$(GOBIN)/golangci-lint run
31+
$(GOBIN)/golangci-lint run --build-tags acceptance
3232

3333
lint-examples-tf: tool-terraform ## Run terraform linter on examples (same as fmt but without modifying files).
3434
$(GOBIN)/terraform fmt -recursive -check ./examples

0 commit comments

Comments
 (0)