-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy path.golangci.yml
More file actions
57 lines (57 loc) · 1022 Bytes
/
.golangci.yml
File metadata and controls
57 lines (57 loc) · 1022 Bytes
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
version: "2"
run:
issues-exit-code: 1
linters:
enable:
- asciicheck
- bodyclose
- errorlint
- gocritic
- gosec
- importas
- misspell
- modernize
- prealloc
- revive
- staticcheck
- tparallel
- unconvert
- unparam
- whitespace
settings:
gosec:
excludes:
- G115
modernize:
disable:
# Simplify code by using go1.26's new(expr).
- newexpr
# Suggest replacing omitempty with omitzero for struct fields.
- omitzero
revive:
rules:
- name: dot-imports
disabled: true
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
rules:
- linters:
- errcheck
- gosec
- prealloc
path: _test\.go
issues:
max-issues-per-linter: 0
max-same-issues: 0
uniq-by-line: false
formatters:
enable:
- gofmt
- goimports
exclusions:
generated: lax