-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.golangci.yaml
More file actions
31 lines (28 loc) · 840 Bytes
/
.golangci.yaml
File metadata and controls
31 lines (28 loc) · 840 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
version: "2"
linters:
# Default set of linters.
# The value can be:
# - `standard`: https://golangci-lint.run/docs/linters/#enabled-by-default
# - `all`: enables all linters by default.
# - `none`: disables all linters by default.
# - `fast`: enables only linters considered as "fast" (`golangci-lint help linters --json | jq '[ .[] | select(.fast==true) ] | map(.name)'`).
# Default: standard
default: all
disable:
- wsl
- depguard
- exhaustruct
- bodyclose # closing in function
- noinlineerr # if err = X ;
- nonamedreturns
- varnamelen
- prealloc # flags when size unknown only in CI
settings:
revive:
rules:
# only 1 package...
- name: package-comments
disabled: true
staticcheck:
checks:
- "-ST1011" # one letter variable