-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.golangci.yml
More file actions
22 lines (20 loc) · 838 Bytes
/
Copy path.golangci.yml
File metadata and controls
22 lines (20 loc) · 838 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
version: "2"
linters:
enable:
# Security
- gosec # Go-specific security issues: weak crypto, insecure TLS,
# command injection, path traversal, hardcoded credentials
# Correctness
- bodyclose # HTTP response bodies left unclosed (resource leak)
- noctx # HTTP requests constructed without a context
- sqlclosecheck # sql.Rows/Stmt not closed
- errcheck # Unhandled errors
# Quality
- staticcheck # Deep semantic analysis: deprecated API usage, correctness
- govet # Suspicious constructs (shadowed vars, printf format mismatches)
- ineffassign # Assignments whose values are never used
settings:
gosec:
# G304 (file path from variable) produces noise on internal tools that deliberately accept
# configurable paths. Revisit as the codebase grows.
excludes: []