forked from chainguard-dev/apko
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
52 lines (51 loc) · 975 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
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.*$
- '^t\.Error.*$(# forbid t\.Error in favor of using testify\.)?'
- '^t\.Fatal.*$(# forbid t\.Fatal in favor of using testify\.)?'
goheader:
template-path: header.tmpl
goimports:
local-prefixes: chainguard.dev/apko
linters:
enable:
- asciicheck
- deadcode
- depguard
- errcheck
- errorlint
- forbidigo
- gofmt
- goheader
- goimports
- gosec
- gocritic
- importas
- prealloc
- revive
- misspell
- stylecheck
- tparallel
- unconvert
- unparam
- 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