.golangci.yml
1version: "2"
2linters:
3 settings:
4 errcheck:
5 # Terminal output and deferred closes of read-only files: nothing useful
6 # to do with the error.
7 exclude-functions:
8 - fmt.Fprint
9 - fmt.Fprintf
10 - fmt.Fprintln
11 - (*os.File).Close
12 - (*os.File).Write
13 - (io.Closer).Close
14 - (*git.kilimanjaro.io/ci/internal/runlog.Writer).Close
15 - (*git.kilimanjaro.io/ci/internal/eventlog.Log).Close
16 - (*database/sql.DB).Close
17 - (*database/sql.Rows).Close
18 - (*github.com/gorilla/websocket.Conn).Close
19 exclusions:
20 rules:
21 # Test setup errors surface as test failures anyway.
22 - path: _test\.go
23 linters: [errcheck]