forked from yitsushi/totp-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
94 lines (88 loc) · 1.75 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
run:
timeout: 5m
issues-exit-code: 1
tests: false
allow-parallel-runners: true
linters-settings:
gci:
local-prefixes: github.com/yitsushi/totp-cli
goimports:
local-prefixes: github.com/yitsushi/totp-cli
staticcheck:
go: "1.18"
stylecheck:
go: "1.18"
govet:
shadow: true
misspell:
locale: US
cyclop:
max-complexity: 15
skip-tests: true
nolintlint:
allow-leading-space: false
allow-unused: false
require-explanation: true
require-specific: false
varnamelen:
ignore-names:
- ns
- err
- iv
depguard:
rules:
main:
allow:
- $gostd
- filippo.io/age
- github.com/urfave/cli/v2
- github.com/yitsushi/totp-cli
- github.com/kardianos/osext
- github.com/yitsushi/github-release-check
issues:
exclude-rules:
- path: _test\.go
linters:
- goerr113
- gocyclo
- errcheck
- gosec
- dupl
- funlen
- scopelint
- testpackage
- varnamelen
- path: internal/cmd/
linters:
- forbidigo
- text: "sig: func github.com/yitsushi/totp-cli/"
linters:
- wrapcheck
- text: "sig: func \\(\\*?github.com/yitsushi/totp-cli/"
linters:
- wrapcheck
- path: internal/info
linters:
- gochecknoglobals
- source: "// .* #\\d+"
# Ignore TODO lines if they have a GitHub Issue reference.
linters:
- godox
linters:
enable-all: true
disable:
# Deprecated
- interfacer
- nosnakecase
- varcheck
- deadcode
- golint
- ifshort
- maligned
- exhaustivestruct
- scopelint
- structcheck
# Disabled because I need naked return to handle extra errors in defer.
- nakedret
# Just disabled them...
- exhaustruct