-
Notifications
You must be signed in to change notification settings - Fork 73
/
.golangci.yml
48 lines (42 loc) · 1.33 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
48
---
# Almost all linters; some of them are optional.
run:
skip-dirs:
- bogus
linters-settings:
govet:
check-shadowing: true
goimports:
local-prefixes: gopkg.in/reform.v1
linters:
enable-all: true
disable:
- goerr113 # reform v1 should not wrap errors to keep SemVer compatibility
- golint # deprecated
- gomnd # too annoying
- interfacer # deprecated
- lll # too annoying
- maligned # deprecated
- nlreturn # too annoying
- scopelint # deprecated
- wrapcheck # reform v1 should not wrap errors to keep SemVer compatibility
- wsl # too annoying
issues:
exclude-use-default: false
exclude:
# gosec - we are making an ORM after all
- "G201: SQL string formatting"
- "G202: SQL string concatenation"
# # golint - matches database/sql.Result.LastInsertId()
# # > method LastInsertIdMethod should be LastInsertIDMethod
# # > type `LastInsertIdMethod` should be `LastInsertIDMethod`
# # > var `lastInsertIdMethod` should be `lastInsertIDMethod`
# - "`?LastInsertIdMethod`? should be `?LastInsertIDMethod`?"
exclude-rules:
# - path: internal/test/models/
# linters:
# - golint
- path: _test\.go
linters:
- funlen # tests may be long
- testpackage # senseless