only use precommitements for active peer connections #180
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/asset.go#L11
var-naming: var XINAssetId should be XINAssetID (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/asset.go#L12
var-naming: var BitcoinAssetId should be BitcoinAssetID (revive)
|
golangci-lint:
common/custodian_test.go#L14
var-naming: const mainnetId should be mainnetID (revive)
|
golangci-lint:
common/asset.go#L13
var-naming: var EthereumAssetId should be EthereumAssetID (revive)
|
golangci-lint:
common/asset.go#L14
var-naming: var BOXAssetId should be BOXAssetID (revive)
|
golangci-lint:
common/custodian_test.go#L128
var-naming: var nodeId should be nodeID (revive)
|
golangci-lint:
common/asset.go#L15
var-naming: var MOBAssetId should be MOBAssetID (revive)
|
golangci-lint:
common/asset.go#L16
var-naming: var USDTEthereumAssetId should be USDTEthereumAssetID (revive)
|
golangci-lint:
common/asset.go#L17
var-naming: var USDTTronAssetId should be USDTTronAssetID (revive)
|
Loading