Use gometalinter for linting

gometalinter runs linters in parallel for faster linting
it provides a uniform way of whitelisting lines using // nolint or the exclude
field in the config

Signed-off-by: Daniel Nephin <dnephin@gmail.com>
This commit is contained in:
Daniel Nephin
2017-11-03 15:15:56 -04:00
parent ab67fd50dc
commit f9e969bac8
7 changed files with 35 additions and 37 deletions

19
.gometalinter.json Normal file
View File

@@ -0,0 +1,19 @@
{
"Vendor": true,
"Deadline": "2m",
"Sort": ["linter", "severity", "path", "line"],
"Exclude": [
".*\\.pb\\.go",
"fetch\\.go:.*::error: unrecognized printf verb 'r'"
],
"EnableGC": true,
"WarnUnmatchedDirective": true,
"Enable": [
"gofmt",
"goimports",
"golint",
"ineffassign",
"vet"
]
}