Add golangci-lint #550
Annotations
4 errors and 10 warnings
Lint:
chain/manager.go#L861
`minumum` is a misspelling of `minimum` (misspell)
|
Lint:
chain/db.go#L47
unnecessary trailing newline (whitespace)
|
Lint:
consensus/state.go#L74
json(goCamel): got 'hardforkASIC' want 'hardforkAsic' (tagliatelle)
|
Lint
issues found
|
Lint:
internal/smux/stream.go#L150
if-return: redundant if ...; err != nil check, just return error instead. (revive)
|
Lint:
gateway/gateway.go#L71
indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (revive)
|
Lint:
chain/db.go#L681
indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (revive)
|
Lint:
rhp/v2/rhp.go#L306
exported: exported type RPCCost should have comment or be unexported (revive)
|
Lint:
rhp/v2/rhp.go#L314
exported: exported method RPCCost.Add should have comment or be unexported (revive)
|
Lint:
rhp/v2/rhp.go#L324
exported: exported method RPCCost.Total should have comment or be unexported (revive)
|
Lint:
consensus/validation_test.go#L1033
bool-literal-in-expr: omit Boolean literal in expression (revive)
|
Lint:
consensus/validation_test.go#L1073
bool-literal-in-expr: omit Boolean literal in expression (revive)
|
Lint:
consensus/validation_test.go#L1138
increment-decrement: should replace rev.RevisionNumber += 1 with rev.RevisionNumber++ (revive)
|
Lint:
consensus/validation_test.go#L1292
struct-tag: malformed tag (revive)
|
The logs for this run have expired and are no longer available.
Loading