- Add comments to all noOpLogger methods to satisfy revive exported rule - Remove deprecated output.format option (use default format instead) This fixes the linting issues: - exported: exported method noOpLogger.* should have comment or be unexported - warning about deprecated output.format option
52 lines
1.1 KiB
YAML
52 lines
1.1 KiB
YAML
# golangci-lint configuration
|
|
# See https://golangci-lint.run/usage/configuration/
|
|
|
|
run:
|
|
timeout: 5m
|
|
tests: true
|
|
modules-download-mode: readonly
|
|
|
|
linters:
|
|
enable:
|
|
- errcheck
|
|
- govet
|
|
- staticcheck
|
|
- revive
|
|
- gosec
|
|
disable:
|
|
- gocritic # Can be enabled later for stricter checks
|
|
|
|
linters-settings:
|
|
revive:
|
|
rules:
|
|
- name: exported
|
|
severity: warning
|
|
arguments:
|
|
- checkPrivateReceivers
|
|
# Disable stuttering check - interface names like ConfigProvider are acceptable
|
|
- name: package-comments
|
|
severity: warning
|
|
gosec:
|
|
severity: medium
|
|
errcheck:
|
|
check-blank: true
|
|
|
|
issues:
|
|
exclude-use-default: false
|
|
max-issues-per-linter: 0
|
|
max-same-issues: 0
|
|
exclude-rules:
|
|
# Exclude test files from some checks
|
|
- path: _test\.go
|
|
linters:
|
|
- errcheck
|
|
- gosec
|
|
# ConfigProvider stuttering is acceptable - it's a common pattern for interfaces
|
|
- path: pkg/config/config\.go
|
|
linters:
|
|
- revive
|
|
|
|
output:
|
|
print-issued-lines: true
|
|
print-linter-name: true
|