forked from defi-wonderland/optimism
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.golangci.yaml
More file actions
36 lines (34 loc) · 793 Bytes
/
.golangci.yaml
File metadata and controls
36 lines (34 loc) · 793 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
linters:
enable:
- goimports
- sqlclosecheck
- bodyclose
- asciicheck
- misspell
- errorlint
# Only enabled in specific cases. See settings and exclusions below
- exhaustruct
- err113
# Enabled by default but be explicit so it's easy to see what we're running
- errcheck
- gosimple
- govet
- ineffassign
- staticcheck
- unused
linters-settings:
# Require specifying all fields in op-deployer's OPCM input and output structs
exhaustruct:
include:
- '.*op-deployer/pkg/deployer/opcm\..*(Input|Output)$'
issues:
exclude:
- 'errors.As'
- 'errors.Is'
exclude-rules:
# Only apply err113 to op-program/client
- path-except: 'op-program/client/.*'
linters:
- err113
run:
timeout: 5m