-
Notifications
You must be signed in to change notification settings - Fork 56
/
.golangci.yml
59 lines (55 loc) · 997 Bytes
/
.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
49
50
51
52
53
54
55
56
57
58
59
run:
go: 1.19
timeout: 5m
linters-settings:
revive:
rules:
- name: var-naming
arguments: [[ID, API, HTTP], []]
gci:
sections:
- standard
- default
- prefix(github.com/infrahq/infra)
gocritic:
disabled-checks:
- singleCaseSwitch
custom:
querylinter:
path: ./internal/tools/querylinter/cmd/querylinter.so
description: Look for incorrect use of querybuilder.Builder
issues:
exclude-rules:
- linters: [errcheck]
text: "tx\\.Rollback"
linters:
enable:
- asciicheck
- durationcheck
- errcheck
- errorlint
- exhaustive
- exportloopref
- forcetypeassert
- gci
- gocritic
- gofmt
- gosec
- gosimple
- govet
- ineffassign
- makezero
- misspell
- nakedret
- nilerr
- noctx
- querylinter
- revive
- rowserrcheck
- sqlclosecheck
- staticcheck
- typecheck
- unused
- wastedassign
disable:
- scopelint