forked from grafana/mimir
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
60 lines (50 loc) · 1.44 KB
/
.golangci.yml
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
output:
format: line-number
linters:
enable:
- gci
- revive
- gofmt
- misspell
- errorlint
linters-settings:
errcheck:
# path to a file containing a list of functions to exclude from checking
# see https://github.com/kisielk/errcheck#excluding-functions for details
exclude: ./.errcheck-exclude
gci:
# Section configuration to compare against.
# Section names are case-insensitive and may contain parameters in ().
# The default order of sections is `standard > default > custom > blank > dot`,
# If `custom-order` is `true`, it follows the order of `sections` option.
# Default: ["standard", "default"]
sections:
- standard
- default
- prefix(github.com/grafana/mimir)
# Skip generated files.
# Default: true
skip-generated: true
# Enable custom order of sections.
# If `true`, make the section order the same as the order of `sections`.
# Default: false
custom-order: true
errorlint:
# Check for plain error comparisons.
comparison: true
# Do not check for plain type assertions and type switches.
asserts: false
# Do not check whether fmt.Errorf uses the %w verb for formatting errors.
errorf: false
run:
timeout: 10m
# List of build tags, all linters use it.
build-tags:
- netgo
- stringlabels
- requires_docker
- requires_libpcap
issues:
exclude-rules:
- linters: [revive]
text: "if-return"