gitmote / .golangci.yml · history · branches
535 bytes · raw
version: "2"
linters:
# The standard set: errcheck, govet, ineffassign, staticcheck, unused.
default: standard
settings:
errcheck:
exclude-functions:
# Writes to an http.ResponseWriter have nowhere to report errors.
- fmt.Fprintln(net/http.ResponseWriter)
# Deferred response-body closes in tests.
- (io.ReadCloser).Close
# Deferred row-set closes; iteration errors surface via rows.Err().
- (*database/sql.Rows).Close
formatters:
enable:
- gofmt
- goimports