-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.golangci.yml
29 lines (28 loc) · 983 Bytes
/
.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
linters:
enable-all: true
disable:
# Magic number checker. Most of the time, the magic numbers in the are
# necessary.
- mnd
# Variable name lengths. I find that most of the variables with short names
# require short names, or it doesn't make sense to give them long ones.
- varnamelen
# This linter checks to make sure that nothing is writing output. For what
# these programs are doing, 99% of the time, they need to write to STDOUT.
- forbidigo
linters-settings:
depguard:
rules:
main:
list-mode: strict
allow:
- $gostd
- github.com/charmbracelet/bubbletea
- github.com/charmbracelet/lipgloss
- github.com/charmbracelet/huh
- github.com/Kaamkiya/gg
deny:
- pkg: "math/rand$"
desc: "Use math/rand/v2, or crypto/rand instead."
- pkg: "reflect"
desc: "You shouldn't need dynamic types. Make an issue if you do."