-
Notifications
You must be signed in to change notification settings - Fork 46
/
.golangci.yml
47 lines (43 loc) · 1.22 KB
/
.golangci.yml
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
linters:
disable-all: true
enable:
- gofmt
- govet
- goimports
- misspell
- goconst
- revive
- errcheck
- unconvert
- staticcheck
- exportloopref
issues:
exclude:
- "func name will be used as test\\.test.* by other packages, and that stutters; consider calling this"
- "and that stutters; consider calling this"
- "potential file inclusion via variable"
- "should have( a package)? comment"
- "error return value of `logging.setloglevel` is not checked"
- "comment on exported"
- "(func|method) \\w+ should be \\w+"
- "(type|var|struct field|(method|func) parameter) `\\w+` should be `\\w+`"
- "(g306|g301|g307|g108|g302|g204|g104)"
- "don't use all_caps in go names"
- "string .* has .* occurrences, make it a constant"
- "a blank import should be only in a main or test package, or have a comment justifying it"
- "package comment should be of the form"
exclude-use-default: false
exclude-rules:
- path: storage/migrations/.*
linters:
- misspell
- path: schemas/.*
linters:
- misspell
linters-settings:
goconst:
min-occurrences: 6
misspell:
ignore-words:
- "surveyer"
- "Surveyer"