From 04ef5fa07d430a580ae736335f9c36e580de974c Mon Sep 17 00:00:00 2001 From: Mark Sagi-Kazar Date: Wed, 16 Jun 2021 03:01:53 +0200 Subject: [PATCH] chore: update golangci-lint Signed-off-by: Mark Sagi-Kazar --- .golangci.yml | 21 +++++++++++++++++++-- Makefile | 2 +- 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index a7b738105..66aadecd2 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -16,47 +16,64 @@ linters: - deadcode - dogsled - dupl + - durationcheck - exhaustive - exportloopref - gci - goconst - gofmt - - gofumpt - goimports - - golint + - gomoddirectives - goprintffuncname - govet + - importas - ineffassign + - makezero - misspell - nakedret + - nilerr - noctx - nolintlint - prealloc + - predeclared + - revive - rowserrcheck - sqlclosecheck - staticcheck - structcheck - stylecheck + - tparallel - typecheck - unconvert - unparam - unused - varcheck + - wastedassign - whitespace # fixme + # - cyclop # - errcheck + # - errorlint + # - exhaustivestruct + # - forbidigo + # - forcetypeassert # - gochecknoglobals # - gochecknoinits # - gocognit # - gocritic # - gocyclo # - godot + # - gofumpt # - gosec # - gosimple + # - ifshort # - lll # - nlreturn + # - paralleltest # - scopelint + # - thelper + # - wrapcheck # unused # - depguard diff --git a/Makefile b/Makefile index b1796c9d7..b93c88ba5 100644 --- a/Makefile +++ b/Makefile @@ -16,7 +16,7 @@ endif # Dependency versions GOTESTSUM_VERSION = 0.5.3 -GOLANGCI_VERSION = 1.31.0 +GOLANGCI_VERSION = 1.40.1 # Add the ability to override some variables # Use with care