-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path.golangci.yaml
53 lines (52 loc) · 1.14 KB
/
.golangci.yaml
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
issues:
exclude-use-default: false
exclude:
- "^don't use ALL_CAPS"
- "^ST1003: should not use ALL_CAPS"
- "^var-naming: don't use ALL_CAPS"
- "^G302: Expect file permissions to be 0600 or less"
- "^G304: Potential file inclusion via variable"
- "^G306: Expect WriteFile permissions to be 0600 or less"
- "^G301: Expect directory permissions to be 0750 or less"
exclude-rules:
# Dynamic errors are OK in main packages. Packages should use sentinels.
- path: "^([^/]*|build-tools/.*)$"
linters:
- err113
# Used with `cd learn; golangci-lint run`
- path: "^cmd/.*$"
linters:
- err113
linters:
enable-all: true
disable:
- cyclop
- depguard
- dupword
- dupl
- exhaustive
- exhaustruct
- exportloopref
- forbidigo
- forcetypeassert
- funlen
- gochecknoglobals
- goconst
- gocyclo
- godox
- gomoddirectives
- inamedparam
- interfacebloat
- ireturn
- lll
- mnd
- nestif
- nlreturn
- nilnil
- paralleltest
- tagalign
- tagliatelle
- testpackage
- varnamelen
- wrapcheck
- wsl