Skip to content

Commit 1ab63d4

Browse files
committed
fix lint violations
1 parent 483fd09 commit 1ab63d4

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

.golangci.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@ linters:
99
- funlen
1010
- gochecknoglobals
1111
- gochecknoinits
12+
- gocognit
1213
- goconst
1314
- gocritic
1415
- gocyclo
1516
- lll
1617
- unparam
18+
- wsl

db/redis/storage/redis_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,7 @@ func startSentinels(ports []string) (func(), error) {
467467
fmt.Fprintf(f, string(configTemplate), port)
468468
f.Close()
469469
tempFiles[i] = f.Name()
470+
//nolint:gosec
470471
cmd := exec.Command("redis-server", f.Name(), "--sentinel")
471472
cmd.Dir = os.TempDir()
472473
err = cmd.Start()

0 commit comments

Comments
 (0)