lint: enable nolintlinter, disable on tests

## Description
- enable nolintlint
- disable linting on tests

Closes: #XXX
This commit is contained in:
Marko
2020-05-04 07:49:53 +00:00
committed by GitHub
parent 336b929eaa
commit b7c2d7a977
14 changed files with 13 additions and 28 deletions
+2 -2
View File
@@ -173,8 +173,8 @@ func makeBlockIDRandom() BlockID {
blockHash = make([]byte, tmhash.Size)
partSetHash = make([]byte, tmhash.Size)
)
rand.Read(blockHash) //nolint: gosec
rand.Read(partSetHash) //nolint: gosec
rand.Read(blockHash)
rand.Read(partSetHash)
return BlockID{blockHash, PartSetHeader{123, partSetHash}}
}