This repository was archived by the owner on Oct 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy path.golangci.yaml
More file actions
58 lines (53 loc) · 1.32 KB
/
.golangci.yaml
File metadata and controls
58 lines (53 loc) · 1.32 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
# options for analysis running
run:
concurrency: 4
timeout: 5m
modules-download-mode: readonly
linters-settings:
govet:
check-shadowing: true
settings:
printf: # analyzer name, run `go tool vet help` to see all analyzers
funcs: # run `go tool vet help printf` to see available settings for `printf` analyzer
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Infof
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Warnf
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Errorf
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Fatalf
enable-all: true
disable:
- fieldalignment
goimports:
local-prefixes: github.com/signalfx/splunk-otel-collector-operator
gofmt:
simplify: true
maligned:
suggest-new: true
misspell:
locale: US
linters:
disable:
- errcheck
- goheader
enable:
- exhaustive
- exportloopref
- godot
- gofmt
- goimports
- gosec
- govet
- misspell
- revive
- staticcheck
- unconvert
- unparam
issues:
# Excluding configuration per-path, per-linter, per-text and per-source
exclude-rules:
# Exclude some linters from running on tests files.
- text: "G404:"
linters:
- gosec
- text: "G402:"
linters:
- gosec