From 35220ef3729ee65475aecfd9154d3b09910f00fc Mon Sep 17 00:00:00 2001 From: Adam Hughes <9903835+tri-adam@users.noreply.github.com> Date: Mon, 29 Aug 2022 19:44:18 +0000 Subject: [PATCH] chore: bump golangci-lint to v1.49 Disable deprecated deadcode, structcheck and varcheck linters. Add interfacebloat and reassign linters. --- .circleci/config.yml | 2 +- .golangci.yml | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 650a528..13b307b 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -9,7 +9,7 @@ executors: - image: node:18-slim golangci-lint: docker: - - image: golangci/golangci-lint:v1.48-alpine + - image: golangci/golangci-lint:v1.49-alpine golang-previous: docker: - image: golang:1.18 diff --git a/.golangci.yml b/.golangci.yml index 82d7243..d121e09 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -6,7 +6,6 @@ linters: - bodyclose - containedctx - contextcheck - - deadcode - decorder - depguard - dogsled @@ -30,6 +29,7 @@ linters: - govet - grouper - ineffassign + - interfacebloat - ireturn - lll - maintidx @@ -38,16 +38,15 @@ linters: - nolintlint - nonamedreturns - prealloc + - reassign - revive - rowserrcheck - staticcheck - - structcheck - tenv - typecheck - unconvert - unparam - unused - - varcheck - whitespace linters-settings: