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
View File
@@ -160,7 +160,6 @@ func (pubKey PubKeyEd25519) String() string {
return fmt.Sprintf("PubKeyEd25519{%X}", pubKey[:])
}
// nolint: golint
func (pubKey PubKeyEd25519) Equals(other crypto.PubKey) bool {
if otherEd, ok := other.(PubKeyEd25519); ok {
return bytes.Equal(pubKey[:], otherEd[:])
-1
View File
@@ -1,4 +1,3 @@
// nolint: dupl
package merkle
import (
-2
View File
@@ -47,12 +47,10 @@ func New(key []byte) (cipher.AEAD, error) {
return ret, nil
}
// nolint
func (c *xchacha20poly1305) NonceSize() int {
return NonceSize
}
// nolint
func (c *xchacha20poly1305) Overhead() int {
return TagSize
}