-
Notifications
You must be signed in to change notification settings - Fork 30
/
.golangci.yaml
51 lines (47 loc) · 1.33 KB
/
.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
40
41
42
43
44
45
46
47
48
49
50
51
run:
timeout: 5m
# all available settings of specific linters
linters-settings:
# Disable goheader for now, we can introduce this later
# goheader:
# template-path: header.txt
goimports:
local-prefixes: github.com/grafana/tempo-operator
misspell:
locale: US
govet:
disable-all: true
revive:
rules:
- name: exported
arguments:
- disableStutteringCheck
linters:
enable:
# Disable for now, we can introduce this later
# - goheader
- goimports
- misspell
- gosec
- govet
- exhaustive
- godot
- unparam
- revive
issues:
exclude-use-default: false
# Excluding configuration per-path, per-linter, per-text and per-source
exclude-rules:
# Exclude some linters from running on tests files.
- path: _test\.go
linters:
- gosec
# TODO (andreasgerstmayr): remove once we remove ComponentConfiguration
# https://github.com/kubernetes-sigs/kubebuilder/issues/3457
# https://github.com/kubernetes-sigs/controller-runtime/issues/895
- path: cmd/root.go
text: "SA1019: options.AndFrom is deprecated"
- path: cmd/root.go
text: "SA1019: ctrl.ConfigFile is deprecated"
- path: apis/config/v1alpha1/projectconfig_types.go
text: 'SA1019: "sigs.k8s.io/controller-runtime/pkg/config/v1alpha1" is deprecated'