-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.golangci.yml
More file actions
51 lines (50 loc) · 1.11 KB
/
Copy path.golangci.yml
File metadata and controls
51 lines (50 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
version: "2"
linters:
default: none
enable:
- errcheck
- staticcheck
- ineffassign
- unused
- govet
- noctx
- wastedassign
- nilerr
- gocritic
- exhaustive
settings:
govet:
enable-all: true
staticcheck:
checks:
- "all"
- "-ST1000"
unused:
# Mark all struct fields that have been written to as used.
# Default: true
field-writes-are-uses: false
# Treat IncDec statement (e.g. `i++` or `i--`) as both read and write operation instead of just write.
# Default: false
post-statements-are-reads: true
# Mark all exported fields as used.
# default: true
exported-fields-are-used: false
# Mark all function parameters as used.
# default: true
# parameters-are-used: false
# Mark all local variables as used.
# default: true
local-variables-are-used: false
exclusions:
rules:
- path: "_test\\.go"
linters:
- noctx
- staticcheck
- unused
- errcheck
- gocritic
run:
build-tags:
- js
- wasm