SMPROD-20718 Fix golangci-lint workflow and reported linter errors #341
Annotations
10 errors and 1 warning
|
lint:
cmd/postgres_exporter/pg_setting.go#L71
QF1004: could use strings.ReplaceAll instead (staticcheck)
|
|
lint:
config/config.go#L84
Error return value of `yamlReader.Close` is not checked (errcheck)
|
|
lint:
collector/probe.go#L84
Error return value of `pc.instance.Close` is not checked (errcheck)
|
|
lint:
collector/pg_stat_walreceiver.go#L138
Error return value of `hasFlushedLSNRows.Close` is not checked (errcheck)
|
|
lint:
collector/pg_locks.go#L100
Error return value of `rows.Close` is not checked (errcheck)
|
|
lint:
collector/pg_database_wraparound.go#L73
Error return value of `rows.Close` is not checked (errcheck)
|
|
lint:
collector/pg_database.go#L78
Error return value of `rows.Close` is not checked (errcheck)
|
|
lint:
collector/instance.go#L41
Error return value of `db.Close` is not checked (errcheck)
|
|
lint:
collector/collector.go#L179
Error return value of `inst.Close` is not checked (errcheck)
|
|
lint:
cmd/postgres_exporter/probe.go#L94
Error return value of `pc.Close` is not checked (errcheck)
|
|
lint
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@v4, actions/setup-go@v5, golangci/golangci-lint-action@v8. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|