-
Notifications
You must be signed in to change notification settings - Fork 6
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
errors replacements are labeled as faster #38
base: main
Are you sure you want to change the base?
Conversation
e61e308
to
6ec2134
Compare
6ec2134
to
11df7ac
Compare
Needs a rebase now |
Signed-off-by: Matthieu MOREL <[email protected]>
11df7ac
to
3f9d2a7
Compare
@catenacyber , |
fmt.Sprintf("%s", errSentinel) // want "fmt.Sprintf can be replaced with faster errSentinel.Error()" | ||
fmt.Sprintf("%v", errSentinel) // want "fmt.Sprintf can be replaced with faster errSentinel.Error()" | ||
fmt.Sprint(errSentinel) // want "fmt.Sprint can be replaced with faster errSentinel.Error()" | ||
fmt.Sprintf("%s", io.EOF) // want "fmt.Sprintf can be replaced with faster io.EOF.Error()" | ||
fmt.Sprintf("%v", io.EOF) // want "fmt.Sprintf can be replaced with faster io.EOF.Error()" | ||
fmt.Sprint(io.EOF) // want "fmt.Sprint can be replaced with faster io.EOF.Error()" | ||
fmt.Sprintf("%s", err) // want "fmt.Sprintf can be replaced with faster err.Error()" | ||
fmt.Sprintf("%v", err) // want "fmt.Sprintf can be replaced with faster err.Error()" | ||
fmt.Sprint(err) // want "fmt.Sprint can be replaced with faster err.Error()" |
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.
Changing the report message constitutes a breaking change. However, the PR's title states "chore: define newFasterFunctionReplacementDiagnostic," which suggests it's a simple refactoring. I propose we either change the PR's title or avoid making breaking changes.
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.
That's related to this #38 (comment)
No description provided.