2018-03-08 17:47:04 +00:00
|
|
|
{
|
|
|
|
"vendor": true,
|
|
|
|
"tests": true,
|
2018-05-07 08:49:27 +00:00
|
|
|
"deadline": "8m",
|
2018-03-08 17:47:04 +00:00
|
|
|
"sort": ["path", "line"],
|
|
|
|
"minconstlength": 7,
|
2018-05-04 12:24:51 +00:00
|
|
|
"linelength": 120,
|
2018-05-04 16:03:46 +00:00
|
|
|
"cyclo": 50,
|
2018-05-07 12:42:55 +00:00
|
|
|
"duplthreshold": 80,
|
2018-03-08 17:47:04 +00:00
|
|
|
"skip": [
|
2018-05-05 13:40:10 +00:00
|
|
|
"pkg/kd",
|
|
|
|
"sys/akaros/gen",
|
|
|
|
"sys/freebsd/gen",
|
|
|
|
"sys/fuchsia/gen",
|
|
|
|
"sys/linux/gen",
|
|
|
|
"sys/netbsd/gen",
|
|
|
|
"sys/windows/gen",
|
|
|
|
"sys/test/gen"
|
2018-03-08 17:47:04 +00:00
|
|
|
],
|
|
|
|
"enable": [
|
|
|
|
"golint",
|
|
|
|
"structcheck",
|
|
|
|
"megacheck",
|
|
|
|
"unconvert",
|
|
|
|
"deadcode",
|
|
|
|
"goconst",
|
|
|
|
"unused",
|
|
|
|
"gosimple",
|
|
|
|
"varcheck",
|
2018-05-03 13:53:13 +00:00
|
|
|
"misspell",
|
2018-05-04 16:03:46 +00:00
|
|
|
"gocyclo",
|
2018-05-04 12:24:51 +00:00
|
|
|
"vet",
|
|
|
|
"lll"
|
2018-03-08 17:47:04 +00:00
|
|
|
],
|
|
|
|
"exclude": [
|
|
|
|
"don't use underscores in Go names",
|
2018-05-07 12:42:55 +00:00
|
|
|
"(sys/(akaros|freebsd|fuchsia|linux|netbsd|test|windows)/init.*|sys/targets/common.go).* don't use ALL_CAPS in Go names",
|
2018-03-08 17:47:04 +00:00
|
|
|
"exported .* should have comment",
|
|
|
|
"comment on .* should be of the form",
|
2018-05-05 13:40:10 +00:00
|
|
|
"(pkg/ifuzz/insns.go|pkg/csource/.*_common.go|pkg/csource/gen.go|pkg/report/linux.go|pkg/kernel/generated.go).* line is [0-9]+ characters"
|
2018-03-08 17:47:04 +00:00
|
|
|
]
|
|
|
|
}
|