fix config and add ci #1
Annotations
10 errors and 11 warnings
Run golangci/[email protected]:
internal/handler/committer.go#L46
undefined: inscribe.GetLastFinalBatchNum (typecheck)
|
Run golangci/[email protected]:
pkg/btcapi/mempool/client.go#L24
ifElseChain: rewrite if-else to switch statement (gocritic)
|
Run golangci/[email protected]:
pkg/merkle/merklenode.go#L4
File is not `gofumpt`-ed (gofumpt)
|
Run golangci/[email protected]:
pkg/btcapi/btcapi.go#L4
File is not `gofumpt`-ed (gofumpt)
|
Run golangci/[email protected]:
pkg/btcapi/btcapi.go#L9
File is not `gofumpt`-ed (gofumpt)
|
Run golangci/[email protected]:
pkg/rpc/http.go#L43
File is not `gofumpt`-ed (gofumpt)
|
Run golangci/[email protected]:
pkg/rpc/struct.go#L39
File is not `gofumpt`-ed (gofumpt)
|
Run golangci/[email protected]:
pkg/rpc/struct.go#L42
File is not `gofumpt`-ed (gofumpt)
|
Run golangci/[email protected]:
pkg/rpc/struct.go#L45
File is not `gofumpt`-ed (gofumpt)
|
Run golangci/[email protected]:
pkg/rpc/struct.go#L52
File is not `gofumpt`-ed (gofumpt)
|
Run actions/setup-go@v4
Restore cache failed: Dependencies file is not found in /home/runner/work/b2-committer/b2-committer. Supported file pattern: go.sum
|
Run golangci/[email protected]:
internal/schema/base.go#L6
var-naming: struct field Id should be ID (revive)
|
Run golangci/[email protected]:
internal/schema/base.go#L12
var-naming: struct field EventId should be EventID (revive)
|
Run golangci/[email protected]:
internal/schema/sync_events.go#L12
var-naming: struct field SyncBlockId should be SyncBlockID (revive)
|
Run golangci/[email protected]:
internal/schema/proposal.go#L11
var-naming: struct field ProposalId should be ProposalID (revive)
|
Run golangci/[email protected]:
pkg/merkle/merklenode.go#L8
exported: type name will be used as merkle.MerkleNode by other packages, and that stutters; consider calling this Node (revive)
|
Run golangci/[email protected]:
pkg/btcapi/btcapi.go#L18
exported: type name will be used as btcapi.BTCAPIClient by other packages, and that stutters; consider calling this Client (revive)
|
Run golangci/[email protected]:
pkg/log/log.go#L370
redefines-builtin-id: redefinition of the built-in function copy (revive)
|
Run golangci/[email protected]:
pkg/log/log.go#L108
unexported-return: exported func New returns unexported type *log.zapLogger, which can be annoying to use (revive)
|
Run golangci/[email protected]:
pkg/rpc/http.go#L13
var-naming: func HttpPostJson should be HTTPPostJSON (revive)
|
Run golangci/[email protected]:
pkg/rpc/http.go#L36
errorf: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (revive)
|
The logs for this run have expired and are no longer available.
Loading