-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy path.golangci.yml
More file actions
31 lines (30 loc) · 945 Bytes
/
Copy path.golangci.yml
File metadata and controls
31 lines (30 loc) · 945 Bytes
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
version: "2"
linters:
default: none
enable:
- errcheck
- govet
- misspell
- revive
- staticcheck
exclusions:
generated: lax
paths:
# Generated Lua wrappers (make generate-lua).
- internal/lua/.*_lua\.go$
rules:
# The wire-frozen public API and upstream-mirroring code use BullMQ's
# names (jobId, LastEventId, ...); renaming is not worth the churn.
- linters: [revive]
text: "^var-naming:"
# Internal packages and the runnable example keep their existing shape;
# they are not part of the documented API surface.
- path: ^(internal|examples)/
linters: [revive]
# Tests ignore cleanup errors deliberately, and example/processor
# callbacks must keep their ctx parameter to match ProcessFunc.
- path: _test\.go$
linters: [errcheck]
- path: _test\.go$
linters: [revive]
text: "^unused-parameter:"