-
Notifications
You must be signed in to change notification settings - Fork 162
Expand file tree
/
Copy path.golangci.yml
More file actions
47 lines (45 loc) · 1.06 KB
/
.golangci.yml
File metadata and controls
47 lines (45 loc) · 1.06 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
version: "2"
linters:
enable:
- revive
settings:
revive:
enable-default-rules: true
rules:
- name: exported
disabled: true
- name: var-naming
disabled: true
- name: package-comments
disabled: true
- name: unused-parameter
disabled: true
- name: error-strings
disabled: true
staticcheck:
checks:
- all
# A `-` preceding a linter name disables it.
# Disable ST1000 to allow packages without comments
- -ST1000
# Disable ST1005 to allow error strings to start with uppercase letters
- -ST1005
# Disable ST1003 to allow underscores in variable names
- -ST1003
# Disable these 3 to allow comments on exported things to have the improper form
- -ST1020
- -ST1021
- -ST1022
errcheck:
exclude-functions:
- (*os.File).Close
formatters:
enable:
- goimports
run:
relative-path-mode: cfg
go: '1.26.2'
output:
formats:
text:
path: stderr