-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
57 lines (49 loc) · 1.48 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
run:
timeout: 1m
issues-exit-code: 1
tests: true
skip-dirs-use-default: true
modules-download-mode: readonly
allow-parallel-runners: true
output:
format: colored-line-number
print-issued-lines: true
print-linter-name: true
uniq-by-line: true
path-prefix: ""
sort-results: true
linters-settings:
cyclop:
max-complexity: 15
skip-tests: true
gci:
local-prefixes: github.com/albenik-go/datamapper
funlen:
lines: 120
statements: 60
linters:
enable-all: true
disable:
- exhaustivestruct
- gochecknoglobals
- golint # The linter 'golint' is deprecated (since v1.41.0) due to: The repository of the linter has been archived by the owner. Replaced by revive.
- lll
- maligned # The linter 'maligned' is deprecated (since v1.38.0) due to: The repository of the linter has been archived by the owner. Replaced by govet 'fieldalignment'.
- nlreturn
- paralleltest
- interfacer # The linter 'interfacer' is deprecated (since v1.38.0) due to: The repository of the linter has been archived by the owner.
- scopelint # The linter 'scopelint' is deprecated (since v1.39.0) due to: The repository of the linter has been deprecated by the owner. Replaced by exportloopref.
- tagliatelle
- wrapcheck
- wsl
issues:
exclude-rules:
- path: internal/cli
linters:
- gomnd
- path: template/raw.go
linters:
- gci
- path: codegen/generator_test.go
linters:
- gci