forked from stolostron/multicluster-observability-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.golangci.yml
More file actions
85 lines (74 loc) · 1.44 KB
/
Copy path.golangci.yml
File metadata and controls
85 lines (74 loc) · 1.44 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
80
81
82
83
84
version: "2"
# options for analysis running
run:
# timeout for analysis, e.g. 30s, 5m, default is 1m
timeout: 5m
# exit code when at least one issue was found, default is 1
issues-exit-code: 1
# TODO(saswatamcode): Remove this by cleaning up our test suite.
tests: false
linters:
default: none
enable:
# Sorted alphabetically.
- bodyclose
- errcheck
- exptostd
- goconst
- gocritic
- gosec
- govet
- ineffassign
- intrange
- loggercheck
- misspell
- modernize
- nolintlint
- prealloc
- predeclared
- promlinter
- reassign
- staticcheck
- tparallel
- unconvert
- unparam
- unused
- usestdlibvars
- usetesting
- wastedassign
- whitespace
settings:
errcheck:
exclude-functions:
- (github.com/go-kit/log.Logger).Log
misspell:
locale: US
goconst:
min-occurrences: 5
ignore-string-values:
- 'true'
gosec:
excludes:
- G104 # Already covererd by errcheck which allows exclusions
exclusions:
rules:
- path: tests/
linters:
- gosec
formatters:
# Enable specific formatter.
# Default: [] (uses standard Go formatting)
enable:
- gci
- gofmt
- gofumpt
- goimports
- golines
settings:
golines:
# Target maximum line length.
# Default: 100
max-len: 200
exclusions:
paths:
- "vendor/.*"