-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy path.golangci.yaml
34 lines (31 loc) · 1.12 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
linters:
disable-all: true
enable:
- depguard
# TODO(AUT-202): errcheck is too handy to leave out but requires more churn
# at time of writing
# - errcheck
- goimports
- gosimple
- govet
- ineffassign
- staticcheck
- unused
linters-settings:
depguard:
rules:
# The first reason for this is to minimize how often we're having to deal
# with many different kinds of key types when the generic forms of the
# keys work fine. The second is that it makes sure our code can handle
# keys sourced from differing places.
#
# refs: https://github.com/mozilla-services/autograph/issues/247
no-crypto11-in-signer-submodules:
list-mode: lax
files:
- "**/signer/**/*.go"
deny:
- pkg: "github.com/ThalesIgnite/crypto11"
desc: "Only indirect PKCS#11 work allowed in signer submodules (so, crypto11 is banned there)"
- pkg: "github.com/ThalesGroup/crypto11" # ThalesGroup is the more modern version
desc: "Only indirect PKCS#11 work allowed in signer submodules (so, crypto11 is banned there)"