Run golangci-lint #8
Annotations
10 errors
golangci-lint:
cmd/chain-blast/main.go#L227
Error return value of `fmt.Scanln` is not checked (errcheck)
|
golangci-lint:
cmd/chain-blast/main.go#L204
S1012: should use `time.Since` instead of `time.Now().Sub` (gosimple)
|
golangci-lint:
cmd/chain-blast/main.go#L176
S1021: should merge variable declaration with assignment on next line (gosimple)
|
golangci-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)
|
golangci-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)
|
golangci-lint:
cmd/chain-blast/main.go#L126
ineffectual assignment to err (ineffassign)
|
golangci-lint:
ethutil/validate_logs_with_block.go#L13
S1004: should use bytes.Equal(logsToBloom(logs).Bytes(), header.Bloom.Bytes()) instead (gosimple)
|
golangci-lint:
ethmempool/ethmempool.go#L21
field `log` is unused (unused)
|
golangci-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)
|
golangci-lint:
ethreceipts/ethreceipts.go#L255
Error return value of `l.pastReceipts.ClearAll` is not checked (errcheck)
|
Loading