mirror of
https://github.com/planetmint/planetmint-go.git
synced 2025-11-24 06:25:47 +00:00
fixed rosetta-sdk origin
This commit is contained in:
parent
1dce252617
commit
fbf665a9b9
109
.golangci.yaml
109
.golangci.yaml
@ -1,6 +1,4 @@
|
||||
---
|
||||
run:
|
||||
timeout: 5m
|
||||
version: "2"
|
||||
linters:
|
||||
enable:
|
||||
- asasalint
|
||||
@ -15,7 +13,6 @@ linters:
|
||||
- dupl
|
||||
- dupword
|
||||
- durationcheck
|
||||
- errcheck
|
||||
- errchkjson
|
||||
- errname
|
||||
- errorlint
|
||||
@ -29,16 +26,12 @@ linters:
|
||||
- goconst
|
||||
- gocritic
|
||||
- gocyclo
|
||||
- gofmt
|
||||
- goheader
|
||||
- gomodguard
|
||||
- goprintffuncname
|
||||
- gosimple
|
||||
- gosmopolitan
|
||||
- govet
|
||||
- grouper
|
||||
- importas
|
||||
- ineffassign
|
||||
- interfacebloat
|
||||
- loggercheck
|
||||
- makezero
|
||||
@ -63,83 +56,99 @@ linters:
|
||||
- sloglint
|
||||
- sqlclosecheck
|
||||
- staticcheck
|
||||
- stylecheck
|
||||
- tagalign
|
||||
- tagliatelle
|
||||
- tenv
|
||||
- testableexamples
|
||||
- tparallel
|
||||
- unconvert
|
||||
- unparam
|
||||
- unused
|
||||
- usestdlibvars
|
||||
- wastedassign
|
||||
- whitespace
|
||||
- zerologlint
|
||||
linters-settings:
|
||||
settings:
|
||||
nakedret:
|
||||
max-func-lines: 100
|
||||
tagalign:
|
||||
strict: true
|
||||
tagliatelle:
|
||||
case:
|
||||
use-field-name: true
|
||||
rules:
|
||||
json: kebab
|
||||
issues:
|
||||
exclude-rules:
|
||||
- path: x/.*/types/message.*\.go
|
||||
linters:
|
||||
use-field-name: true
|
||||
exclusions:
|
||||
generated: lax
|
||||
presets:
|
||||
- comments
|
||||
- common-false-positives
|
||||
- legacy
|
||||
- std-error-handling
|
||||
rules:
|
||||
- linters:
|
||||
- dupl
|
||||
- path: x/dao/client/cli/query_.*\.go
|
||||
linters:
|
||||
path: x/.*/types/message.*\.go
|
||||
- linters:
|
||||
- dupl
|
||||
- path: x/dao/client/cli/tx_reissue_rddl.*\.go
|
||||
linters:
|
||||
path: x/dao/client/cli/query_.*\.go
|
||||
- linters:
|
||||
- dupl
|
||||
- path: x/dao/client/cli/*\.go
|
||||
linters:
|
||||
path: x/dao/client/cli/tx_reissue_rddl.*\.go
|
||||
- linters:
|
||||
- revive
|
||||
- path: testutil/nullify/nullify\.go
|
||||
linters:
|
||||
path: x/dao/client/cli/*\.go
|
||||
- linters:
|
||||
- exhaustive
|
||||
- path: x/.*/keeper/query.*\.go
|
||||
linters:
|
||||
path: testutil/nullify/nullify\.go
|
||||
- linters:
|
||||
- dupl
|
||||
- paralleltest
|
||||
- path: tests/.*/*\.go
|
||||
linters:
|
||||
path: x/.*/keeper/query.*\.go
|
||||
- linters:
|
||||
- paralleltest
|
||||
- path: util/machine_nft_test\.go
|
||||
linters:
|
||||
path: tests/.*/*\.go
|
||||
- linters:
|
||||
- paralleltest
|
||||
- path: testutil/network/network.go
|
||||
linters:
|
||||
path: util/machine_nft_test\.go
|
||||
- linters:
|
||||
- gocognit
|
||||
- gocyclo
|
||||
- wastedassign
|
||||
- nestif
|
||||
- path: x/.*/simulation/.*\.go
|
||||
linters:
|
||||
- wastedassign
|
||||
path: testutil/network/network.go
|
||||
- linters:
|
||||
- revive
|
||||
- path: x/.*/module_simulation\.go
|
||||
linters:
|
||||
path: x/.*/simulation/.*\.go
|
||||
- linters:
|
||||
- revive
|
||||
- path: x/.*/client/cli/query_params\.go
|
||||
linters:
|
||||
path: x/.*/module_simulation\.go
|
||||
- linters:
|
||||
- revive
|
||||
- path: x/.*/.*/cli/query_.*\.go
|
||||
linters:
|
||||
path: x/.*/client/cli/query_params\.go
|
||||
- linters:
|
||||
- revive
|
||||
- path: docs/docs\.go
|
||||
linters:
|
||||
path: x/.*/.*/cli/query_.*\.go
|
||||
- linters:
|
||||
- revive
|
||||
- path: util/elementsd_connector_test\.go
|
||||
linters:
|
||||
path: docs/docs\.go
|
||||
- linters:
|
||||
- paralleltest
|
||||
- path: monitor/mqtt_monitor_test\.go
|
||||
linters:
|
||||
path: util/elementsd_connector_test\.go
|
||||
- linters:
|
||||
- paralleltest
|
||||
- path: monitor/.*\.go
|
||||
linters:
|
||||
path: monitor/mqtt_monitor_test\.go
|
||||
- linters:
|
||||
- durationcheck
|
||||
path: monitor/.*\.go
|
||||
paths:
|
||||
- third_party$
|
||||
- builtin$
|
||||
- examples$
|
||||
formatters:
|
||||
enable:
|
||||
- gofmt
|
||||
exclusions:
|
||||
generated: lax
|
||||
paths:
|
||||
- third_party$
|
||||
- builtin$
|
||||
- examples$
|
||||
|
||||
4
go.mod
4
go.mod
@ -205,3 +205,7 @@ require (
|
||||
replace github.com/syndtr/goleveldb => github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7
|
||||
|
||||
replace github.com/planetmint/planetmint-go/lib => ./lib
|
||||
|
||||
replace github.com/coinbase/rosetta-sdk-go => github.com/tkachoff/rosetta-sdk-go v0.0.0-20200409123456-b90b71783ca14a994cb092b2429be4b9fcdfdddf
|
||||
|
||||
replace github.com/coinbase/rosetta-sdk-go/types => github.com/coinbase/mesh-sdk-go/types v1.0.0
|
||||
|
||||
4
go.sum
4
go.sum
@ -338,8 +338,8 @@ github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b/go.mod h1:Vz9D
|
||||
github.com/cockroachdb/redact v1.1.5 h1:u1PMllDkdFfPWaNGMyLD1+so+aq3uUItthCFqzwPJ30=
|
||||
github.com/cockroachdb/redact v1.1.5/go.mod h1:BVNblN9mBWFyMyqK1k3AAiSxhvhfK2oOZZ2lK+dpvRg=
|
||||
github.com/codahale/hdrhistogram v0.0.0-20161010025455-3a0bb77429bd/go.mod h1:sE/e/2PUdi/liOCUjSTXgM1o87ZssimdTWN964YiIeI=
|
||||
github.com/coinbase/rosetta-sdk-go/types v1.0.0 h1:jpVIwLcPoOeCR6o1tU+Xv7r5bMONNbHU7MuEHboiFuA=
|
||||
github.com/coinbase/rosetta-sdk-go/types v1.0.0/go.mod h1:eq7W2TMRH22GTW0N0beDnN931DW0/WOI1R2sdHNHG4c=
|
||||
github.com/coinbase/mesh-sdk-go/types v1.0.0 h1:CQjX3SnIZvRClvSgjgNDLq342Wn9WNnGnpSfkmMu8nE=
|
||||
github.com/coinbase/mesh-sdk-go/types v1.0.0/go.mod h1:eq7W2TMRH22GTW0N0beDnN931DW0/WOI1R2sdHNHG4c=
|
||||
github.com/cometbft/cometbft v0.37.5 h1:/U/TlgMh4NdnXNo+YU9T2NMCWyhXNDF34Mx582jlvq0=
|
||||
github.com/cometbft/cometbft v0.37.5/go.mod h1:QC+mU0lBhKn8r9qvmnq53Dmf3DWBt4VtkcKw2C81wxY=
|
||||
github.com/cometbft/cometbft-db v0.8.0 h1:vUMDaH3ApkX8m0KZvOFFy9b5DZHBAjsnEuo9AKVZpjo=
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user