Skip to content

improvements: clean code #62

improvements: clean code

improvements: clean code #62

GitHub Actions / GolangCI Lint failed Nov 29, 2023 in 0s

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

See this annotation in the file changed.

@github-actions 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

See this annotation in the file changed.

@github-actions 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)
	           ^