Fixed various linters warnings in the context of the gometalinter -> golangci-lint migration #3896.