Skip to content

Commit

Permalink
update golangci rule
Browse files Browse the repository at this point in the history
Signed-off-by: kevindiu <kevin_diu@yahoo.com.hk>
  • Loading branch information
kevindiu committed Jul 26, 2023
1 parent 5afacdb commit a546316
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@ linters:
- path: internal/errors/errors_benchmark_test\.go
linters:
- depguard
- path: internal/test/comparator/standard\.go
linters:
- depguard
linters-settings:
gocritic:
enabled-checks:
Expand Down Expand Up @@ -176,6 +179,10 @@ linters-settings:
desc: "errors is allowed only by internal/errors"
- pkg: github.com/go-errors/errors
desc: "errors is allowed only by internal/errors"
- pkg: github.com/google/go-cmp/cmp
desc: "cmp is allowed only by internal/test/comparator"
- pkg: github.com/google/go-cmp/cmp/cmpopts
desc: "cmpopts is allowed only by internal/test/comparator"
govet:
check-shadowing: true
enable-all: true

0 comments on commit a546316

Please sign in to comment.