forked from harvester/harvester
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.golangci.yaml
33 lines (33 loc) · 818 Bytes
/
.golangci.yaml
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
linters:
disable-all: true
enable:
- goimports
- gofmt
- misspell
- revive
- gosec
- prealloc
issues:
exclude-files:
- /zz_generated_
- _generated
exclude-dirs:
- generated
run:
timeout: 5m
tests: true
build-tags:
- test
linters-settings:
goimports:
local-prefixes: github.com/harvester/harvester
gosec:
# https://github.com/securego/gosec#available-rules
excludes:
- G101 # Look for hard coded credentials
- G108 # Profiling endpoint is automatically exposed on /debug/pprof
- G401 # Use of weak cryptographic primitive
- G402 # TLS InsecureSkipVerify set true
- G505 # Blocklisted import crypto/md5: weak cryptographic primitive
config:
G306: "0644" # Poor file permissions used when writing to a new file