fix: interface{} -> *types.ProposalsResponse #34
lint.yml
on: pull_request
Validate Branch Name
4s
Matrix: Go Lint
Annotations
34 errors and 7 warnings
|
Go Lint (proxy)
issues found
|
|
Go Lint (proxy):
proxy/internal/service.go#L107
Error return value of `w.Write` is not checked (errcheck)
|
|
Go Lint (worker/sai-storage-mongo):
worker/sai-storage-mongo/main.go#L33
Error return value of `client.Host.Disconnect` is not checked (errcheck)
|
|
Go Lint (worker/sai-storage-mongo):
worker/sai-storage-mongo/utils/utils.go#L4
S1005: unnecessary assignment to the blank identifier (gosimple)
|
|
Go Lint (worker/sai-storage-mongo):
worker/sai-storage-mongo/mongo/client.go#L359
SA4004: the surrounding loop is unconditionally terminated (staticcheck)
|
|
Go Lint (worker/sai-storage-mongo):
worker/sai-storage-mongo/mongo/client.go#L107
SA4004: the surrounding loop is unconditionally terminated (staticcheck)
|
|
Go Lint (worker/sai-storage-mongo):
worker/sai-storage-mongo/mongo/client.go#L56
SA1019: host.Connect is deprecated: Use [mongo.Connect] instead. (staticcheck)
|
|
Go Lint (worker/sai-storage-mongo):
worker/sai-storage-mongo/mongo/client.go#L52
SA1019: mongo.NewClient is deprecated: Use [Connect] instead. (staticcheck)
|
|
Go Lint (worker/sai-storage-mongo):
worker/sai-storage-mongo/mongo/client.go#L47
SA1019: host.Connect is deprecated: Use [mongo.Connect] instead. (staticcheck)
|
|
Go Lint (worker/sai-storage-mongo):
worker/sai-storage-mongo/mongo/client.go#L45
SA1019: mongo.NewClient is deprecated: Use [Connect] instead. (staticcheck)
|
|
Go Lint (worker/sai-storage-mongo):
worker/sai-storage-mongo/mongo/client.go#L148
composites: go.mongodb.org/mongo-driver/bson.E struct literal uses unkeyed fields (govet)
|
|
Go Lint (worker/sai-storage-mongo):
worker/sai-storage-mongo/mongo/client.go#L421
func `Client.preprocessDoc` is unused (unused)
|
|
|
|
Go Lint (worker/ethereum/sai-ethereum-contract-interaction):
worker/ethereum/sai-ethereum-contract-interaction/internal/contracts.go#L7
SA1019: "io/ioutil" has been deprecated since Go 1.19: As of Go 1.16, the same functionality is now provided by package [io] or package [os], and those implementations should be preferred in new code. See the specific function documentation for details. (staticcheck)
|
|
Go Lint (worker/ethereum/sai-ethereum-contract-interaction):
worker/ethereum/sai-ethereum-contract-interaction/internal/eth.go#L21
var `nonceList` is unused (unused)
|
|
Go Lint (worker/ethereum/sai-ethereum-contract-interaction):
worker/ethereum/sai-ethereum-contract-interaction/internal/service.go#L31
Error return value of `Service.getInitialContracts` is not checked (errcheck)
|
|
|
|
Go Lint (worker/ethereum/sai-ethereum-indexer/cmd/app):
worker/ethereum/sai-ethereum-indexer/cmd/app/main.go#L36
Error return value of `app.Run` is not checked (errcheck)
|
|
Go Lint (worker/ethereum/sai-ethereum-indexer/cmd/app):
worker/ethereum/sai-ethereum-indexer/cmd/app/main.go#L30
Error return value of `t.Logger.Sync` is not checked (errcheck)
|
|
Go Lint (manager):
manager/gateway/cosmos_agregated.go#L64
func `(*CosmosGateway).supply` is unused (unused)
|
|
Go Lint (manager):
manager/types/cosmos.go#L379
SA5008: unknown JSON option "float64" (staticcheck)
|
|
Go Lint (manager):
manager/types/cosmos.go#L378
SA5008: unknown JSON option "float64" (staticcheck)
|
|
Go Lint (manager):
manager/types/cosmos.go#L375
SA5008: unknown JSON option "float64" (staticcheck)
|
|
Go Lint (manager):
manager/types/cosmos.go#L336
SA1019: sdk.Int is deprecated: Functionality of this package has been moved to it's own module: cosmossdk.io/math (staticcheck)
|
|
Go Lint (manager):
manager/p2p/balancer/balancer.go#L8
SA1019: "io/ioutil" has been deprecated since Go 1.19: As of Go 1.16, the same functionality is now provided by package [io] or package [os], and those implementations should be preferred in new code. See the specific function documentation for details. (staticcheck)
|
|
Go Lint (manager):
manager/p2p/net/server.go#L822
S1033: unnecessary guard around call to delete (gosimple)
|
|
Go Lint (manager):
manager/p2p/net/server.go#L813
S1033: unnecessary guard around call to delete (gosimple)
|
|
Go Lint (manager):
manager/p2p/net/server.go#L802
S1005: unnecessary assignment to the blank identifier (gosimple)
|
|
Go Lint (manager):
manager/p2p/net/server.go#L648
func `(*PeerManager).remotePeerExists` is unused (unused)
|
|
Go Lint (worker/cosmos/sai-cosmos-indexer)
issues found
|
|
Go Lint (worker/cosmos/sai-cosmos-indexer):
worker/cosmos/sai-cosmos-indexer/internal/service.go#L280
SA9003: empty branch (staticcheck)
|
|
Go Lint (worker/cosmos/sai-cosmos-indexer):
worker/cosmos/sai-cosmos-indexer/internal/block.go#L113
SA1006: printf-style function with dynamic format string and no further arguments should use print-style function instead (staticcheck)
|
|
Go Lint (worker/cosmos/sai-cosmos-indexer):
worker/cosmos/sai-cosmos-indexer/internal/wallet.go#L34
S1005: unnecessary assignment to the blank identifier (gosimple)
|
|
Go Lint (worker/cosmos/sai-cosmos-indexer):
worker/cosmos/sai-cosmos-indexer/internal/service.go#L36
field `handleBlocks` is unused (unused)
|
|
Go Lint (proxy)
Restore cache failed: Dependencies file is not found in /home/runner/work/interx/interx. Supported file pattern: go.sum
|
|
Go Lint (worker/sai-storage-mongo)
Restore cache failed: Dependencies file is not found in /home/runner/work/interx/interx. Supported file pattern: go.sum
|
|
Go Lint (worker/ethereum/sai-ethereum-contract-interaction)
Restore cache failed: Dependencies file is not found in /home/runner/work/interx/interx. Supported file pattern: go.sum
|
|
Go Lint (worker/ethereum/sai-ethereum-indexer/cmd/app)
Restore cache failed: Dependencies file is not found in /home/runner/work/interx/interx. Supported file pattern: go.sum
|
|
Go Lint (worker/cosmos/sai-cosmos-interaction)
Restore cache failed: Dependencies file is not found in /home/runner/work/interx/interx. Supported file pattern: go.sum
|
|
Go Lint (manager)
Restore cache failed: Dependencies file is not found in /home/runner/work/interx/interx. Supported file pattern: go.sum
|
|
Go Lint (worker/cosmos/sai-cosmos-indexer)
Restore cache failed: Dependencies file is not found in /home/runner/work/interx/interx. Supported file pattern: go.sum
|