Skip to content

Migration from the drand v1.5 codebase to its own repo #7

Migration from the drand v1.5 codebase to its own repo

Migration from the drand v1.5 codebase to its own repo #7

Triggered via pull request July 23, 2024 17:02
@AnomalRoilAnomalRoil
synchronize #2
new/wip
Status Failure
Total duration 1m 39s
Billable time 2m
Artifacts

lint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 5 warnings
lint: gossip-relay/main.go#L215
Error return value of `cctx.Set` is not checked (errcheck)
lint: internal/cli.go#L129
Error return value of `(*github.com/nikkolasg/hexjson.Encoder).Encode` is not checked (errcheck)
lint: client/lp2p/client.go#L70
cyclomatic complexity 17 of func `NewWithPubsub` is high (> 15) (gocyclo)
lint: client/lp2p/example_test.go#L8
File is not `goimports`-ed with -local github.com/drand (goimports)
lint: gossip-relay/main.go#L89
line is 162 characters (lll)
lint: client/lp2p/example_test.go#L22
const `jsonDefaultInfo` is unused (unused)
lint: client/optimizing.go#L256
non-wrapping format verb for fmt.Errorf. Use `%w` to format errors (errorlint)
lint: client/http/example_test.go#L13
tests: ExampleHttpNew refers to unknown identifier: HttpNew (govet)
lint: client/http/example_test.go#L14
ineffectual assignment to err (ineffassign)
lint: internal/lp2p/ctor.go#L21
SA1019: "github.com/libp2p/go-libp2p/p2p/host/peerstore/pstoreds" is deprecated: The database-backed peerstore will be removed from go-libp2p in the future. Use the memory peerstore (pstoremem) instead. For more details see https://github.com/libp2p/go-libp2p/issues/2329 and https://github.com/libp2p/go-libp2p/issues/2355. (staticcheck)
lint
Restore cache failed: Dependencies file is not found in /home/runner/work/drand-cli/drand-cli. Supported file pattern: go.sum
lint: client/http/http.go#L37
unexported-return: exported func New returns unexported type *http.httpClient, which can be annoying to use (revive)
lint: client/http/http.go#L70
unexported-return: exported func NewWithInfo returns unexported type *http.httpClient, which can be annoying to use (revive)
lint: client/lp2p/validator.go#L26
unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive)
lint: gossip-relay/main.go#L35
unused-parameter: parameter 'c' seems to be unused, consider removing or renaming it as _ (revive)