forked from sourcegraph/sourcegraph-public-snapshot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nogo_config.json
55 lines (55 loc) · 2.12 KB
/
nogo_config.json
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
{
"_base": {
"description": "Base config which all analyzers will inherit, unless a specific config is given",
"exclude_files": {
"rules_go.*/*": "ignore rules_go working directory",
"external/*": "no need to vet third party code",
"schema/schema.go": "ignore generated code",
".*_generated\\.go$": "ignore generated code",
".*_pb\\.go$": "ignore protobuff generated code",
"docker-images/*": "ignore all code under docker-images",
"main.go": "ignore main",
".*_test\\.go$": "ignore test code",
"enterprise/internal/batches/testing/*": "ignore batches testing code"
}
},
"bodyclose": {
"exclude_files": {
"external/*": "no need to vet third party code",
".*_generated\\.go$": "ignore generated code",
".*_pb\\.go$": "ignore protobuff generated code",
".*_test\\.go": "exclude bodyclose lint from tests because leaking connections in tests is a non issue",
"internal/extsvc/": "ignore temporarily",
"cmd/frontend/internal/gosrc/import_path.go": "temp ignore till we support nolint: comment"
}
},
"forbidigo": {
"exclude_files": {
"rules_go.*/*": "ignore rules_go working directory",
"external/": "no need to vet third party code",
"schema/schema.go": "ignore generated code",
"errors/cockroach.go": "ignore generated code",
".*_test\\.go$": "ignore test code",
".*_generated\\.go$": "ignore generated code",
".*_pb\\.go$": "ignore protobuff generated code",
"main.go": "ignore main files"
}
},
"ineffassign": {
"exclude_files": {
"external/*": "no need to vet third party code",
".*_generated\\.go$": "ignore generated code",
".*_pb\\.go$": "ignore protobuff generated code",
"dev/buildchecker/slack.go": "ignore false positive"
}
},
"exportloopref": {
"exclude_files": {
"lib/batches/env/var.go": "false positive",
"rules_go.*/*": "ignore rules_go working directory",
"external/*": "no need to vet third party code",
".*_generated\\.go$": "ignore generated code",
".*_pb\\.go$": "ignore protobuff generated code"
}
}
}