forked from favonia/cloudflare-ddns
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yaml
54 lines (49 loc) · 2.3 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
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:
- deadcode # deprecated
- exhaustivestruct # deprecated; replaced by exhaustruct
- golint # deprecated; replaced by revive
- ifshort # deprecated
- interfacer # deprecated
- maligned # deprecated, and I value readability over bytes saved by alignment
- nosnakecase # deprecated; revive's var-naming check seems to be better
- scopelint # deprecated; replaced by exportloopref
- structcheck # deprecated
- varcheck # 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