Skip to content

Run golangci-lint

Run golangci-lint #8

Triggered via pull request November 27, 2024 17:45
@c2h5ohc2h5oh
synchronize #147
add_golangci
Status Failure
Total duration 46s
Artifacts

golangci-lint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
lint: cmd/chain-blast/main.go#L227
Error return value of `fmt.Scanln` is not checked (errcheck)
lint: cmd/chain-blast/main.go#L204
S1012: should use `time.Since` instead of `time.Now().Sub` (gosimple)
lint: cmd/chain-blast/main.go#L176
S1021: should merge variable declaration with assignment on next line (gosimple)
lint: cmd/chain-blast/main.go#L259
S1038: should use fmt.Printf instead of fmt.Println(fmt.Sprintf(...)) (but don't forget the newline) (gosimple)
lint: cmd/chain-blast/main.go#L261
S1038: should use fmt.Printf instead of fmt.Println(fmt.Sprintf(...)) (but don't forget the newline) (gosimple)
lint: cmd/chain-blast/main.go#L126
ineffectual assignment to err (ineffassign)
lint: ethutil/validate_logs_with_block.go#L13
S1004: should use bytes.Equal(logsToBloom(logs).Bytes(), header.Bloom.Bytes()) instead (gosimple)
lint: ethmempool/ethmempool.go#L21
field `log` is unused (unused)
lint: ethtest/helpers.go#L19
SA1019: rand.Seed has been deprecated since Go 1.20 and an alternative has been available since Go 1.0: As of Go 1.20 there is no reason to call Seed with a random value. Programs that call Seed with a known value to get a specific sequence of results should use New(NewSource(seed)) to obtain a local random generator. (staticcheck)
lint: ethreceipts/ethreceipts.go#L255
Error return value of `l.pastReceipts.ClearAll` is not checked (errcheck)