-
Notifications
You must be signed in to change notification settings - Fork 51
Expand file tree
/
Copy path.golangci.yml
More file actions
50 lines (49 loc) · 1.08 KB
/
Copy path.golangci.yml
File metadata and controls
50 lines (49 loc) · 1.08 KB
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
version: "2"
run:
go: "1.26.4"
tests: true
timeout: 5m
modules-download-mode: readonly
linters:
enable:
- misspell
- testifylint
- unconvert
# gosec disabled in golangci-lint due to configuration complexity
# Can be enabled separately with: gosec -exclude=G101,G104,G115,G301,G302,G304,G306 ./...
disable:
- errcheck
- gocritic
- revive
- gosec
# Configuration for disabled linters is kept for reference if they are re-enabled
settings:
testifylint:
enable-all: true
errcheck:
exclude-functions:
- (*os.File).Close
- (*os.File).Sync
- os.Chdir
- os.Chmod
- os.Chtimes
- os.MkdirAll
- os.Remove
- os.RemoveAll
- os.WriteFile
gocritic:
enable-all: true
disabled-checks:
- ifElseChain
- singleCaseSwitch
- appendAssign
- unlambda
- elseif
- assignOp
- argOrder
- dupBranchBody
- deprecatedComment
- commentFormatting
- badCall
exclusions:
generated: lax