Tightened lint config (added copyloopvar, durationcheck, makezero,
nilerr, bodyclose). Added 3 combo tests: encrypted+locked files,
dir-only+locked entries, lock/unlock toggle on encrypted entries.
Fixed stale API signatures in ARCHITECTURE.md. All tests already
used t.TempDir() and AddOptions{} consistently.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
31 lines
432 B
YAML
31 lines
432 B
YAML
version: "2"
|
|
|
|
linters:
|
|
enable:
|
|
- errcheck
|
|
- govet
|
|
- ineffassign
|
|
- unused
|
|
- errorlint
|
|
- staticcheck
|
|
- copyloopvar
|
|
- durationcheck
|
|
- makezero
|
|
- nilerr
|
|
- bodyclose
|
|
|
|
linters-settings:
|
|
errcheck:
|
|
check-type-assertions: true
|
|
govet:
|
|
disable:
|
|
- shadow
|
|
|
|
issues:
|
|
max-issues-per-linter: 0
|
|
exclude-rules:
|
|
- path: _test\.go
|
|
linters:
|
|
- gosec
|
|
- errcheck
|