mirror of
https://github.com/planetmint/planetmint-go.git
synced 2025-03-30 15:08:28 +00:00

* added tests (for the sake of on-demand local tests) * added wrapping the first parameters of the calls into `"` * using newest elements RPC from now on (>=1.0.0) * removed print outputs * removed parallel testing from util/elementsd_connector_test.go Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
145 lines
2.6 KiB
YAML
145 lines
2.6 KiB
YAML
---
|
|
run:
|
|
timeout: 5m
|
|
linters:
|
|
enable:
|
|
- asasalint
|
|
- asciicheck
|
|
- bidichk
|
|
- bodyclose
|
|
- containedctx
|
|
- contextcheck
|
|
- decorder
|
|
- dogsled
|
|
- dupl
|
|
- dupword
|
|
- durationcheck
|
|
- errcheck
|
|
- errchkjson
|
|
- errname
|
|
- errorlint
|
|
- execinquery
|
|
- exhaustive
|
|
- exportloopref
|
|
- forbidigo
|
|
- forcetypeassert
|
|
- ginkgolinter
|
|
- gocheckcompilerdirectives
|
|
- gochecksumtype
|
|
- gocognit
|
|
- goconst
|
|
- gocritic
|
|
- gocyclo
|
|
- gofmt
|
|
- goheader
|
|
- gomodguard
|
|
- goprintffuncname
|
|
- gosimple
|
|
- gosmopolitan
|
|
- govet
|
|
- grouper
|
|
- importas
|
|
- ineffassign
|
|
- interfacebloat
|
|
- loggercheck
|
|
- makezero
|
|
- mirror
|
|
- misspell
|
|
- musttag
|
|
- nakedret
|
|
- nestif
|
|
- nilerr
|
|
- nilnil
|
|
- noctx
|
|
- nolintlint
|
|
- nosprintfhostport
|
|
- paralleltest
|
|
- perfsprint
|
|
- prealloc
|
|
- predeclared
|
|
- promlinter
|
|
- protogetter
|
|
- reassign
|
|
- revive
|
|
- rowserrcheck
|
|
- 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/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
|