-
Notifications
You must be signed in to change notification settings - Fork 105
/
Copy path.golangci.yaml
41 lines (41 loc) · 1.01 KB
/
.golangci.yaml
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
run:
timeout: 5m
modules-download-mode: vendor
issues:
exclude-dirs:
- vendor
exclude-rules:
# Temporarily disable the deprecation warnings until we rewrite the code based on deprecated functionality.
- linters:
- staticcheck
text: "SA1019: .* deprecated"
linters:
disable-all: true
enable:
- errcheck
- bodyclose
- gosimple
- govet
- ineffassign
- misspell
- nolintlint
- nosprintfhostport
- staticcheck
- tenv
- typecheck
- unconvert
- unused
- wastedassign
- whitespace
linters-settings:
errcheck:
# 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
misspell:
# Do not set locale explicitly, the default is to use a neutral variety of English.
# Setting locale to US will cause correcting the British spelling of 'colour' to 'color'.
# locale: US
ignore-words:
- NTO
- nto