-
Notifications
You must be signed in to change notification settings - Fork 9
/
.golangci.yaml
51 lines (49 loc) · 1.17 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
output:
sort-results: true
linters:
enable:
- gofmt
- goimports
# prettier-ignore
disable:
- tagliatelle # we're parsing data from external sources
- varnamelen # maybe later
- exhaustruct # overkill
- forcetypeassert # too hard
- lll # line length is hard
- godox # to-do comments are fine
- godot # comments are fine without full stops
- mnd # not every number is magic
- wsl # disagree with, for now
- ireturn # disagree with, sort of
- nonamedreturns # they have their uses
presets:
- bugs
- comment
- error
- performance
- sql
- style
- test
- unused
linters-settings:
depguard:
rules:
regexp:
files:
- '!**/internal/cachedregexp/**'
- '!**/main_test.go'
deny:
- pkg: 'regexp'
desc:
'Use github.com/g-rath/osv-detector/internal/cachedregexp instead'
issues:
exclude-rules:
- path: _test\.go
linters:
- goconst
- goerr113
- dupl
- path: main.go
linters:
- gochecknoglobals