Skip to content

Commit 44e020b

Browse files
authored
add golangci-lint Make command (#564)
* add golangci-lint Make command Previously, `terraform-provider-grafana`'s `GNUmakefile` offered no easy way to locally reproduce the `lint` step that occurs in CI (https://github.com/grafana/terraform-provider-grafana/blob/master/.drone/drone.yml#L10-L13). This seeks to fix that by addressing issue #563. Signed-off-by: Mike Ball <[email protected]> * remove unnecessary `docker run` options Signed-off-by: Mike Ball <[email protected]>
1 parent 0575cce commit 44e020b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

GNUmakefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,12 @@ drone:
4646
drone lint .drone/drone.yml
4747
drone sign --save grafana/terraform-provider-grafana .drone/drone.yml
4848

49+
golangci-lint:
50+
docker run \
51+
--rm \
52+
--volume "$(shell pwd):/src" \
53+
--workdir "/src" \
54+
golangci/golangci-lint:v1.45 golangci-lint run ./...
55+
4956
linkcheck:
5057
docker run -it --entrypoint sh -v "$$PWD:$$PWD" -w "$$PWD" python:3.9-alpine -c "pip3 install linkchecker && linkchecker --config .linkcheckerrc docs"

0 commit comments

Comments
 (0)