-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy path.golangci.yml
More file actions
35 lines (32 loc) · 829 Bytes
/
Copy path.golangci.yml
File metadata and controls
35 lines (32 loc) · 829 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
run:
timeout: 5m
tests: false # Skip test files entirely
linters:
enable:
- govet
- ineffassign
- staticcheck
disable:
# Disable errcheck - too noisy for cleanup/defer patterns
- errcheck
# Disable unused - many fields reserved for future implementation
- unused
# Disable gosimple - stylistic suggestions only
- gosimple
linters-settings:
staticcheck:
checks:
- all
- "-SA9003" # Disable empty branch check
- "-SA1012" # Disable nil context check (common in tests)
- "-SA6002" # Disable pointer-like argument check
- "-SA6005" # Disable EqualFold suggestion
issues:
exclude-rules:
# Exclude stub implementations
- path: stub\.go
linters:
- staticcheck
- path: mysql_stub\.go
linters:
- staticcheck