planetmint-go/.golangci.yaml
Julian Strobl 6ddc07356e
fix(query): unknown flag: --page (#471)
some query commands use pagination when delivering results:
```
pageReq, err := client.ReadPageRequest(cmd.Flags())
if err != nil {
    return err
}
```
to be able to use this feature, we need to add pagination related flags
to the `cmd`.

* chore(lint): exclude query files from `dupl`

Signed-off-by: Julian Strobl <jmastr@mailbox.org>
2024-11-14 09:52:06 +01:00

146 lines
2.7 KiB
YAML

---
run:
timeout: 5m
linters:
enable:
- asasalint
- asciicheck
- bidichk
- bodyclose
- containedctx
- contextcheck
- copyloopvar
- decorder
- dogsled
- dupl
- dupword
- durationcheck
- errcheck
- errchkjson
- errname
- errorlint
- exhaustive
- 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
- 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/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