-
Notifications
You must be signed in to change notification settings - Fork 125
/
.golangci.yml
54 lines (53 loc) · 970 Bytes
/
.golangci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
linters-settings:
depguard:
include-go-root: true
packages:
- io/ioutil
packages-with-error-message:
- io/ioutil: 'ioutil was deprecated in 1.16 (https://go.dev/doc/go1.16#ioutil)'
forbidigo:
forbid:
- ^print.*$
goheader:
template-path: header.tmpl
values:
regexp:
ws: "\\s*"
goimports:
local-prefixes: chainguard.dev/apko
gosec:
excludes:
# TODO: review those and remove if possible
- G115 # integer overflow conversion uint64 -> int
linters:
enable:
- asciicheck
- errcheck
- errorlint
- forbidigo
- gofmt
- goimports
- gosec
- gocritic
- importas
- prealloc
- misspell
- stylecheck
- tparallel
- unconvert
- unparam
- unused
- whitespace
output:
uniq-by-line: false
issues:
exclude-rules:
- path: _test\.go
linters:
- errcheck
- gosec
max-issues-per-linter: 0
max-same-issues: 0
run:
issues-exit-code: 1
timeout: 10m