-
Notifications
You must be signed in to change notification settings - Fork 40
/
.golangci.yml
50 lines (47 loc) · 993 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
45
46
47
48
49
50
# Refer to golangci-lint's example config file for more options and information:
# https://github.com/golangci/golangci-lint/blob/master/.golangci.example.yml
# https://golangci-lint.run/usage/configuration/#config-file
run:
timeout: 10m
linters:
disable-all: true
enable:
- asciicheck
- bidichk
- gofmt
- govet
- unconvert
- staticcheck
- ineffassign
- unparam
- gomodguard
- errcheck
- errname
- errorlint
- gosimple
- typecheck
- unused
- bodyclose
- durationcheck
- goconst
- tenv
- wastedassign
- whitespace
- goprintffuncname
- misspell
- noctx
- predeclared
- dogsled
issues:
max-same-issues: 50
linters-settings:
govet:
# Enable all analyzers.
# Default: false
enable-all: true
# Disable analyzers by name.
# Run `go tool vet help` to see all analyzers.
# Default: []
disable:
- fieldalignment # too strict
- shadow # too strict