-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Expand file tree
/
Copy path.golangci.yml
More file actions
44 lines (44 loc) · 941 Bytes
/
.golangci.yml
File metadata and controls
44 lines (44 loc) · 941 Bytes
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
version: "2"
linters:
enable:
- depguard
- misspell
- revive
settings:
depguard:
rules:
no_exec_policy:
files:
- '!$test'
deny:
- pkg: os/exec
desc: Using os/exec to run sub processes it not allowed by policy
errcheck:
# Used in HTTP handlers, any error is handled by the server itself.
exclude-functions:
- (net/http.ResponseWriter).Write
revive:
rules:
- name: unused-parameter
severity: warning
disabled: true
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
rules:
- linters:
- errcheck
path: _test.go
formatters:
enable:
- goimports
exclusions:
generated: lax
settings:
goimports:
local-prefixes:
- github.com/prometheus/node_exporter