-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yaml
28 lines (24 loc) · 956 Bytes
/
.golangci.yaml
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
output:
# sorts results by: filepath, line and column
sort-results: true
linters:
enable:
- revive # general purpose linter, drop-in replacement for golint + some extra
- whitespace # checks for unnecessary newlines and trailing spaces
- unconvert # check for unnecessary type conversions
- promlinter # checks that prometheus metrics follow prometheus naming conventions, see https://prometheus.io/docs/practices/naming/
- nilerr # checks for cases where a nil value is returned even though a checked error is non-nil
- gofmt # basic gofmt + the simplification flag "-s"
- unparam # reports unused function parameters
- goimports # reformats imports respecting the local prefix defined below
linters-settings:
goimports:
local-prefixes: github.com/dfioravanti/httpregistry
issues:
exclude-use-default: false
exclude-rules:
- linters:
- revive
text: package-comments
run:
timeout: 2m