-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.golangci.yml
More file actions
93 lines (84 loc) · 2.53 KB
/
Copy path.golangci.yml
File metadata and controls
93 lines (84 loc) · 2.53 KB
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
version: "2"
linters:
default: standard
enable:
- bodyclose
- copyloopvar
- errorlint
- gocyclo
- misspell
- revive
settings:
revive:
rules:
- name: blank-imports
- name: context-as-argument
- name: context-keys-type
- name: dot-imports
- name: empty-block
- name: error-naming
- name: error-return
- name: error-strings
- name: errorf
- name: exported
# A stuttering rename in a package other modules import is a breaking
# change, so the check stays off rather than inviting one.
arguments:
- disableStutteringCheck
- name: increment-decrement
- name: indent-error-flow
- name: package-comments
- name: range
- name: receiver-naming
- name: redefines-builtin-id
- name: superfluous-else
- name: time-naming
- name: unexported-return
- name: unreachable-code
- name: unused-parameter
- name: var-declaration
- name: var-naming
exclusions:
rules:
# godoc comments only matter for code other modules can import. MSD is
# an application, not a library: internal/ is unimportable by
# definition, and site/* holds ~10 site handlers that all implement the
# same Site interface — documenting each identically would be pure
# churn, not signal.
- path: internal/
linters:
- revive
text: '^(exported|package-comments):'
- path: site/
linters:
- revive
text: '^(exported|package-comments):'
# temporary: file has uncommitted maintainer edits, revisit
- path: cmd/msd/progress\.go
linters:
- revive
text: '^(redefines-builtin-id|unused-parameter):'
# temporary: file has uncommitted maintainer edits, revisit
- path: engine/download\.go
linters:
- revive
text: '^package-comments:'
# temporary: file has uncommitted maintainer edits, revisit
- path: engine/retry\.go
linters:
- revive
text: '^exported:'
# temporary: file has uncommitted maintainer edits, revisit
- path: site/bunkr/bunkr_test\.go
linters:
- revive
text: '^unused-parameter:'
# temporary: file has uncommitted maintainer edits, revisit
- path: engine/download_host_test\.go
linters:
- revive
text: '^unused-parameter:'
formatters:
enable:
- gofmt
- goimports