From 5be581154e4d49ef7c471649d79c9f352208aea7 Mon Sep 17 00:00:00 2001 From: 9seconds Date: Thu, 2 Dec 2021 06:03:45 +0300 Subject: [PATCH 1/2] Update golangci-lint to 1.43.0 --- .github/workflows/ci.yaml | 2 +- Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 822e0ec..57c2e50 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -83,7 +83,7 @@ jobs: - name: Run linter uses: golangci/golangci-lint-action@v2 with: - version: v1.42.1 + version: v1.43.0 docker: name: Docker diff --git a/Makefile b/Makefile index 7766789..37cc4e9 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ ROOT_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST)))) IMAGE_NAME := mtg APP_NAME := $(IMAGE_NAME) -GOLANGCI_LINT_VERSION := v1.42.1 +GOLANGCI_LINT_VERSION := v1.43.0 VERSION_GO := $(shell go version) VERSION_DATE := $(shell date -Ru) From ecf947b86cc1561ef209aac2cbaeab298b13eae0 Mon Sep 17 00:00:00 2001 From: 9seconds Date: Thu, 2 Dec 2021 06:51:09 +0300 Subject: [PATCH 2/2] Ignore noisy linters --- .golangci.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.golangci.toml b/.golangci.toml index 216d371..97f84a5 100644 --- a/.golangci.toml +++ b/.golangci.toml @@ -9,4 +9,4 @@ format = "colored-line-number" [linters] enable-all = true -disable = ["gochecknoglobals", "gas", "goerr113", "exhaustivestruct"] +disable = ["ireturn", "varnamelen", "gochecknoglobals", "gas", "goerr113", "exhaustivestruct"]