rpc fix object content type charset parameter #188
Annotations
10 errors and 11 warnings
golangci-lint:
kernel/internal/testing.go#L14
don't use `init` function (gochecknoinits)
|
golangci-lint:
kernel/internal/testing.go#L6
import 'github.com/MixinNetwork/mixin/config' is not allowed from list 'Main' (depguard)
|
golangci-lint:
kernel/internal/testing.go#L10
inTest is a global variable (gochecknoglobals)
|
golangci-lint:
kernel/internal/testing.go#L11
mockRunAggregators is a global variable (gochecknoglobals)
|
golangci-lint:
common/encoding.go#L314
Error return value of `enc.WriteByte` is not checked (errcheck)
|
golangci-lint:
common/encoding.go#L329
Error return value of `enc.WriteByte` is not checked (errcheck)
|
golangci-lint:
common/encoding.go#L341
Error return value of `enc.WriteByte` is not checked (errcheck)
|
golangci-lint:
common/custodian.go#L147
Function 'validateCustodianUpdateNodes' has too many statements (44 > 40) (funlen)
|
golangci-lint:
common/decoding.go#L31
Function 'DecodeSnapshotWithTopo' has too many statements (47 > 40) (funlen)
|
golangci-lint:
common/decoding.go#L102
Function 'DecodeTransaction' has too many statements (65 > 40) (funlen)
|
The following actions use a deprecated Node.js version and will be forced to run on node20: golangci/golangci-lint-action@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
golangci-lint:
common/custodian_test.go#L14
var-naming: const mainnetId should be mainnetID (revive)
|
golangci-lint:
common/custodian_test.go#L128
var-naming: var nodeId should be nodeID (revive)
|
golangci-lint:
common/custodian_test.go#L163
unused-parameter: parameter 'require' seems to be unused, consider removing or renaming it as _ (revive)
|
golangci-lint:
common/round.go#L15
var-naming: struct field NodeId should be NodeID (revive)
|
golangci-lint:
common/genesis.go#L34
var-naming: method NetworkId should be NetworkID (revive)
|
golangci-lint:
common/transaction.go#L148
receiver-naming: receiver name signed should be consistent with previous receiver name tx for SignedTransaction (revive)
|
golangci-lint:
common/asset.go#L11
var-naming: var XINAssetId should be XINAssetID (revive)
|
golangci-lint:
common/encoding.go#L207
increment-decrement: should replace off += 1 with off++ (revive)
|
golangci-lint:
common/space.go#L8
var-naming: struct field NodeId should be NodeID (revive)
|
golangci-lint:
common/validation.go#L329
increment-decrement: should replace signers += 1 with signers++ (revive)
|
Loading