Skip to content

Commit 03a6a27

Browse files
authored
Merge branch 'main' into worktree-redis-cluster-support-to-auth-server-storage
2 parents 428a24b + e928ab6 commit 03a6a27

6 files changed

Lines changed: 152 additions & 138 deletions

File tree

.golangci.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ linters:
6262
forbid-spec-pollution: false
6363
# Force using Succeed() for functions and HaveOccurred() for errors
6464
force-succeed: false
65+
goconst:
66+
ignore-tests: true
67+
min-occurrences: 25
6568
gocyclo:
6669
min-complexity: 15
6770
gosec:
@@ -78,6 +81,7 @@ linters:
7881
- G704 # SSRF via taint analysis
7982
- G705 # XSS via taint analysis
8083
- G706 # Log injection via taint analysis
84+
- G710 # Open redirect via taint analysis
8185
lll:
8286
line-length: 130
8387
revive:
@@ -115,7 +119,14 @@ linters:
115119
- errcheck
116120
- dupl
117121
- gosec
122+
- goconst
118123
path: (.+)_test\.go
124+
- linters:
125+
- goconst
126+
path: ^test/
127+
- linters:
128+
- goconst
129+
path: ^deploy/
119130
- linters:
120131
- lll
121132
path: .golangci.yml

pkg/cache/validating_cache.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ func sameEntry[V any](a, b V) bool {
192192
ra := reflect.ValueOf(any(a))
193193
if ra.IsValid() {
194194
switch ra.Kind() { //nolint:exhaustive
195-
case reflect.Ptr, reflect.UnsafePointer:
195+
case reflect.Pointer, reflect.UnsafePointer:
196196
rb := reflect.ValueOf(any(b))
197197
return rb.IsValid() && ra.Pointer() == rb.Pointer()
198198
}

0 commit comments

Comments
 (0)