-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.golangci.yaml
83 lines (74 loc) · 1.46 KB
/
.golangci.yaml
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
run:
concurrency: 4
timeout: 5m
issues-exit-code: 2
tests: true
modules-download-mode: readonly
allow-parallel-runners: true
allow-serial-runners: true
go: '1.17'
output:
sort-results: true
sort-order:
- linter
- severity
- file # filepath, line, and column.
show-stats: true
linters:
disable:
- godot
- gci
presets:
- bugs
- comment
- complexity
- error
- format
- import
- metalinter
- module
- performance
- sql
- style
- test
- unused
fast: true
linters-settings:
wsl:
allow-assign-and-anything: false
allow-assign-and-call: true
allow-cuddle-declarations: false
allow-multiline-assign: true
allow-separated-leading-comment: false
allow-trailing-comment: false
force-case-trailing-whitespace: 0
force-err-cuddling: false
force-short-decl-cuddling: false
strict-append: true
testpackage:
allow-packages:
- example
- main
- parser
depguard:
rules:
main:
allow:
- $gostd
- github.com/stretchr/testify
- github.com/laojianzi/kql-go
funlen:
ignore-comments: true
issues:
exclude-rules:
- path: _test\.go
linters:
- funlen
- lll
- gocognit
- maintidx
- dupl
test: "cognitive complexity 55 of func `Test_parseMatchExpr` is high (> 30)"
- path: parser/token.go
linters:
- gochecknoinits