-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
enable more linters from golanci-lint #333
Conversation
KonradStaniec
commented
Dec 9, 2024
- enables more linters from golang ci lint
- fixes some low hanging fruits
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Love the gradual cleanup!
crypto/eots/error.go
Outdated
@@ -4,17 +4,17 @@ import ( | |||
ecdsa_schnorr "github.com/decred/dcrd/dcrec/secp256k1/v4/schnorr" | |||
) | |||
|
|||
// ErrorKind identifies a kind of error. It has full support for errors.Is | |||
// KindError identifies a kind of error. It has full support for errors.Is |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// KindError identifies a kind of error. It has full support for errors.Is | |
// KindOfError identifies a kind of error. It has full support for errors.Is |
Curious why linter is not happy with ErrorKind
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
apparently convention for error types is to end name with suffix Error
(underlying ecdsa_schnorr.ErrorKind
does not follow this convention)