-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.golangci.pipe.yml
47 lines (43 loc) · 1.06 KB
/
.golangci.pipe.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
linters:
disable-all: true
enable:
- errcheck
- gofmt
- revive
- goimports
- govet
linters-settings:
errcheck:
check-type-assertions: true
check-blank: true
gofmt:
simplify: true
golint:
min-confidence: 0
goimports:
local-prefixes: github.com/obalunenko/logger/
revive:
# see https://github.com/mgechev/revive#available-rules for details.
ignore-generated-header: true
severity: warning
rules:
- name: indent-error-flow
severity: warning
- name: exported
severity: warning
- name: defer
severity: warning
arguments: [ [ "call-chain", "loop", "method-call", "recover", "return" ] ]
run:
issues-exit-code: 1
tests: true
issues:
exclude-use-default: false
exclude-files:
- \.pb\.go$
exclude-dirs:
- vendor
exclude:
# for "public interface + private struct implementation" cases only!
- exported func * returns unexported type *, which can be annoying to use
- should have a package comment, unless it's in another file for this package