From 36caa510819e542b15cdc765a75e2fd3067f576d Mon Sep 17 00:00:00 2001 From: aler9 <46489434+aler9@users.noreply.github.com> Date: Wed, 30 Dec 2020 17:15:00 +0100 Subject: [PATCH] update golangci-lint --- .golangci.yml | 5 +++-- Makefile | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index c558921b..882d79e4 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,11 +1,12 @@ linters: - disable: - - errcheck enable: - gofmt - golint - misspell + - unconvert + disable: + - errcheck issues: exclude-use-default: false diff --git a/Makefile b/Makefile index ba9a74ec..3690c827 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,6 @@ BASE_IMAGE = golang:1.15-alpine3.12 +GO_LINT_IMAGE = golangci/golangci-lint:v1.33.0 .PHONY: $(shell ls) @@ -56,7 +57,7 @@ test-nodocker: lint: docker run --rm -v $(PWD):/app -w /app \ - golangci/golangci-lint:v1.33.0 \ + $(GO_LINT_IMAGE) \ golangci-lint run -v stress: