linter: add metalinter to Makefile & apply some fixes

This commit is contained in:
Zach Ramsay
2017-09-22 13:31:01 -04:00
parent 0418d32276
commit fe66a683bc
13 changed files with 65 additions and 131 deletions

View File

@ -50,7 +50,7 @@ func (ih InvalidHashPrefixError) Error() string {
type InvalidCostError int
func (ic InvalidCostError) Error() string {
return fmt.Sprintf("crypto/bcrypt: cost %d is outside allowed range (%d,%d)", int(ic), int(MinCost), int(MaxCost))
return fmt.Sprintf("crypto/bcrypt: cost %d is outside allowed range (%d,%d)", int(ic), int(MinCost), int(MaxCost)) // nolint: unconvert
}
const (