-
Notifications
You must be signed in to change notification settings - Fork 65
/
.golangci.yml
74 lines (74 loc) · 1.76 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
run:
concurrency: 4
timeout: 5m
tests: true
modules-download-mode: readonly
go: "1.22.4"
output:
# Format: colored-line-number|line-number|json|colored-tab|tab|checkstyle|code-climate|junit-xml|github-actions|teamcity
#
# Multiple can be specified by separating them by comma, output can be provided
# for each of them by separating format name and path by colon symbol.
# Output path can be either `stdout`, `stderr` or path to the file to write to.
# Example: "checkstyle:report.xml,json:stdout,colored-line-number"
#
# Default: colored-line-number
format: colored-line-number
# Print lines of code with issue.
# Default: true
print-issued-lines: true
# Print linter name in the end of issue text.
# Default: true
print-linter-name: true
# Make issues output unique by line.
# Default: true
uniq-by-line: true
# Add a prefix to the output file references.
# Default: ""
path-prefix: ""
# Sort results by: filepath, line and column.
# Default: false
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:
go-version-checker:
min-version: "1.22.4"
revive:
rules:
- name: exported
severity: warning
disabled: true
errcheck:
check-type-assertions: true
gosec:
exclude-generated: false
excludes:
- G204
- G301
- G304
- G306
- G307
- G115 # https://github.com/securego/gosec/issues/1185
severity: low
confidence: low