-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.golangci.yaml
54 lines (50 loc) · 1.25 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
---
# SPDX-FileCopyrightText: 2023 Steffen Vogel <[email protected]>
# SPDX-License-Identifier: Apache-2.0
linters:
enable:
- forbidigo
- gosec
- gosimple
- godot
- tagliatelle
- revive
- staticcheck
- gocritic
- depguard
linters-settings:
depguard:
rules:
main:
files:
- "!**/*_test.go"
allow:
- $gostd
- cunicu.li/go-rosenpass
- github.com/cilium/ebpf
- github.com/cilium/ebpf/asm
- github.com/cloudflare/circl/kem
- github.com/cloudflare/circl/kem/kyber/kyber512
- github.com/cloudflare/circl/kem/mceliece/mceliece460896
- github.com/gopacket/gopacket
- github.com/gopacket/gopacket/layers
- github.com/mdlayher/socket
- github.com/pelletier/go-toml/v2
- github.com/spf13/cobra
- golang.org/x/crypto/blake2b
- golang.org/x/crypto/chacha20poly1305
- golang.org/x/net/bpf
- golang.org/x/sys/unix
- golang.zx2c4.com/wireguard/wgctrl
- gopkg.in/ini.v1
deny:
- pkg: math/rand
desc: Use cryptographic PRNG
forbidigo:
forbid:
- ^os.Exit$
- ^panic$
- ^print(ln)?$
- ^unsafe\.
- ^log\.
- ^fmt\.(Printf|Scanf|Sprintf|Sscanf)$