forked from argoproj-labs/argocd-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.golangci.yml
More file actions
50 lines (50 loc) · 1.2 KB
/
Copy path.golangci.yml
File metadata and controls
50 lines (50 loc) · 1.2 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
version: "2"
linters:
enable:
- ginkgolinter # https://github.com/nunnatsa/ginkgolinter
- govet
- unused
- ineffassign
- unconvert
- unparam
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
rules:
- linters: [ staticcheck ]
text: "ST1001" # dot imports - common practice in Ginkgo/Gomega tests for readability
path: "test/"
paths:
- vendor/
- third_party$
- builtin$
- examples$
settings:
govet:
disable:
# TODO: re-enable after golangci-lint supports generics in inline analyzer
- inline # false positives on generic stdlib functions (slices.SortFunc, etc.)
staticcheck:
# https://staticcheck.dev/docs/configuration/options/#dot_import_whitelist
dot-import-whitelist:
# Ginkgo testsuites
- github.com/onsi/gomega
- github.com/onsi/ginkgo/v2
formatters:
enable:
- goimports
settings:
goimports:
local-prefixes:
- github.com/argoproj-labs/argocd-operator
exclusions:
generated: lax
paths:
- vendor/
- third_party$
- builtin$
- examples$