mirror of
https://github.com/prometheus-community/postgres_exporter.git
synced 2025-04-18 12:24:07 +03:00
* Update Go to 1.24. * Update golangci-lint to v2. * Fixup linting issues. Signed-off-by: SuperQ <superq@gmail.com>
37 lines
654 B
YAML
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$
|