-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy path.golangci.yml
More file actions
79 lines (79 loc) · 2.16 KB
/
Copy path.golangci.yml
File metadata and controls
79 lines (79 loc) · 2.16 KB
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
version: "2"
run:
concurrency: 4
linters:
enable:
- ginkgolinter
- importas
- misspell
- revive
settings:
importas:
alias:
# APIs
- pkg: github.com/ironcore-dev/ironcore/api/(\w+)/(v[\w\d]+)
alias: ${1}${2}
- pkg: k8s.io/api/(\w+)/(v[\w\d]+)
alias: ${1}${2}
# Listers
- pkg: github.com/ironcore-dev/client-go/listers/(\w+)/(v[\w\d]+)
alias: ${1}${2}listers
- pkg: k8s.io/client-go/listers/(\w+)/(v[\w\d]+)
alias: ${1}${2}listers
# Informers
- pkg: github.com/ironcore-dev/client-go/informers
alias: ironcoreinformers
- pkg: github.com/ironcore-dev/client-go/informers/(\w+)/(v[\w\d]+)
alias: ${1}${2}informers
- pkg: k8s.io/client-go/informers
alias: k8sinformers
- pkg: k8s.io/client-go/informers/(\w+)/(v[\w\d]+)
alias: ${1}${2}informers
# Internal
- pkg: github.com/ironcore-dev/ironcore/internal/apis/(\w+)
alias: ${1}
- pkg: github.com/ironcore-dev/ironcore/internal/client/(\w+)
alias: ${1}client
# Apply Configurations
- pkg: github.com/ironcore-dev/client-go/applyconfigurations/(\w+)/(v[\w\d]+)
alias: ${1}${2}apply
- pkg: k8s.io/client-go/applyconfigurations/(\w+)/(v[\w\d]+)
alias: ${1}${2}apply
misspell:
ignore-rules:
- strat
- iritable
revive:
severity: error
rules:
- name: exported
arguments:
- disableStutteringCheck
- name: if-return
disabled: true
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
rules:
- path: (.+)\.go$
text: 'exported: type name will be used as (.+) by other packages, and that stutters; consider calling this (.+)'
paths:
- third_party$
- builtin$
- examples$
- remotecommand # Exclude this for now
severity:
default: error
formatters:
enable:
- goimports
exclusions:
generated: lax
paths:
- third_party$
- builtin$
- examples$