setup golangci-lint and fix the suggestions #577
reviewdog.yml
on: pull_request
runner / go-test
50s
runner / shellcheck
9s
runner / misspell
14s
runner / alex
42s
runner / golangci-lint
1m 46s
runner / gofmt
13s
runner / shfmt
10s
Annotations
10 errors
runner / golangci-lint:
pbm/storage/azure/azure.go#L27
`defaultUploadMaxBuff` is unused (deadcode)
|
runner / golangci-lint:
pbm/config.go#L225
Error return value of `p.GetConfig` is not checked (errcheck)
|
runner / golangci-lint:
pbm/node.go#L248
Error return value of `cn.Disconnect` is not checked (errcheck)
|
runner / golangci-lint:
pbm/node.go#L340
Error return value of `cn.Disconnect` is not checked (errcheck)
|
runner / golangci-lint:
pbm/oplog/restore.go#L687
Error return value of `o.indexCatalog.DeleteIndexes` is not checked (errcheck)
|
runner / golangci-lint:
e2e-tests/pkg/tests/sharded/trx.go#L109
Error return value of `sess.WithTransaction` is not checked (errcheck)
|
runner / golangci-lint:
e2e-tests/pkg/tests/sharded/trx.go#L133
Error return value of `mongo.WithSession` is not checked (errcheck)
|
runner / golangci-lint:
e2e-tests/pkg/tests/sharded/trx.go#L140
Error return value of `sess.AbortTransaction` is not checked (errcheck)
|
runner / golangci-lint:
e2e-tests/pkg/tests/sharded/trx_phys.go#L86
Error return value of `sess.WithTransaction` is not checked (errcheck)
|
runner / golangci-lint:
e2e-tests/pkg/tests/sharded/trx_phys.go#L106
Error return value of `mongo.WithSession` is not checked (errcheck)
|