-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.golangci.yml
More file actions
60 lines (57 loc) Β· 1.11 KB
/
.golangci.yml
File metadata and controls
60 lines (57 loc) Β· 1.11 KB
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
version: "2"
linters:
enable:
- bodyclose
- copyloopvar
- errcheck
- errorlint
- gocritic
- gosec
- govet
- ineffassign
- misspell
- nilerr
- prealloc
- revive
- staticcheck
- unconvert
- unparam
- unused
- usestdlibvars
- wastedassign
settings:
govet:
enable-all: true
errcheck:
check-type-assertions: true
gocritic:
enabled-tags:
- diagnostic
- performance
- style
revive:
rules:
- name: blank-imports
- name: context-as-argument
- name: dot-imports
- name: error-return
- name: error-strings
- name: error-naming
- name: exported
- name: increment-decrement
- name: var-naming
- name: range
- name: receiver-naming
- name: indent-error-flow
- name: superfluous-else
- name: unreachable-code
gosec:
excludes:
- G104 # unhandled errors β covered by errcheck
formatters:
enable:
- gofmt
- goimports
issues:
max-issues-per-linter: 0
max-same-issues: 0