diff --git a/.golangci.yaml b/.golangci.yaml index 482a069..7eb41ec 100644 --- a/.golangci.yaml +++ b/.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: - 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: - - dupl - - path: x/dao/client/cli/query_.*\.go - linters: - - dupl - - path: x/dao/client/cli/tx_reissue_rddl.*\.go - linters: - - dupl - - path: x/dao/client/cli/*\.go - linters: - - revive - - path: testutil/nullify/nullify\.go - linters: - - exhaustive - - path: x/.*/keeper/query.*\.go - linters: - - dupl - - paralleltest - - path: tests/.*/*\.go - linters: - - paralleltest - - path: util/machine_nft_test\.go - linters: - - paralleltest - - path: testutil/network/network.go - linters: - - gocognit - - gocyclo - - wastedassign - - nestif - - path: x/.*/simulation/.*\.go - linters: - - revive - - path: x/.*/module_simulation\.go - linters: - - revive - - path: x/.*/client/cli/query_params\.go - linters: - - revive - - path: x/.*/.*/cli/query_.*\.go - linters: - - revive - - path: docs/docs\.go - linters: - - revive - - path: util/elementsd_connector_test\.go - linters: - - paralleltest - - path: monitor/mqtt_monitor_test\.go - linters: - - paralleltest - - path: monitor/.*\.go - linters: - - durationcheck + settings: + nakedret: + max-func-lines: 100 + tagalign: + strict: true + tagliatelle: + case: + rules: + json: kebab + use-field-name: true + exclusions: + generated: lax + presets: + - comments + - common-false-positives + - legacy + - std-error-handling + rules: + - linters: + - dupl + path: x/.*/types/message.*\.go + - linters: + - dupl + path: x/dao/client/cli/query_.*\.go + - linters: + - dupl + path: x/dao/client/cli/tx_reissue_rddl.*\.go + - linters: + - revive + path: x/dao/client/cli/*\.go + - linters: + - exhaustive + path: testutil/nullify/nullify\.go + - linters: + - dupl + - paralleltest + path: x/.*/keeper/query.*\.go + - linters: + - paralleltest + path: tests/.*/*\.go + - linters: + - paralleltest + path: util/machine_nft_test\.go + - linters: + - gocognit + - gocyclo + - nestif + - wastedassign + path: testutil/network/network.go + - linters: + - revive + path: x/.*/simulation/.*\.go + - linters: + - revive + path: x/.*/module_simulation\.go + - linters: + - revive + path: x/.*/client/cli/query_params\.go + - linters: + - revive + path: x/.*/.*/cli/query_.*\.go + - linters: + - revive + path: docs/docs\.go + - linters: + - paralleltest + path: util/elementsd_connector_test\.go + - linters: + - paralleltest + 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$ diff --git a/go.mod b/go.mod index 13a9258..90f82d5 100644 --- a/go.mod +++ b/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 diff --git a/go.sum b/go.sum index 4272e85..3f47912 100644 --- a/go.sum +++ b/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=