1linters-settings:
2  errcheck:
3    ignore: fmt:.*,io/ioutil:^Read.*
4    ignoretests: true
5  misspell:
6    locale: US
7
8linters:
9  enable:
10    - bodyclose
11    - prealloc
12    - unconvert
13    - errcheck
14    - gofmt
15    - goimports
16    - gosec
17    - ineffassign
18    - misspell
19
20run:
21  # default concurrency is a available CPU number.
22  # concurrency: 4 # explicitly omit this value to fully utilize available resources.
23  deadline: 5m
24  issues-exit-code: 1
25  tests: false
26
27# output configuration options
28output:
29  format: 'colored-line-number'
30  print-issued-lines: true
31  print-linter-name: true
32
33issues:
34  exclude-rules:
35    # we aren't calling unknown URL
36    - text: "G107" # G107: Url provided to HTTP request as taint input
37      linters:
38        - gosec
39    # we're shelling out to known commands, not relying on user-defined input.
40    - text: "G204" # G204: Audit use of command execution
41      linters:
42        - gosec
43