forked from go-piv/piv-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yaml
144 lines (129 loc) · 2.91 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
# golangci-lint settings. Non-exhaustive.
# See: https://golangci-lint.run/usage/configuration/ for exhaustive example
# This file contains all available configuration options
# with their default values.
# options for analysis running
run:
go: '1.20'
# default concurrency is a available CPU number
concurrency: 20
# timeout for analysis, e.g. 30s, 5m, default is 1m
timeout: 5m
skip-dirs:
- config-test
# default is true. Enables skipping of directories:
# vendor$, third_party$, testdata$, examples$, Godeps$, builtin$
skip-dirs-use-default: true
# exit code when at least one issue was found, default is 1
issues-exit-code: 1
# include test files or not, default is true
tests: true
# these fail.
skip-files:
- piv/pcsc_windows.go
- piv/pcsc_darwin.go
- piv/pcsc_errors.go
- piv/pcsc_test.go
- piv/pcsc_linux.go
- piv/pcsc_openbsd.go
- piv/pcsc_interface_helpers.go
- piv/pcsc_interface.go
- piv/pcsc_freebsd.go
- piv/pcsc_unix.go
linters:
enable-all: true
exclude-use-default: false
max-issues-per-linter: 0
disable:
- depguard
- inamedparam
- musttag
- revive
- execinquery
- exhaustivestruct
- godox
- golint
- gomoddirectives # this module fails
- ifshort
- ireturn
- lll
- nilnil
- nolintlint
- revive
- tagliatelle
- wastedassign
- wrapcheck
- varcheck
- varnamelen
issues:
# Excluding configuration per-path, per-linter, per-text and per-source
exclude-rules:
- path: bertlv/*_test.go
linters:
- lll
- musttag
- nolintlint
- testpackage
- varnamelen
# Exclude some linters from running on tests files.
- path: bertlv/*.go
linters:
- musttag
- nolintlint
# Exclude some linters from running on tests files.
- path: gpg-test-tool/
linters:
- deadcode
- lll
- musttag
- nolintlint
- unused
- wrapcheck
- forbidigo
- path: version/
linters:
- nolintlint
- path: piv/
linters:
- cyclop
- deadcode
- errcheck
- errname
- errorlint
- exhaustivestruct
- exhaustruct
- forbidigo
- forcetypeassert
- funlen
- gochecknoinits
- gocognit
- gocritic
- godox
- goerr113
- gofmt
- gofumpt
- gomnd
- gochecknoglobals
- gosec
- ifshort
- interfacer
- lll
- musttag
- nestif
- nlreturn
- nolintlint
- nonamedreturns
- predeclared
- paralleltest
- scopelint
- testpackage
- thelper
- unconvert
- unparam
- unused
- unparam
- whitespace
- wrapcheck
- wsl
- varcheck
- varnamelen