Skip to content

Commit

Permalink
Update depguard config
Browse files Browse the repository at this point in the history
  • Loading branch information
silvestre committed Aug 11, 2023
1 parent cc23bdc commit feebeea
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions .golangci.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down Expand Up @@ -57,7 +57,6 @@ linters:
disable-all: true
enable:
- asciicheck
- deadcode
- depguard
- dogsled
- dupl
Expand All @@ -79,14 +78,12 @@ linters:
- nolintlint
- rowserrcheck
- staticcheck
- structcheck
- stylecheck
- testpackage
- typecheck
# - unconvert
# - unparam
- unused
- varcheck
- whitespace
- godox
# - prealloc
Expand Down

0 comments on commit feebeea

Please sign in to comment.