Skip to content
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

Merged
merged 5 commits into from
Dec 9, 2024

Conversation

KonradStaniec
Copy link
Collaborator

  • enables more linters from golang ci lint
  • fixes some low hanging fruits

@KonradStaniec KonradStaniec requested a review from a team as a code owner December 9, 2024 08:53
@KonradStaniec KonradStaniec requested review from gitferry and RafilxTenfen and removed request for a team December 9, 2024 08:53
@KonradStaniec KonradStaniec added the A:no-changelog changes that do not require changelog update label Dec 9, 2024
Copy link
Member

@Lazar955 Lazar955 left a 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!

@@ -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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// 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?

Copy link
Collaborator Author

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)

@KonradStaniec KonradStaniec merged commit b8a2d25 into main Dec 9, 2024
19 checks passed
@KonradStaniec KonradStaniec deleted the konradstaniec/enable-more-linters branch December 9, 2024 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A:no-changelog changes that do not require changelog update
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants