-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.golangci.yml
More file actions
47 lines (47 loc) · 1018 Bytes
/
.golangci.yml
File metadata and controls
47 lines (47 loc) · 1018 Bytes
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
run:
timeout: 5m
linters:
disable-all: true
enable:
- errcheck
- govet
- ineffassign
- staticcheck
- unused
- revive
- gocritic
- gosec
- bodyclose
- noctx
- errorlint
- prealloc
- unparam
- nilerr
- forcetypeassert
- makezero
- exhaustive # switch on enum covers all cases
- goconst # repeated string literals → constants
- misspell # typos in comments and strings
- testifylint # testify best practices (since testify is mandated)
linters-settings:
revive:
rules:
- name: context-as-argument
- name: error-return
- name: error-strings
- name: error-naming
- name: exported
- name: if-return
- name: var-naming
- name: package-comments
exhaustive:
default-signifies-exhaustive: true
goconst:
min-len: 3
min-occurrences: 3
testifylint:
enable-all: true
issues:
exclude-use-default: false
max-issues-per-linter: 0
max-same-issues: 0