forked from wormhole-foundation/wormhole
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.golangci.yml
34 lines (32 loc) · 977 Bytes
/
.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
linters:
# Disable all linters.
# Default: false
disable-all: true
# Enable specific linter
# https://golangci-lint.run/usage/linters/#enabled-by-default-linters
enable:
# default linters
- errcheck
- gosimple
- govet
- ineffassign
- staticcheck
- typecheck
- unused
# additional linters
- gosec
- forcetypeassert
# - contextcheck # disabled in CI for now because fixes to findings need additional work
- noctx
# - unconvert # disable because extra conversion typically don't hurt but can make code more clear
- unparam
- prealloc
issues:
exclude-rules:
- path: pkg/supervisor/supervisor_testhelpers.go
text: "^func.*supervisor.*(waitSettle|waitSettleError).*$"
linters:
- unused
# This file contains hard-coded Sui core contract addresses that are marked as hardcoded credentials.
- path: pkg/txverifier/sui_test.go
text: "G101: Potential hardcoded credentials"