Skip to content

Commit 3e4c4a9

Browse files
committed
Add target for make tf-provider-lint
Signed-off-by: Timo Sand <[email protected]>
1 parent 8fb6ec7 commit 3e4c4a9

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

GNUmakefile

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,18 @@ lintcheck:
4747
@echo "==> Checking source code against linters..."
4848
golangci-lint run ./...
4949

50+
tf-provider-lint:
51+
@branch=$$(git rev-parse --abbrev-ref HEAD); \
52+
printf "==> Running TF provider lint on branch: \033[1m%s\033[0m...\n" "🌿 $$branch 🌿";
53+
tfproviderlintx \
54+
-AT001=false \
55+
-AT003=false \
56+
-AT006=false \
57+
-XAT001=false \
58+
-XR003=false \
59+
-XS002=false \
60+
$(TEST)
61+
5062
test:
5163
@branch=$$(git rev-parse --abbrev-ref HEAD); \
5264
printf "==> Running unit tests on branch: \033[1m%s\033[0m...\n" "🌿 $$branch 🌿"
@@ -85,4 +97,4 @@ ifeq (,$(wildcard $(GOPATH)/src/$(WEBSITE_REPO)))
8597
endif
8698
@$(MAKE) -C $(GOPATH)/src/$(WEBSITE_REPO) website-provider-test PROVIDER_PATH=$(shell pwd) PROVIDER_NAME=$(PKG_NAME)
8799

88-
.PHONY: build test testacc fmt lint lintcheck tools website website-lint website-test sweep
100+
.PHONY: build test testacc fmt lint lintcheck tools website website-lint website-test sweep tf-provider-lint

0 commit comments

Comments
 (0)