syzkaller/.gometalinter.json
Dmitry Vyukov 55a5e98a0a pkg/ifuzz: move generated code to a separate package
This helps to ignore generated code with gometalinter.
There is currently no other way:
https://github.com/alecthomas/gometalinter/issues/270

Update #538
2018-05-07 15:42:28 +02:00

44 lines
919 B
JSON

{
"vendor": true,
"tests": true,
"deadline": "8m",
"sort": ["path", "line"],
"minconstlength": 7,
"linelength": 120,
"cyclo": 50,
"duplthreshold": 63,
"skip": [
"pkg/kd",
"pkg/ifuzz/generated",
"sys/akaros/gen",
"sys/freebsd/gen",
"sys/fuchsia/gen",
"sys/linux/gen",
"sys/netbsd/gen",
"sys/windows/gen",
"sys/test/gen"
],
"enable": [
"golint",
"structcheck",
"megacheck",
"unconvert",
"deadcode",
"goconst",
"unused",
"gosimple",
"varcheck",
"misspell",
"gocyclo",
"vet",
"lll"
],
"exclude": [
"don't use underscores in Go names",
"(sys/(akaros|freebsd|fuchsia|linux|netbsd|test|windows)/init.*|sys/targets/common.go).* don't use ALL_CAPS in Go names",
"exported .* should have comment",
"comment on .* should be of the form",
"(pkg/csource/.*_common.go|pkg/csource/gen.go|pkg/report/linux.go|pkg/kernel/generated.go).* line is [0-9]+ characters"
]
}