-
Notifications
You must be signed in to change notification settings - Fork 1
/
.golangci.yml
62 lines (55 loc) · 1.8 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
# https://golangci-lint.run/usage/configuration/
# options for analysis running
run:
# timeout for analysis, e.g. 30s, 5m, default is 1m
timeout: 4m
# include test files or not, default is true
tests: true
# which dirs to skip: issues from them won't be reported;
# can use regexp here: generated.*, regexp is applied on full path;
# default value is empty list, but default dirs are skipped independently
# from this option's value (see skip-dirs-use-default).
# "/" will be replaced by current OS file path separator to properly work
# on Windows.
skip-dirs:
- testdata
# which files to skip: they will be analyzed, but issues from them
# won't be reported. Default value is empty list, but there is
# no need to include all autogenerated files, we confidently recognize
# autogenerated files. If it's not please let us know.
# "/" will be replaced by current OS file path separator to properly work
# on Windows.
skip-files:
- ".*\\.sql\\.go$"
- ".*\\.html\\.go$"
- ".*\\.peg\\.go$"
- ".*\\_gen\\.go$"
linters:
disable-all: true
enable:
- govet
- revive
- varcheck
- structcheck
- errcheck
- staticcheck
- ineffassign
- unconvert
- goimports
- misspell
- lll
- nakedret
- gocritic
- deadcode
# all available settings of specific linters
linters-settings:
lll:
# max line length, lines longer will be reported. Default is 120.
# '\t' is counted as 1 character by default, and can be changed with the tab-width option
line-length: 120
issues:
# Independently from option `exclude` we use default exclude patterns,
# it can be disabled by this option. To list all
# excluded by default patterns execute `golangci-lint run --help`.
# Default value for this option is true.
exclude-use-default: false