1
0
mirror of https://github.com/prometheus-community/postgres_exporter.git synced 2025-04-18 12:24:07 +03:00
postgres_exporter/.golangci.yml
Ben Kochie 8d5ec4b3ea
Update Go (#1147)
* Update Go to 1.24.
* Update golangci-lint to v2.
* Fixup linting issues.

Signed-off-by: SuperQ <superq@gmail.com>
2025-04-03 17:23:40 +02:00

37 lines
654 B
YAML

version: "2"
linters:
enable:
- misspell
- revive
settings:
errcheck:
exclude-functions:
- (github.com/go-kit/log.Logger).Log
revive:
rules:
- name: unused-parameter
severity: warning
disabled: true
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
rules:
- linters:
- errcheck
path: _test.go
paths:
- third_party$
- builtin$
- examples$
formatters:
exclusions:
generated: lax
paths:
- third_party$
- builtin$
- examples$