-
Notifications
You must be signed in to change notification settings - Fork 44
/
.golangci.yaml
72 lines (65 loc) · 2.5 KB
/
.golangci.yaml
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
linters-settings:
exhaustive:
default-signifies-exhaustive: true
gci:
sections:
- standard
- default
- prefix(github.com/favonia/cloudflare-ddns)
gosec:
excludes:
- G101
govet:
settings:
printf:
funcs:
- github.com/favonia/cloudflare-ddns/internal/message.NewMonitorMessagef
- github.com/favonia/cloudflare-ddns/internal/message.NewNotifierMessagef
- (github.com/favonia/cloudflare-ddns/internal/pp.PP).Infof
- (github.com/favonia/cloudflare-ddns/internal/pp.PP).Noticef
- (github.com/favonia/cloudflare-ddns/internal/pp.PP).Hintf
- (*github.com/favonia/cloudflare-ddns/internal/mocks.MockPPMockRecorder).Infof
- (*github.com/favonia/cloudflare-ddns/internal/mocks.MockPPMockRecorder).Noticef
- (*github.com/favonia/cloudflare-ddns/internal/mocks.MockPPMockRecorder).Hintf
revive:
rules:
- name: exported
arguments:
- checkPrivateReceivers
- name: unused-parameter
arguments:
- allowRegex: "^_"
issues:
exclude-rules:
- path: "_test.go"
linters:
- lll
- dupl
include:
- EXC0002
- EXC0011
- EXC0012
- EXC0013
- EXC0014
- EXC0015
linters:
enable-all: true
disable:
- execinquery # deprecated
- gomnd # deprecated
- exportloopref # deprecated
- goconst # never leads to actual code changes
- mnd # never leads to actual code changes
- cyclop # can detect complicated code, but never leads to actual code changes
- funlen # can detect complicated code, but never leads to actual code changes
- gocognit # can detect complicated code, but never leads to actual code changes
- gocyclo # can detect complicated code, but never leads to actual code changes
- maintidx # can detect complicated code, but never leads to actual code changes
- nestif # can detect complicated code, but never leads to actual code changes
- depguard # useless; I do not introduce a dependency carelessly
- gosmopolitan # interesting for i18n checking, useless for this project
- nlreturn # I don't agree with the style enforced by nlreturn
- varnamelen # I don't agree with the style enforced by varnamelen
- wsl # I don't agree with the style enforced by wsl
- ireturn # doesn't work for private struct types; see https://github.com/butuzov/ireturn/issues/31
- nonamedreturns # named returns are needed in the internal setter package for partitioning records