Skip to content

Commit 17fd698

Browse files
committed
Adjust linting targets
1 parent e8dfbb1 commit 17fd698

File tree

1 file changed

+11
-20
lines changed

1 file changed

+11
-20
lines changed

Diff for: GNUmakefile

+11-20
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ WEBSITE_REPO=github.com/hashicorp/terraform-website
44
PKG_NAME=okta
55
GOFMT:=gofumpt
66
TFPROVIDERLINT=tfproviderlint
7+
TFPROVIDERLINTX=tfproviderlintx
78
STATICCHECK=staticcheck
89

910
# Expression to match against tests
@@ -113,38 +114,28 @@ test-compile:
113114
go test -c $(TEST) $(TESTARGS)
114115

115116
lint:
116-
@echo "==> Checking source code against linters..."
117+
@echo "==> Checking source code against linter tfproviderlint ..."
117118
@$(TFPROVIDERLINT) \
118119
-c 1 \
119-
-AT001 \
120-
-R004 \
121-
-S001 \
122-
-S002 \
123-
-S003 \
124-
-S004 \
125-
-S005 \
126-
-S007 \
127-
-S008 \
128-
-S009 \
129-
-S010 \
130-
-S011 \
131-
-S012 \
132-
-S013 \
133-
-S014 \
134-
-S015 \
135-
-S016 \
136-
-S017 \
137-
-S019 \
120+
./$(PKG_NAME)
121+
122+
lintx:
123+
# NOTE tfproviderlintx is very opinionated, don't add it to qc target
124+
@echo "==> Checking source code against linter tfproviderlintx ..."
125+
@$(TFPROVIDERLINTX) \
126+
-c 1 \
138127
./$(PKG_NAME)
139128

140129
tools:
141130
@which $(GOFMT) || go install mvdan.cc/[email protected]
142131
@which $(TFPROVIDERLINT) || go install github.com/bflad/tfproviderlint/cmd/[email protected]
132+
@which $(TFPROVIDERLINTX) || go install github.com/bflad/tfproviderlint/cmd/[email protected]
143133
@which $(STATICCHECK) || go install honnef.co/go/tools/cmd/[email protected]
144134

145135
tools-update:
146136
@go install mvdan.cc/[email protected]
147137
@go install github.com/bflad/tfproviderlint/cmd/[email protected]
138+
@go install github.com/bflad/tfproviderlint/cmd/[email protected]
148139
@go install honnef.co/go/tools/cmd/[email protected]
149140

150141
website:

0 commit comments

Comments
 (0)