-
Notifications
You must be signed in to change notification settings - Fork 3
/
.golangci.yml
48 lines (41 loc) · 890 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
issues:
fix: true
# Relax rules for tests
exclude-rules:
- path: _test\.go
linters:
- gocyclo
- errcheck
- dupl
# Parsing logic has high cyclomatic complexity. This is okay.
- path: pkg/importer/parser/ynab4/parse.go
linters:
- gocyclo
text: "func `parseTransactions`"
# Parsing logic has high cyclomatic complexity. This is okay.
- path: pkg/importer/creator.go
linters:
- gocyclo
text: "func `Create`"
- path: pkg/models/envelope.go
linters:
- gocyclo
text: "func `\\(Envelope\\).Balance`"
linters:
enable:
- gocyclo
- godot
- gofumpt
- goimports
- govet
- revive
- whitespace
- misspell
linters-settings:
gofumpt:
extra-rules: true
gocyclo:
min-complexity: 15
godot:
exclude:
- "^\t+@[A-Za-z]+\t+"