-
Notifications
You must be signed in to change notification settings - Fork 2
/
.golangci.yaml
39 lines (39 loc) · 1009 Bytes
/
.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
run:
timeout: 10m
issues:
exclude-files:
- "generated.*\\.go$"
linters:
enable:
- gci
- goconst
- gofmt
- goimports
- unparam
- importas
- bodyclose
- containedctx
- contextcheck
- errorlint
- nilerr
- promlinter
- sloglint
- testifylint
- unparam
- usestdlibvars
- revive
- godot
linters-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/terraform-provider-qdrant-cloud/) # Custom section: groups all imports with the specified Prefix (this component).
importas:
alias:
- pkg: ^k8s\.io/apimachinery/pkg/apis/(\w+)/(v[\w\d]+)$
alias: $1$2
revive:
rules:
- name: exported