mirror of
https://github.com/lukaszraczylo/claude-mnemonic.git
synced 2026-10-12 04:55:18 +00:00
Installed golangci-lint v2 rejected the v1 config (unsupported version), silently disabling the lint gate. Migrate to v2 (version, formatters section, linters.exclusions) preserving the same linter selection so the gate runs again.
38 lines
640 B
YAML
38 lines
640 B
YAML
version: "2"
|
|
|
|
linters:
|
|
enable:
|
|
- errcheck
|
|
- gosec
|
|
- govet
|
|
- staticcheck
|
|
- unused
|
|
- ineffassign
|
|
settings:
|
|
govet:
|
|
enable:
|
|
- fieldalignment
|
|
errcheck:
|
|
# Ignore error checks in test files for common test helpers
|
|
exclude-functions:
|
|
- (io.Closer).Close
|
|
- (*encoding/json.Encoder).Encode
|
|
- (io.Writer).Write
|
|
exclusions:
|
|
paths:
|
|
- vendor
|
|
# Exclude some linters from running on test files
|
|
rules:
|
|
- path: _test\.go
|
|
linters:
|
|
- errcheck
|
|
- gosec
|
|
|
|
formatters:
|
|
enable:
|
|
- gofmt
|
|
|
|
run:
|
|
timeout: 5m
|
|
tests: true
|