From 923bba99793f86a1fe938150797800593563485b Mon Sep 17 00:00:00 2001 From: Adam Hughes <9903835+tri-adam@users.noreply.github.com> Date: Mon, 29 Aug 2022 21:13:23 +0000 Subject: [PATCH] chore: bump golangci-lint to v1.49 Disable deprecated deadcode, structcheck and varcheck linters. Add interfacebloat and reassign linters. Sort list of enabled linters in ascending order. --- .circleci/config.yml | 2 +- .golangci.yml | 10 ++++------ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index cba368d..c9b1c91 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.47 + - image: golangci/golangci-lint:v1.49 golang-previous: docker: - image: golang:1.18 diff --git a/.golangci.yml b/.golangci.yml index c22dd23..e9a40ec 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -5,17 +5,16 @@ linters: - bodyclose - containedctx - contextcheck - - deadcode - decorder - depguard - dogsled - dupl - errcheck + - errchkjson - funlen - gochecknoinits - - gocognit - - errchkjson - gochecknoinits + - gocognit - goconst - gocritic - gocyclo @@ -28,21 +27,20 @@ linters: - govet - grouper - ineffassign + - interfacebloat - ireturn - maintidx - misspell - nakedret - nilnil - prealloc + - reassign - revive - - rowserrcheck - staticcheck - - structcheck - stylecheck - tenv - typecheck - unconvert - unparam - unused - - varcheck - whitespace