-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.golangci.yml
51 lines (51 loc) · 1.15 KB
/
.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
run:
timeout: 2m
linters:
enable-all: true
disable:
# Deprectated
- exportloopref
# Inappropriate
- depguard
- exhaustruct
- funlen
- gochecknoglobals
- gochecknoinits
- lll
- paralleltest
- varnamelen
- wsl
linters-settings:
cyclop:
max-complexity: 20
errcheck:
exclude-functions:
# Happens on exit via defer
- (*go.uber.org/zap.Logger).Sync
gci:
sections:
- standard
- default
- prefix(github.com/maxbrunet/bitbucket-semantic-pull-requests)
gofumpt:
extra-rules: true
goimports:
local-prefixes: github.com/maxbrunet/bitbucket-semantic-pull-requests
ireturn:
allow:
- anon
- error
- empty
- stdlib
- github\.com\/leodido\/go-conventionalcommits
issues:
max-same-issues: 0
max-issues-per-linter: 0
exclude-use-default: false
exclude-rules:
- linters:
- errcheck
# Taken from the default exclusions (that are otherwise disabled above).
text: Error return value of .((os\.)?std(out|err)\..*|.*Close|.*Flush|os\.Remove(All)?|.*print(f|ln)?|os\.(Un)?Setenv). is not checked
output:
sort-results: true