Skip to content

Commit 524e651

Browse files
committed
Add scripts to locally lint, like ci does
1 parent 03fcf11 commit 524e651

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

GNUmakefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,7 @@ tfproviderlint:
4545
-XAT001=false -XR003=false -XR005=false -XS001=false -XS002=false \
4646
./...
4747

48-
.PHONY: default build test testacc-up testacc-down testacc vet fmt tfproviderlint
48+
lint:
49+
./scripts/lint.sh
50+
51+
.PHONY: default build test testacc-up testacc-down testacc vet fmt tfproviderlint lint

scripts/lint.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env bash
2+
3+
docker run --rm -v "$(pwd):/workspace" -w /workspace golangci/golangci-lint:v1.43 golangci-lint run
4+
docker run --rm -v "$(pwd):/workspace" -w /workspace avtodev/markdown-lint:v1 --config .markdownlint.yml docs

0 commit comments

Comments
 (0)