Daniel Nephin
ee04cfa3f9
Add staticcheck linter
...
Fix issues with sync.Pool being passed an array and not a pointer.
See https://github.com/dominikh/go-tools/blob/master/cmd/staticcheck/docs/checks/SA6002
Add missing tests for content.Copy
Fix T.Fatal being called in a goroutine
Signed-off-by: Daniel Nephin <dnephin@gmail.com >
2017-11-28 13:05:30 -05:00
Daniel Nephin
f74862a0dd
Add structcheck, unused, and varcheck linters.
...
Warn on unused and dead code
Signed-off-by: Daniel Nephin <dnephin@gmail.com >
2017-11-21 11:14:37 -05:00
Daniel Nephin
f9e969bac8
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 >
2017-11-03 18:02:27 -04:00