From feebeeabbb5a81310abd96a4a4855b9fde139b2a Mon Sep 17 00:00:00 2001 From: Silvestre Zabala Date: Fri, 11 Aug 2023 16:52:01 +0200 Subject: [PATCH] Update `depguard` config --- .golangci.yaml | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/.golangci.yaml b/.golangci.yaml index 2b2ccfe..05bfca9 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -1,13 +1,13 @@ --- linters-settings: depguard: - list-type: blacklist - packages: - - github.com/alecthomas/assert - - github.com/magiconair/properties/assert - packages-with-error-message: - - github.com/alecthomas/assert: "use github.com/stretchr/testify/assert" - - github.com/magiconair/properties/assert: "use github.com/stretchr/testify/assert" + rules: + main: + deny: + - pkg: github.com/alecthomas/assert + desc: "use github.com/stretchr/testify/assert" + - pkg: github.com/magiconair/properties/assert + desc: "use github.com/stretchr/testify/assert" dupl: threshold: 100 exhaustive: @@ -57,7 +57,6 @@ linters: disable-all: true enable: - asciicheck - - deadcode - depguard - dogsled - dupl @@ -79,14 +78,12 @@ linters: - nolintlint - rowserrcheck - staticcheck - - structcheck - stylecheck - testpackage - typecheck # - unconvert # - unparam - unused - - varcheck - whitespace - godox # - prealloc