-
Notifications
You must be signed in to change notification settings - Fork 4
/
.golangci.yml
63 lines (56 loc) · 1.38 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
63
run:
timeout: 5m
skip-dirs-use-default: true
linters:
enable:
- gofmt
- revive
- gosimple
- exportloopref
- unconvert
- misspell
- goimports
- errcheck
- forbidigo
- godot
- goimports
# - dupl
# - cyclop
issues:
fix: true
linters-settings:
cyclop:
# The maximal code complexity to report.
max-complexity: 15
# The maximal average package complexity.
# If it's higher than 0.0 (float) the check is enabled
# Default: 0.0
package-average: 0.0
# Should ignore tests.
# Default: false
skip-tests: false
forbidigo:
# Forbid the following identifiers (list of regexp).
forbid:
- 'fmt\.Print.*'
exclude_godoc_examples: true
tests: false
godot:
# Comments to be checked: `declarations`, `toplevel`, or `all`.
# Default: declarations
scope: declarations
# List of regexps for excluding particular comment lines from check.
exclude:
# Exclude todo and fixme comments.
- "^fixme:"
- "^todo:"
# Check that each sentence ends with a period.
# Default: true
period: true
# Check that each sentence starts with a capital letter.
# Default: false
capital: false
goimports:
# Put imports beginning with prefix after 3rd-party packages.
# It's a comma-separated list of prefixes.
local-prefixes: github.com/vorlif/spreak