forked from TheThingsNetwork/lorawan-stack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gometalinter.json
More file actions
28 lines (28 loc) · 769 Bytes
/
.gometalinter.json
File metadata and controls
28 lines (28 loc) · 769 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
{
"Enable": [
"deadcode",
"gosec",
"goconst",
"gofmt",
"golint",
"ineffassign",
"misspell",
"vet"
],
"Linters": {
"gosec": {
"command": "gosec -fmt=csv -exclude=G201,G202"
}
},
"Exclude": [
"^pkg/([[:alnum:]_]+/)*[[:alnum:]_]+(\\.pb|\\.pb\\.gw|\\.pb.fm|\\.pb.util.fm|_populate|pb_test)\\.go:.+",
"^pkg/band/[[:alpha:]]{2}(_[[:digit:]]{3}){1,2}\\.go:([[:digit:]]+:){2}[[:alpha:]]+: (don't use ALL_CAPS in Go names; use CamelCase|don't use underscores in Go names;)",
"^pkg(/[[:alnum:]_]+)+_test.go:[[:digit:]]+::[[:alpha:]]+:.+\\(dupl\\)",
"^pkg/ttnpb/([[:alnum:]_]+/)*[[:alnum:]_]+.go"
],
"Cyclo": 25,
"DuplThreshold": 200,
"EnableGC": true,
"Sort": ["path", "line"],
"Vendor": true
}