-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.golangci.yml
More file actions
41 lines (38 loc) · 809 Bytes
/
.golangci.yml
File metadata and controls
41 lines (38 loc) · 809 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
run:
timeout: 5m
linters:
enable:
- errcheck
- govet
- staticcheck
- unused
- gosimple
- ineffassign
- typecheck
- misspell
- gocritic
- revive
- gofmt
- bodyclose
- gosec
- noctx
linters-settings:
revive:
rules:
- name: exported
severity: warning
disabled: true # allow unexported in package main
gosec:
excludes:
- G104 # unhandled errors on deferred Close
- G304 # file path from variable (expected for config loading)
- G204 # subprocess with variable args (validated by isValidHostname)
gocritic:
disabled-checks:
- ifElseChain # acceptable in error classification functions
issues:
exclude-dirs:
- testbed
- web
max-issues-per-linter: 50
max-same-issues: 5