Skip to content

WIP Move Host DB to SQL Impl #8433

WIP Move Host DB to SQL Impl

WIP Move Host DB to SQL Impl #8433

Triggered via pull request March 8, 2024 13:10
Status Failure
Total duration 58s
Artifacts

golangci-lint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 7 warnings
lint: integration/networktest/actions/publicdata/tenscan_data.go#L1
: # github.com/ten-protocol/go-ten/integration/networktest/actions/publicdata
lint: integration/networktest/actions/publicdata/tenscan_data.go#L35
batchListing.BatchesData[0].Number undefined (type "github.com/ten-protocol/go-ten/go/common".PublicBatch has no field or method Number)
lint: integration/networktest/actions/publicdata/tenscan_data.go#L35
batchListing.BatchesData[1].Number undefined (type "github.com/ten-protocol/go-ten/go/common".PublicBatch has no field or method Number) (typecheck)
lint: integration/simulation/devnetwork/config.go#L1
: # github.com/ten-protocol/go-ten/integration/simulation/devnetwork
lint: integration/simulation/devnetwork/node.go#L131
unknown field LevelDBPath in struct literal of type "github.com/ten-protocol/go-ten/go/config".HostConfig (typecheck)
lint: integration/networktest/env/dev_network.go#L12
could not import github.com/ten-protocol/go-ten/integration/simulation/devnetwork (-: # github.com/ten-protocol/go-ten/integration/simulation/devnetwork
lint: integration/simulation/devnetwork/node.go#L131
unknown field LevelDBPath in struct literal of type "github.com/ten-protocol/go-ten/go/config".HostConfig) (typecheck)
lint: integration/networktest/tests/tenscan/tenscan_rpc_test.go#L8
could not import github.com/ten-protocol/go-ten/integration/networktest/actions/publicdata (-: # github.com/ten-protocol/go-ten/integration/networktest/actions/publicdata
lint: integration/networktest/actions/publicdata/tenscan_data.go#L35
batchListing.BatchesData[0].Number undefined (type "github.com/ten-protocol/go-ten/go/common".PublicBatch has no field or method Number)
lint: integration/networktest/actions/publicdata/tenscan_data.go#L35
batchListing.BatchesData[1].Number undefined (type "github.com/ten-protocol/go-ten/go/common".PublicBatch has no field or method Number)) (typecheck)
lint
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-go@v4, actions/checkout@v3, golangci/golangci-lint-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
lint
Restore cache failed: Dependencies file is not found in /home/runner/work/go-ten/go-ten. Supported file pattern: go.sum
lint: go/common/storage/database/init/sqlite/sqlite.go#L83
unused-parameter: parameter 'logger' seems to be unused, consider removing or renaming it as _ (revive)
lint: go/host/storage/hostdb/batch.go#L230
unused-parameter: parameter 'txHash' seems to be unused, consider removing or renaming it as _ (revive)
lint: go/host/storage/hostdb/batch.go#L392
unused-parameter: parameter 'whereQuery' seems to be unused, consider removing or renaming it as _ (revive)
lint: go/host/storage/hostdb/batch.go#L468
var-naming: var bodyId should be bodyID (revive)
lint: go/host/rpc/clientapi/client_api_scan.go#L66
unused-parameter: parameter 'pagination' seems to be unused, consider removing or renaming it as _ (revive)