forked from kserve/kserve
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
60 lines (54 loc) · 1.19 KB
/
.golangci.yml
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
run:
timeout: 6m
go: "1.22"
tests: false
skip-dirs: # skip auto gen folders
- "client/"
- "clientv1alpha1/"
- "tools/tf2openapi/generated/"
issues:
max-same-issues: 0
max-issues-per-linter: 0
output:
format: "github-actions,line-number"
print-issued-lines: true
print-linter-name: true
uniq-by-line: true
path-prefix: ""
sort-results: true
# REF: https://golangci-lint.run/usage/linters/
linters:
disable-all: true
enable:
- errorlint
- bodyclose
- dogsled
- exportloopref
- gocritic
- goimports
- gosec
- gosimple
- govet
- ineffassign
- misspell
- nakedret
# - revive
- staticcheck
# - stylecheck
- typecheck
- unconvert
- unused
- whitespace
# - prealloc
- gofmt
linters-settings:
goimports:
local-prefixes: "bbgithub.dev.bloomberg.com/cncr-inference/inferno"
gosec:
# specify configuration of gosec rules: https://github.com/securego/gosec#available-rules
config:
# maximum allowed permissions for os.OpenFile and os.Chmod
# default: "0600"
G302: "0640"
# maximum allowed permissions for os.WriteFile and ioutil.WriteFile
G306: "0640"