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
+1 -1
View File
@@ -20,7 +20,7 @@ func TestCacheRemove(t *testing.T) {
for i := 0; i < numTxs; i++ {
// probability of collision is 2**-256
txBytes := make([]byte, 32)
rand.Read(txBytes) // nolint: gosec
rand.Read(txBytes)
txs[i] = txBytes
cache.Push(txBytes)
// make sure its added to both the linked list and the map