diff --git a/.golangci.yml b/.golangci.yml index 585cf69..979ec6b 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -6,4 +6,6 @@ linters: - gochecknoglobals - testpackage - goerr113 + - exhaustivestruct + - paralleltest - nolintlint diff --git a/.travis.yml b/.travis.yml index 5718d72..8df0119 100644 --- a/.travis.yml +++ b/.travis.yml @@ -25,7 +25,7 @@ jobs: include: - stage: lint script: - - curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.30.0 + - curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.35.0 - golangci-lint run - stage: cross compilation diff --git a/requestid_test.go b/requestid_test.go index 19b41d1..6df168a 100644 --- a/requestid_test.go +++ b/requestid_test.go @@ -48,6 +48,8 @@ func Test_New(t *testing.T) { //nolint:funlen tt := test t.Run(tt.name, func(t *testing.T) { + t.Helper() + ctx := new(atreugo.RequestCtx) ctx.RequestCtx = new(fasthttp.RequestCtx)