Files
goplt/.golangci.yml
0x1d 93bc6e082c
All checks were successful
CI / Test (pull_request) Successful in 1m48s
CI / Lint (pull_request) Successful in 29s
CI / Build (pull_request) Successful in 15s
CI / Format Check (pull_request) Successful in 3s
fix(ci): install golangci-lint v2.1.6 manually to match local environment
Install v2.1.6 manually in CI (not via action) to avoid --out-format flag
compatibility issues. This ensures both local and CI use the same version
and support version: 2 config format.
2025-11-05 13:36:48 +01:00

54 lines
1.1 KiB
YAML

# golangci-lint configuration
# See https://golangci-lint.run/usage/configuration/
version: 2
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