Skip to content

Commit

Permalink
chore: Add math/rand to depguard rules.
Browse files Browse the repository at this point in the history
Signed-off-by: Erik Westra <e.s.westra.95@gmail.com>
  • Loading branch information
webstradev committed Aug 14, 2024
1 parent ba3732d commit fd7dce0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ linters-settings:
desc: "Use 'errors' or 'fmt' instead of github.com/pkg/errors"
- pkg: github.com/hashicorp/go-multierror
desc: "Use go.uber.org/multierr instead of github.com/hashicorp/go-multierror"
- pkg: math/rand
desc: "Use the newer 'math/rand/v2' instead of math/rand"
# Add a different guard rule so that we can ignore tests.
ignore-in-test:
deny:
Expand Down

0 comments on commit fd7dce0

Please sign in to comment.