forked from bufbuild/buf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
73 lines (73 loc) · 1.98 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
65
66
67
68
69
70
71
72
73
run:
skip-dirs-use-default: false
linters-settings:
errcheck:
check-type-assertions: true
linters:
enable:
- govet
- asciicheck
- bodyclose
- deadcode
- depguard
- dogsled
- errcheck
- exportloopref
- gochecknoinits
- gofmt
- goheader
- goimports
- gomodguard
- goprintffuncname
- gosimple
- gosec
- govet
- ineffassign
- misspell
- nakedret
- nolintlint
- rowserrcheck
- scopelint
- staticcheck
- structcheck
- stylecheck
- typecheck
- unconvert
- unused
- varcheck
- whitespace
disable-all: true
issues:
exclude-rules:
- linters:
- stylecheck
text: "ST1005:"
- linters:
- errcheck
# headers.go has casts with values from contexts that should fail if there
# is no error, but it would be very unidiomatic to return an error from
# the functions that do these casts, and we completely control the
# context values within this file
path: internal/pkg/rpc/headers.go
- linters:
- gosec
# G101 checks for hardcoded credentials, and the variables named "*Password*
# trip this off.
path: internal/buf/bufcli/bufcli.go
text: "G101:"
- linters:
- gosec
# G204 checks that exec.Command is not called with non-constants.
# We call exec.Command for protoc and plugin proxying, and control the arguments completely.
path: internal/pkg/app/appproto/appprotoexec/binary_handler.go
text: "G204:"
- linters:
- gosec
# G204 checks that exec.Command is not called with non-constants.
# We call exec.Command for protoc and plugin proxying, and control the arguments completely.
path: internal/pkg/app/appproto/appprotoexec/protoc_proxy_handler.go
text: "G204:"
# we actually want to use this init in testing
- linters:
- gochecknoinits
path: internal/buf/bufcore/bufmodule/bufmoduletesting/bufmoduletesting.go