-
Notifications
You must be signed in to change notification settings - Fork 46
Expand file tree
/
Copy path.golangci.yml
More file actions
48 lines (44 loc) · 830 Bytes
/
.golangci.yml
File metadata and controls
48 lines (44 loc) · 830 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
48
# https://golangci-lint.run/usage/configuration
version: "2"
run:
timeout: 5m
tests: true
concurrency: 4
linters:
enable:
- govet
- errcheck
- staticcheck
- revive
- ineffassign
- unused
- unparam
- misspell
- nakedret
- bodyclose
- gocritic
- makezero
- gosec
settings:
staticcheck:
checks:
- all
- "-QF1008" # Allow embedded structs to be referenced by field
- "-ST1000" # Do not require package comments
revive:
rules:
- name: exported
disabled: true
- name: exported
disabled: true
- name: package-comments
disabled: true
formatters:
enable:
- gofmt
- goimports
output:
formats:
text:
print-linter-name: true
print-issued-lines: true