improvements: clean code #61
reviewdog [GolangCI Lint] report
reported by reviewdog 🐶
Findings (2)
pkg/collector/wallet_balance_collector.go|18| File is not gofumpt
-ed with -extra
(gofumpt)
pkg/ibc/ibc.go|75 col 13| unusedresult: result of fmt.Sprintf call not used (govet)
Filtered Findings (4)
pkg/config/config.go|22| File is not gofumpt
-ed with -extra
(gofumpt)
pkg/config/config.go|206 col 4| only one cuddle assignment allowed before if statement (wsl)
pkg/ibc/ibc.go|76 col 2| assignments should only be cuddled with other assignments (wsl)
pkg/ibc/ibc.go|81 col 2| only one cuddle assignment allowed before if statement (wsl)
Annotations
Check failure on line 18 in pkg/collector/wallet_balance_collector.go
github-actions / GolangCI Lint
[GolangCI Lint] pkg/collector/wallet_balance_collector.go#L18
File is not `gofumpt`-ed with `-extra` (gofumpt)
Raw output
pkg/collector/wallet_balance_collector.go:18: File is not `gofumpt`-ed with `-extra` (gofumpt)
var (
walletBalance = prometheus.NewDesc(
walletBalanceMetricName,
"Returns wallet balance for an address on a chain.",
[]string{"account", "chain_id", "denom", "status"}, nil,
)
Check failure on line 75 in pkg/ibc/ibc.go
github-actions / GolangCI Lint
[GolangCI Lint] pkg/ibc/ibc.go#L75
unusedresult: result of fmt.Sprintf call not used (govet)
Raw output
pkg/ibc/ibc.go:75:13: unusedresult: result of fmt.Sprintf call not used (govet)
fmt.Sprintf("Querying client expiration for %v <-> %v", cdA, cdB)
^