forked from cortexproject/cortex
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.golangci.yml
51 lines (46 loc) · 1.06 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
output:
format: line-number
linters:
enable:
- goimports
- revive
- gofmt
- misspell
- depguard
linters-settings:
staticcheck:
checks:
- all
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
goimports:
local-prefixes: "github.com/cortexproject/cortex"
revive:
severity: error # We only want critical issues.
govet:
disable:
- printf
depguard:
rules:
main:
list-mode: lax
files:
- $all
deny:
- pkg: "github.com/go-kit/kit/log"
desc: Use github.com/go-kit/log instead of github.com/go-kit/kit/log"
run:
timeout: 5m
# List of build tags, all linters use it.
build-tags:
- netgo
- requires_docker
- integration
- integration_alertmanager
- integration_backward_compatibility
- integration_memberlist
- integration_querier
- integration_ruler
- integration_query_fuzz