-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.golangci.yml
More file actions
40 lines (39 loc) · 991 Bytes
/
.golangci.yml
File metadata and controls
40 lines (39 loc) · 991 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
32
33
34
35
36
37
38
39
40
version: "2"
linters:
enable:
- bodyclose
- containedctx
- contextcheck
- errorlint
- goconst
- godot
- importas
- nilerr
- promlinter
- revive
- sloglint
- testifylint
- unparam
- usestdlibvars
settings:
errcheck:
exclude-functions:
- fmt.Fprint
- fmt.Fprintf
- fmt.Fprintln
- (*os.File).Write
revive:
rules:
- name: exported
formatters:
enable:
- gci
- gofmt
- goimports
settings:
gci:
sections:
- standard # Standard section: captures all standard packages.
- default # Default section: contains all imports that could not be matched to another section type.
- prefix(github.com/qdrant) # Custom section: groups all imports with the specified Prefix (our company, but our own component).
- prefix(github.com/qdrant/qcloud-cli/) # Custom section: groups all imports with the specified Prefix (this component).