1
0
mirror of https://github.com/prometheus-community/postgres_exporter.git synced 2025-07-30 09:43:10 +03:00

Update linting

* Move errcheck exclude list to config file.
* Enable revive linter
* Fix up revive linting issues.

Signed-off-by: SuperQ <superq@gmail.com>
This commit is contained in:
SuperQ
2023-06-03 09:28:17 +02:00
parent 6e671f2d82
commit fab8e625a8
6 changed files with 22 additions and 18 deletions

View File

@ -18,7 +18,7 @@ import (
)
func TestLoadConfig(t *testing.T) {
ch := &ConfigHandler{
ch := &Handler{
Config: &Config{},
}
@ -29,7 +29,7 @@ func TestLoadConfig(t *testing.T) {
}
func TestLoadBadConfigs(t *testing.T) {
ch := &ConfigHandler{
ch := &Handler{
Config: &Config{},
}