forked from cloudflare/pint
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
52 lines (48 loc) · 950 Bytes
/
.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
run:
deadline: 5m
output:
sort-results: true
linters:
enable:
- depguard
- gofumpt
- goimports
- revive
- misspell
- promlinter
- tenv
- errorlint
- errname
- exportloopref
- predeclared
- contextcheck
- exhaustive
- gocritic
- importas
- maligned
- nakedret
- prealloc
- unconvert
- testifylint
- godot
issues:
max-same-issues: 0
linters-settings:
depguard:
rules:
test:
files:
- "$test"
deny:
- pkg: "github.com/stretchr/testify/assert"
desc: "Use github.com/stretchr/testify/require instead of github.com/stretchr/testify/assert"
- pkg: "io/ioutil"
desc: "Use corresponding 'os' or 'io' functions instead."
goimports:
local-prefixes: github.com/cloudflare/pint
gofumpt:
extra-rules: true
govet:
check-shadowing: true
nakedret:
max-func-lines: 0