-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.golangci.yml
More file actions
84 lines (80 loc) · 2.18 KB
/
Copy path.golangci.yml
File metadata and controls
84 lines (80 loc) · 2.18 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
version: "2"
run:
concurrency: 4
tests: true
timeout: 10m
linters:
default: none
enable:
- forbidigo
- gocyclo
- gosec
- govet
- misspell
- revive
- staticcheck
- whitespace
settings:
forbidigo:
forbid:
# Every time-dependent behavior must be driven through the injected
# clock.Clock; the one sanctioned time.Now call site is in
# internal/clock.
- pattern: 'time\.Now'
msg: read time from the injected clock.Clock instead of the system clock
analyze-types: true
gosec:
excludes:
# Integer conversions between proto enum values and SMALLINT
# columns are bounded by the enum definitions.
- G115
misspell:
locale: US
staticcheck:
checks: ["all", "-ST1000"]
exclusions:
generated: lax
# The examples live in the module but ship in no binary; like the test
# coverage run, CI does not lint them, so example clarity is never gated by
# the production linters.
paths:
- examples/
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
rules:
- linters:
- revive
text: ".*stutters.*"
- linters:
- revive
text: "unused-parameter:"
# Established package names (internal/metrics, server/api) predate
# revive's package-name opinions; renaming them would churn imports
# across the repo for no clarity gain.
- linters:
- revive
text: "avoid package names that conflict with Go standard library"
- linters:
- revive
text: "avoid meaningless package names"
# The cross-SDK conformance suite is a black-box integration harness that
# drives real subprocesses (conveyord and the SDK workers) over real
# wall-clock time; it has no injected clock, so time.Now is the correct
# source there. It is still linted for everything else.
- linters:
- forbidigo
path: conformance/
formatters:
enable:
- gofmt
- goimports
exclusions:
generated: lax
paths:
- examples/
issues:
max-issues-per-linter: 0
max-same-issues: 0