-
Notifications
You must be signed in to change notification settings - Fork 23
/
.golangci.yaml
46 lines (41 loc) 路 1.9 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
linters-settings:
gci:
sections:
- standard
- default
- prefix(github.com/favonia/cloudflare-ddns)
exhaustive:
default-signifies-exhaustive: true
govet:
settings:
printf:
funcs:
- (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).Warningf
- (github.com/favonia/cloudflare-ddns/internal/pp.PP).Errorf
- (*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).Warningf
- (*github.com/favonia/cloudflare-ddns/internal/mocks.MockPPMockRecorder).Errorf
revive:
rules:
- name: unused-parameter
arguments:
- allowRegex: "^_"
linters:
enable-all: true
disable:
- execinquery # deprecated
- gomnd # deprecated
- 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
- maintidx # 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 updater package