-
Notifications
You must be signed in to change notification settings - Fork 114
Expand file tree
/
Copy path.golangci.yaml
More file actions
91 lines (87 loc) 路 3.27 KB
/
Copy path.golangci.yaml
File metadata and controls
91 lines (87 loc) 路 3.27 KB
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
version: "2"
linters:
default: all
disable:
- 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
- wsl_v5 # I don't agree with the style enforced by wsl_v5
- noinlineerr # I don't agree with the style enforced by noinlineerr; even good code explicitly recognized by Google will be flagged
- 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
settings:
exhaustive:
default-signifies-exhaustive: true
gosec:
excludes:
- G101
govet:
settings:
printf:
funcs:
- github.com/favonia/cloudflare-ddns/internal/heartbeat.NewMessagef
- github.com/favonia/cloudflare-ddns/internal/notifier.NewMessagef
- (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).InfoOncef
- (github.com/favonia/cloudflare-ddns/internal/pp.PP).NoticeOncef
- (*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).InfoOncef
- (*github.com/favonia/cloudflare-ddns/internal/mocks.MockPPMockRecorder).NoticeOncef
revive:
rules:
- name: exported
arguments:
- checkPrivateReceivers
- name: unused-parameter
arguments:
- allowRegex: ^_
perfsprint:
strconcat: false # I think this is anti-pattern
exclusions:
generated: lax
presets:
- common-false-positives
- legacy
- std-error-handling
rules:
- linters:
- dupl
- lll
path: _test.go
- linters: # See https://github.com/securego/gosec/issues/1500
- gosec
text: G704
paths:
- third_party$
- builtin$
- examples$
formatters:
enable:
- gci
- gofmt
- gofumpt
- goimports
settings:
gci:
sections:
- standard
- default
- prefix(github.com/favonia/cloudflare-ddns)
exclusions:
generated: lax
paths:
- third_party$
- builtin$
- examples$