Skip to content

feat: Added primary indexes and GraphQL interface. #63

feat: Added primary indexes and GraphQL interface.

feat: Added primary indexes and GraphQL interface. #63

Triggered via pull request February 14, 2024 11:36
Status Failure
Total duration 1m 20s
Artifacts

main.yaml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 12 warnings
Go Linter / lint: internal/mock/storage.go#L45
paramTypeCombine: func(fromBlockNum int64, toBlockNum int64) (storage.Iterator[*types.Block], error) could be replaced with func(fromBlockNum, toBlockNum int64) (storage.Iterator[*types.Block], error) (gocritic)
Go Linter / lint: internal/mock/storage.go#L49
line is 127 characters (lll)
Go Linter / lint: internal/mock/storage.go#L50
line is 149 characters (lll)
Go Linter / lint: internal/mock/storage.go#L50
paramTypeCombine: func(fromBlockNum int64, toBlockNum int64, fromTxIndex uint32, toTxIndex uint32) (storage.Iterator[*types.TxResult], error) could be replaced with func(fromBlockNum, toBlockNum int64, fromTxIndex, toTxIndex uint32) (storage.Iterator[*types.TxResult], error) (gocritic)
Go Linter / lint: serve/graph/resolver.go#L28
return with no blank line before (nlreturn)
Go Linter / lint: serve/handlers/tx/tx_test.go#L124
return with no blank line before (nlreturn)
Go Linter / lint: serve/server.go#L18
fieldalignment: struct with 40 pointer bytes could be 32 (govet)
Go Linter / lint: storage/encode.go#L47
var `descendingBytesEscapes` is unused (unused)
Go Linter / lint: storage/encode.go#L70
assignments should only be cuddled with other assignments (wsl)
Go Linter / lint: storage/encode.go#L71
return with no blank line before (nlreturn)
Go Test / test
Restore cache failed: Dependencies file is not found in /home/runner/work/tx-indexer/tx-indexer. Supported file pattern: go.sum
Go Linter / lint
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: 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/.
Go Linter / lint: internal/mock/storage.go#L45
unused-parameter: parameter 'fromBlockNum' seems to be unused, consider removing or renaming it as _ (revive)
Go Linter / lint: internal/mock/storage.go#L45
unused-parameter: parameter 'toBlockNum' seems to be unused, consider removing or renaming it as _ (revive)
Go Linter / lint: internal/mock/storage.go#L50
unused-parameter: parameter 'fromBlockNum' seems to be unused, consider removing or renaming it as _ (revive)
Go Linter / lint: internal/mock/storage.go#L50
unused-parameter: parameter 'fromTxIndex' seems to be unused, consider removing or renaming it as _ (revive)
Go Linter / lint: internal/mock/storage.go#L50
unused-parameter: parameter 'toBlockNum' seems to be unused, consider removing or renaming it as _ (revive)
Go Linter / lint: internal/mock/storage.go#L50
unused-parameter: parameter 'toTxIndex' seems to be unused, consider removing or renaming it as _ (revive)
Go Linter / lint: serve/graph/resolver.go#L20
indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (revive)
Go Linter / lint: serve/graph/resolver.go#L29
indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (revive)
Go Linter / lint
Restore cache failed: Dependencies file is not found in /home/runner/work/tx-indexer/tx-indexer. Supported file pattern: go.sum
Go Test / test-with-race
Restore cache failed: Dependencies file is not found in /home/runner/work/tx-indexer/tx-indexer. Supported file pattern: go.sum