diff --git a/.golangci.yml b/.golangci.yml index c479477..db4ec49 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,28 +1,52 @@ version: "2" linters: enable: + - asciicheck + - bidichk - bodyclose + - canonicalheader - contextcheck + - copyloopvar - durationcheck - errcheck + - errchkjson + - errname - errorlint + - exptostd + - fatcontext + - gocheckcompilerdirectives + - gocritic - godot - govet - ineffassign + - intrange + - mirror - misspell + - modernize + - nakedret - nilerr + - nilnesserr - nilnil - noctx - nolintlint + - nosprintfhostport + - perfsprint - predeclared - - rowserrcheck + - reassign + - recvcheck - revive + - rowserrcheck - sqlclosecheck - staticcheck + - thelper - unconvert + - unparam - unqueryvet + - unused + - usestdlibvars + - usetesting + - wastedassign - gosec - - unparam - wrapcheck settings: errorlint: diff --git a/storage_test.go b/storage_test.go index c62f834..06a030b 100644 --- a/storage_test.go +++ b/storage_test.go @@ -381,10 +381,10 @@ func TestConcurrentStoreLoad(t *testing.T) { var wg sync.WaitGroup wg.Add(goroutines) - for i := 0; i < goroutines; i++ { + for range goroutines { go func() { defer wg.Done() - for j := 0; j < iterations; j++ { + for range iterations { key := "concurrent/key" value := []byte("data") if err := s.Store(ctx, key, value); err != nil {