Skip to content

Commit

Permalink
Update golangci lint config
Browse files Browse the repository at this point in the history
  • Loading branch information
MrAlias committed Jun 8, 2023
1 parent 5090956 commit ef08cc3
Showing 1 changed file with 12 additions and 22 deletions.
34 changes: 12 additions & 22 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,28 +61,18 @@ issues:

linters-settings:
depguard:
# Check the list against standard lib.
# Default: false
include-go-root: true
# A list of packages for the list type specified.
# Default: []
packages:
- "crypto/md5"
- "crypto/sha1"
- "crypto/**/pkix"
ignore-file-rules:
- "**/*_test.go"
additional-guards:
# Do not allow testing packages in non-test files.
- list-type: denylist
include-go-root: true
packages:
- testing
- github.com/stretchr/testify
ignore-file-rules:
- "**/*_test.go"
- "**/*test/*.go"
- "**/internal/matchers/*.go"
rules:
non-tests:
files:
- "!$test"
- "!**/*test/*.go"
- "!**/internal/matchers/*.go"
deny:
- pkg: "testing"
- pkg: "github.com/stretchr/testify"
- pkg: "crypto/md5"
- pkg: "crypto/sha1"
- pkg: "crypto/**/pkix"
godot:
exclude:
# Exclude links.
Expand Down

0 comments on commit ef08cc3

Please sign in to comment.