-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.golangci.yml
More file actions
39 lines (36 loc) · 916 Bytes
/
.golangci.yml
File metadata and controls
39 lines (36 loc) · 916 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
36
37
38
39
version: "2"
run:
timeout: 5m
go: "1.23"
linters:
enable:
- errcheck
- govet
- staticcheck
- unused
- ineffassign
- misspell
- gosec
- unconvert
settings:
gosec:
excludes:
- G101 # False positive: dummy/placeholder credentials are intentional
- G104 # Unhandled errors in deferred Close() calls
- G117 # False positive: dummy token fields are intentional
- G301 # Directory permissions 0755 is appropriate for CA dir
- G302 # File permissions 0644 is appropriate for log files
- G703 # False positive: file paths from config, not user input
- G706 # False positive: logging config values, not user input
exclusions:
presets:
- comments
- std-error-handling
- common-false-positives
formatters:
enable:
- gofmt
- goimports
settings:
gofmt:
simplify: true