This repository has been archived by the owner on Sep 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
nogo_config.json
50 lines (50 loc) · 2.15 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
{
"_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",
"internal/batches/testing/.*": "ignore batches testing code",
"internal/gitserver/mock\\.go$": "ignore deprecation warning of BatchLog",
"internal/gitserver/retry\\.go$": "ignore deprecation warning of BatchLog",
"internal/grpc/example/client/retry\\.go$": "ignore deprecation warning of GetCurrentWeatherOld",
"internal/grpc/example/server/faulty\\.go$": "ignore deprecation warning of GetCurrentWeatherOld",
"internal/database/dbmocks": "ignore generated database mocks"
}
},
"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"
}
},
"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"
}
}
}