-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy path.golangci.yml
49 lines (45 loc) · 1.17 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
run:
timeout: 2m
tests: true
build-tags: [ cairo ]
skip-files:
- ".*\\.pb\\.go$"
- "function_test.go"
- "expr_test.go"
- "cairo_test.go"
linters:
enable:
- asciicheck
- bodyclose
- gochecknoinits
- gofmt
- goimports
- gosec
- misspell
- unparam
# The linters we need to enable ASAP.
# Enabling would require significant changes.
# - gochecknoglobals
# - unconvert
# - wrapcheck
# The linters that would be nice to have in order of decreasing priority.
# They are disabled now because they cause a lot of warnings that would require multiple changes.
# - revive
# - errorlint
# - promlinter
# - cyclop or gocyclo
# - whitespace
# - gomnd
# - lll
# - gocritic
issues:
# Maximum issues count per one linter. Set to 0 to disable. Default is 50.
max-issues-per-linter: 0
# Maximum count of issues with the same text. Set to 0 to disable. Default is 3.
max-same-issues: 0
# Excluding configuration per-path, per-linter, per-text and per-source
exclude-rules:
# Exclude some linters from running on tests files.
- path: _test\.go
linters:
- errcheck