forked from grafana/k6
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
60 lines (53 loc) · 1.39 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
run:
deadline: 5m
skip-files:
- "rice-box.go$"
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
# We want to try and improve the comments in the k6 codebase, so individual
# non-golint items from the default exclusion list will gradually be addded
# to the exclude-rules below
exclude-use-default: false
exclude-rules:
# Exclude duplicate code and function length and complexity checking in test
# files (due to common repeats and long functions in test code)
- path: _(test|gen)\.go
linters:
- gocyclo
- dupl
- gocognit
- funlen
- lll
exclude:
#TODO: remove this exclusion after https://github.com/golang/lint/issues/381
# is fixed by https://github.com/golang/lint/pull/380 or something else
- "should have a package comment, unless it's in another file for this package"
linters-settings:
govet:
check-shadowing: true
golint:
min-confidence: 0
gocyclo:
min-complexity: 25
maligned:
suggest-new: true
dupl:
threshold: 150
goconst:
min-len: 10
min-occurrences: 4
funlen:
lines: 80
statements: 60
linters:
enable-all: true
disable:
- gochecknoinits
- godox
- wsl
fast: false
service:
golangci-lint-version: 1.20.x