-
Notifications
You must be signed in to change notification settings - Fork 3
/
.golangci.yml
64 lines (56 loc) · 1.71 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
linters:
disable-all: true
enable:
# - gofumpt
- goimports
- gomodguard
- gosimple
- govet
- ineffassign
- staticcheck
- unconvert
- unused
fast: true
# options for analysis running
run:
issues-exit-code: 1
tests: true
# output configuration options
output:
format: colored-line-number
print-issued-lines: true
print-linter-name: true
uniq-by-line: true
# all available settings of specific linters
linters-settings:
gofumpt:
module-path: github.com/superfly/flyctl
errcheck:
# report about not checking of errors in type assetions: `a := b.(MyStruct)`;
# default is false: such cases aren't reported by default.
check-type-assertions: true
# report about assignment of errors to blank identifier: `num, _ := strconv.Atoi(numStr)`;
# default is false: such cases aren't reported by default.
check-blank: false
# [deprecated] comma-separated list of pairs of the form pkg:regex
# the regex is used to ignore names within pkg. (default "fmt:.*").
# see https://github.com/kisielk/errcheck#the-deprecated-method for details
ignore: fmt:.*,io:Close
gomodguard:
allowed:
modules:
- github.com/cenkalti/backoff/v4
- github.com/Khan/genqlient
- github.com/google/go-querystring
- github.com/PuerkitoBio/rehttp
- github.com/superfly/graphql
- github.com/superfly/macaroon
- github.com/superfly/macaroon/flyio
- github.com/superfly/macaroon/tp
domains:
- golang.org
- go.opentelemetry.io
blocked:
modules:
- github.com/superfly/flyctl:
reason: "`api` can not depend on flyctl project because it pulls tons of dependencies"