-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
113 lines (107 loc) · 2.07 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
# v1.50.0
# Please don't remove the first line. It's used in CI to determine the
# golangci-lint version. See the lint step in .github/workflows/all.yaml
run:
timeout: 5m
issues:
# Maximum issues count per one linter. Set to 0 to disable. Default is 50.
max-issues-per-linter: 0
# Maximum count of issues with the same text. Set to 0 to disable. Default is 3.
max-same-issues: 0
# Disable default exclude rules, see `golangci-lint run --help`.
# When true it disables revive's comment warnings, and we want them enabled.
exclude-use-default: false
exclude-rules:
- path: (.+)_test.go
linters:
- wrapcheck
- funlen
- cyclop
- path: k6ext/k6test
linters:
- wrapcheck
- funlen
- cyclop
- path: tests
linters:
- wrapcheck
- funlen
- cyclop
linters:
disable-all: true
enable:
- cyclop
- dogsled
- dupl
- durationcheck
- errcheck
- errchkjson
- errname
- errorlint
- exhaustive
- exportloopref
- forbidigo
- forcetypeassert
- funlen
- gci
- gochecknoglobals
- gocognit
- goconst
- gocritic
- godot
- gofmt
- gofumpt
- goimports
- gosec
- gosimple
- govet
- importas
- ineffassign
- lll
- makezero
- misspell
- nakedret
- nestif
- nilerr
- nilnil
- nlreturn
- nolintlint
- predeclared
- prealloc
- revive
- staticcheck
- tagliatelle
- thelper
- tparallel
- typecheck
- unconvert
- unparam
- unused
- wastedassign
- whitespace
- wrapcheck
linters-settings:
gci:
sections:
- standard
- prefix(github.com/grafana/xk6-browser)
- prefix(go.k6.io)
- default
dupl:
threshold: 400
gofmt:
simplify: true
goimports:
local-prefixes: github.com/grafana/xk6-browser
importas:
alias:
- pkg: go.k6.io/k6/.*/(\w+)
alias: k6$1
nlreturn:
block-size: 10
lll:
maxlength: 120
gosec:
config:
G301: '0755'
G306: '0644'