Skip to content

Commit bc8496b

Browse files
committed
fix lint violations
1 parent ccb7392 commit bc8496b

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

.golangci.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
run:
2+
deadline: 5m
3+
4+
linters:
5+
enable-all: true
6+
disable:
7+
- dupl
8+
- errcheck
9+
- funlen
10+
- gochecknoglobals
11+
- gochecknoinits
12+
- gocognit
13+
- goconst
14+
- gocritic
15+
- gocyclo
16+
- lll
17+
- 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)