-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.golangci.yml
executable file
·43 lines (40 loc) · 1.07 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
run:
timeout: 2m
modules-download-mode: readonly
linters:
enable:
- deadcode
- errcheck
- gosimple
- gofmt
- govet
- staticcheck
- unused
- typecheck
- unconvert
issues:
# Independently of 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: true.
exclude-use-default: true
# If set to true exclude and exclude-rules regular expressions become case-sensitive.
# Default: false
exclude-case-sensitive: false
# The list of ids of default excludes to include or disable.
# Default: []
exclude:
- EXC0002 # disable excluding of issues about comments from golint.
# Maximum issues count per one linter.
# Set to 0 to disable.
# Default: 50
max-issues-per-linter: 0
# Maximum count of issues with the same text.
# Set to 0 to disable.
# Default: 3
max-same-issues: 0
# Fix found issues (if it's supported by the linter).
fix: true
skip-files:
- ".*\\.pb\\.go$"
- ".*\\.pb\\.*\\.go$"