Files
CleanMM/.golangci.yml

45 lines
904 B
YAML
Raw Normal View History

# golangci-lint configuration for Mole
# https://golangci-lint.run/usage/configuration/
2026-01-08 15:26:35 +08:00
version: 2
run:
timeout: 5m
# Only lint Go code in cmd directory
modules-download-mode: readonly
linters:
disable-all: true
enable:
# Default linters
- govet
- staticcheck
- ineffassign
- unused
# Additional useful linters
- errcheck
linters-settings:
govet:
enable-all: true
disable:
- fieldalignment # struct field alignment optimization is noisy
errcheck:
exclude-functions:
- (io.Closer).Close
- (*os/exec.Cmd).Run
- (*os/exec.Cmd).Start
staticcheck:
2026-01-08 15:26:35 +08:00
checks: ["all", "-QF1003", "-SA9003"]
issues:
exclude-rules:
# Ignore certain patterns in test files
- path: _test\.go
linters:
- errcheck
# Ignore errors from os.Remove in cleanup code
2026-01-08 15:26:35 +08:00
- text: "os.Remove"
linters:
- errcheck