-
Notifications
You must be signed in to change notification settings - Fork 50
Expand file tree
/
Copy path.golangci.yml
More file actions
62 lines (59 loc) · 1.53 KB
/
.golangci.yml
File metadata and controls
62 lines (59 loc) · 1.53 KB
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
55
56
57
58
59
60
61
62
version: '2'
linters:
default: all
disable:
# unused
- exhaustruct
- exhaustive
- dupl
- nlreturn
- tagliatelle
- cyclop
- testpackage
- wsl
#fix this
- staticcheck
- embeddedstructfieldcheck # this is a trash rule.
- funcorder # also lame.
- noinlineerr # I like inline errors.
- wsl_v5 # this one sucks compared to wsl, and lacks configurability.
- gomoddirectives # we need to use our own iso9660 package until we fix the issue with the original package.
settings:
depguard:
rules:
main:
files:
- $all
allow:
- $gostd
- github.com/Unpackerr/unpackerr
- github.com/lestrrat-go/apache-logformat
- github.com/gen2brain/dlgs
- github.com/getlantern/systray
- github.com/hako/durafmt
- github.com/mitchellh/go-homedir
- github.com/fsnotify/fsnotify
- github.com/radovskyb/watcher
- github.com/prometheus/client_golang/
- github.com/spf13/pflag
- github.com/julienschmidt/httprouter
- github.com/BurntSushi/toml
- golift.io
- golang.org/x
- gopkg.in/yaml.v3
- code.cloudfoundry.org/bytefmt
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- std-error-handling
issues:
max-issues-per-linter: 0
max-same-issues: 0
formatters:
enable:
- gci
- gofmt
- gofumpt
- goimports