forked from taikoxyz/taiko-mono
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
49 lines (45 loc) · 852 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# See: https://golangci-lint.run/usage/configuration/
#
# Note: for VSCode, you must have the following settings to use this configuration:
#
# "go.lintTool": "golangci-lint",
# "go.lintFlags": [
# "--fast",
# "--config=${workspaceFolder}/.golangci.yml"
# ],
output:
format: colored-line-number
linters:
enable:
- errcheck
- funlen
- gocognit
- gocritic
- gofmt
# - revive
- gosec
- gosimple
- lll
- unused
- whitespace
- wsl
linters-settings:
funlen:
lines: 200
statements: 100
gocognit:
min-complexity: 100
lll:
line-length: 150
issues:
exclude-rules:
# Exclude some linters from running on tests files.
- path: _test\.go
linters:
- funlen
- path: contracts\.go
linters:
- lll
- path: /
linters:
- typecheck