forked from yorkie-team/yorkie
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
44 lines (41 loc) · 1009 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
run:
deadline: 5m
linters:
enable:
- errcheck
- goimports
- govet
- goconst
- gocyclo
- gofmt
- revive
- goprintffuncname
- gosec
- lll
- misspell
- nakedret
- wrapcheck
disable:
- gosimple
- staticcheck
- structcheck
- unused
linters-settings:
goimports:
local-prefixes: github.com/yorkie-team/yorkie
gosec:
excludes:
- G107 # Potential HTTP request made with variable url
wrapcheck:
ignoreSigRegexps:
- github.com/yorkie-team/yorkie # Ignore all methods in internal package
- google.golang.org/grpc/status # Ignore all methods in grpc/status package
- google.golang.org/grpc/internal/status # Ignore all methods in grpc/internal/status package
- context.Context # Ignore all methods in context package
issues:
exclude-use-default: false
# Excluding configuration per-path, per-linter, per-text and per-source
exclude-rules:
- text: "G112:"
linters:
- gosec