-
Notifications
You must be signed in to change notification settings - Fork 71
/
Copy path.golangci.yml
57 lines (57 loc) · 1.04 KB
/
.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
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
run:
concurrency: 4
timeout: 5m
tests: true
modules-download-mode: readonly
go: "1.23.4"
output:
# format is the output format - same as that of golangci-lint
formats:
- format: colored-line-number
print-issued-lines: true
print-linter-name: true
uniq-by-line: true
path-prefix: ""
sort-results: true
linters:
disable-all: true
enable:
- errcheck
- gocyclo
- gofmt
- gofumpt
- goimports
- gosec
- gosimple
- govet
- ineffassign
- misspell
- revive
- staticcheck
- typecheck
- unconvert
- unused
issues:
exclude-use-default: false
exclude:
- "^.*SA1019.*$" # Excluding SA1019 errors
linters-settings:
revive:
rules:
- name: exported
severity: warning
disabled: true
errcheck:
check-type-assertions: true
gosec:
exclude-generated: false
excludes:
- G107
- G204
- G301
- G304
- G306
- G307
- G115 # https://github.com/securego/gosec/issues/1185
severity: low
confidence: low