-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.golangci.yaml
58 lines (55 loc) · 1.07 KB
/
.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
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
# https://golangci-lint.run/usage/configuration/#config-file
run:
go: '1.21'
timeout: 1m
issues:
exclude-use-default: false
exclude-rules:
- path: internal/services/replace_symlink.go
linters:
- gosec
- path: cmd/hasuraenv/hasuraenv.go
linters:
- gochecknoglobals
- path: e2e
linters:
- gosec
linters:
enable:
- errorlint
- exhaustive
- exportloopref
- forcetypeassert
- gochecknoglobals
- goconst
- gocritic
- gosec
- makezero
- misspell
- nakedret
- nestif
- nlreturn
- nolintlint
- prealloc
- predeclared
- whitespace
disable:
# deprecated
- errcheck
- golint
- exhaustivestruct
- scopelint
- interfacer
- maligned
- paralleltest
# > You can track the evolution of the go1.18 support by following the https://github.com/golangci/golangci-lint/issues/2649.
- structcheck
- bodyclose
- contextcheck
- nilerr
- noctx
- rowserrcheck
- sqlclosecheck
- tparallel
- unparam
- wastedassign