forked from sourcegraph/sourcegraph-public-snapshot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.golangci-warn.yml
More file actions
49 lines (42 loc) · 1.42 KB
/
.golangci-warn.yml
File metadata and controls
49 lines (42 loc) · 1.42 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
# See explanation of linters at https://golangci-lint.run/usage/linters/
linters:
disable-all: true
enable:
- unused
issues:
exclude-rules:
# Exclude bodyclose lint from tests because leaking connections in tests
# is a non-issue, and checking that adds unnecessary noise
- path: _test\.go
linters:
- bodyclose
- unparam
- gosimple
- unused
run:
timeout: 5m
skip-dirs:
- client
- ui
- vendor
- node_modules
- docker-images/syntax-highlighter
skip-files:
# Auto-generated with depguard and forbidigo failures
- schema/schema.go
# Imports blacklisted errors
# Unfortunately golangci-lint doesn't really like multiple go.mod files, so
# whenever we reference a file here it's relative to its containing workspace.
# These values are under the ./lib module.
- errors/cockroach.go
# These are all projects with distinct go.mod files that can't import lib
# due to not knowing an absolute path to the user's sourcegraph directory
# and go mod replace directives not accepting relative paths.
#
# We should remove the go.mod files in these directories and share the set
# of dependencies in the root module (which has access to the colocated lib)
# like we did with sg. That seemed very successful!
# In ./enterprise/dev/insight-data-gen
- main.go
# In ./internal/cmd/progress-bot
- main.go