-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.golangci.yml
More file actions
35 lines (31 loc) · 808 Bytes
/
Copy path.golangci.yml
File metadata and controls
35 lines (31 loc) · 808 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
version: "2"
run:
timeout: 5m
linters:
enable:
- errcheck
- govet
- ineffassign
- staticcheck
- unused
- gosec
- bodyclose
- misspell
- unconvert
- gocritic
settings:
gosec:
excludes:
- G402 # TLS InsecureSkipVerify - intentional for MITM proxy
- G304 # File inclusion via variable - CA cert loading from user-specified dir is expected
- G306 # WriteFile permissions - CA cert (0644) is public by design
- G302 # OpenFile permissions - CA cert file is readable by design for export
- G201 # SQL string formatting - WHERE clauses built from safe constants, not user input
gocritic:
enabled-tags:
- diagnostic
- style
- performance
exclusions:
paths:
- web/static