fix: expose IncludeDedicatedClusterManagers and DiscoveryTimeout in o… #29
Annotations
11 errors
|
Prettify
Process completed with exit code 1.
|
|
Lint:
signer/aws/aws.go#L23
SA1019: "github.com/aws/aws-sdk-go/aws/session" is deprecated: aws-sdk-go is deprecated. Use aws-sdk-go-v2. See https://aws.amazon.com/blogs/developer/announcing-end-of-support-for-aws-sdk-for-go-v1-on-july-31-2025/. (staticcheck)
|
|
Lint:
opensearchtransport/discovery_internal_test.go#L1391
S1040: type assertion to the same type: pool already has type ConnectionPool (staticcheck)
|
|
Lint:
opensearchtransport/discovery.go#L258
Consider pre-allocating `newConns` (prealloc)
|
|
Lint:
opensearchtransport/discovery_internal_test.go#L1579
host:port in url should be constructed with net.JoinHostPort and not directly with fmt.Sprintf (nosprintfhostport)
|
|
Lint:
opensearchtransport/discovery_internal_test.go#L1539
host:port in url should be constructed with net.JoinHostPort and not directly with fmt.Sprintf (nosprintfhostport)
|
|
Lint:
opensearchtransport/discovery.go#L118
The line is 207 characters long, which exceeds the maximum of 140 characters. (lll)
|
|
Lint:
opensearchtransport/discovery.go#L441
lostcancel: the discoveryCancel function is not used on all paths (possible context leak) (govet)
|
|
Lint:
opensearchtransport/discovery.go#L437
lostcancel: this return statement may be reached without using the discoveryCancel var defined on line 441 (govet)
|
|
Lint:
opensearchtransport/discovery.go#L68
G404: Use of weak random number generator (math/rand or math/rand/v2 instead of crypto/rand) (gosec)
|
|
Lint:
opensearchtransport/discovery_internal_test.go#L1825
Error return value of `encoding/json.Marshal` is not checked: unsafe type `interface{}` found (errchkjson)
|