-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.golangci.yml
More file actions
48 lines (45 loc) · 938 Bytes
/
Copy path.golangci.yml
File metadata and controls
48 lines (45 loc) · 938 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
45
46
47
48
version: "2"
run:
timeout: 5m
build-tags:
- integration
linters:
default: none
enable:
- errcheck
- govet
- ineffassign
- staticcheck
- unused
- misspell
- revive
settings:
errcheck:
exclude-functions:
# HTTP response encoding — client already has the status code,
# nothing useful we can do if the write fails.
- (*encoding/json.Encoder).Encode
revive:
rules:
- name: exported
disabled: true
misspell:
locale: US
exclusions:
paths:
- tests/integration
- bin
rules:
- path: _test\.go
linters:
- errcheck
- revive
# cmd/benchmark is a one-shot CLI benchmark tool; cleanup-path
# errors (Close/Delete/Revoke) are intentionally ignored.
- path: cmd/benchmark/
linters:
- errcheck
formatters:
enable:
- gofmt
- goimports