-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
46 lines (43 loc) · 1.01 KB
/
.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
linters:
enable-all: true
fast: false
disable:
# deprecated
- scopelint
- varcheck
- exhaustivestruct
- ifshort
- structcheck
- deadcode
- nosnakecase
- maligned
- golint
- interfacer
# disabled
- wrapcheck
linters-settings:
depguard:
rules:
prevent_unmaintained_packages:
files:
- $all
- "!$test"
allow:
- $gostd
- github.com/google/shlex
- github.com/yuin/goldmark
- github.com/yuin/goldmark/ast
- github.com/yuin/goldmark/text
- github.com/rodaine/table
- github.com/spf13/cobra
- github.com/gobwas/glob
- github.com/liamg/memoryfs
- mvdan.cc/sh/v3/interp
- mvdan.cc/sh/v3/syntax
- github.com/szkiba/mdcode/internal
deny:
- pkg: io/ioutil
desc: "replaced by io and os packages since Go 1.16: https://tip.golang.org/doc/go1.16#ioutil"
run:
skip-dirs:
- "examples"