-
-
Notifications
You must be signed in to change notification settings - Fork 39
/
.golangci.yml
76 lines (74 loc) · 2.51 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
linters:
enable-all: true
disable:
- tagalign
- cyclop # duplicate of gocyclo
- exhaustivestruct # not revelent
- gochecknoglobals
- gocognit # too strict
- goerr113 # too strict
- golint # deprecated
- gomnd # too strict
- interfacer # deprecated
- ireturn # not revelent
- maligned # deprecated
- scopelint # deprecated
- tagliatelle # breaking
- testpackage # too strict
- varnamelen # not revelent
- wrapcheck # too strict
- wsl # too strict
- maintidx # kind of duplicate of gocyclo
issues:
exclude-rules:
- path: main.go
text: bad syntax for struct tag pair
- path: main.go # FIXME
text: Function 'main' is too long
- path: (.+)_test.go
linters:
- typecheck
- path: metrics/prometheus/prometheus.go # FIXME
text: counter metrics should have "_total" suffix
- path: local/local.go # FIXME
text: has complex nested blocks
- path: local/local.go # FIXME
text: Function 'Locally' has too many statements
- path: gitlab/gitlab.go # FIXME
text: Function 'Backup' is too long
- path: gitlab/gitlab.go # FIXME
text: Function 'Get' has too many statements
- path: gitlab/gitlab.go # FIXME
text: cyclomatic complexity \d+ of func `Get` is high
- path: gitlab/gitlab.go # FIXME
text: has complex nested blocks
- path: gogs/gogs.go # FIXME
text: has complex nested blocks
- path: gogs/gogs.go # FIXME
text: Function 'Backup' is too long
- path: gogs/gogs.go # FIXME
text: Function 'Get' has too many statements
- path: bitbucket/bitbucket.go # FIXME
text: Function 'Get' is too long
- path: bitbucket/bitbucket.go # FIXME
text: type assertion must be checked
- path: gitea/gitea.go
text: .code.gitea.io/sdk/gitea.ListOrgReposOptions. composite literal uses unkeyed fields
- path: gitea/gitea.go # FIXME
text: has complex nested blocks
- path: gitea/gitea.go # FIXME
text: Function 'Backup' is too long
- path: gitea/gitea.go # FIXME
text: Function 'Get' has too many statements
- path: gitea/gitea.go # FIXME
text: cyclomatic complexity \d+ of func `Get` is high
- path: gitea/gitea.go # FIXME
text: lines are duplicate of `gitea/gitea.go:\d+-\d+`
- path: github/github.go # FIXME
text: Function 'Get' has too many statements
- path: github/github.go # FIXME
text: has complex nested blocks
linters-settings:
forbidigo:
forbid:
- '^print(ln)?$'