You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Gorm uses non-standard error format to support it's chainable API. It would be nice if there was a way to configure wrapcheck to match a *.\.Error regex
tx:=tx.Find(&customer)
iftx.Error!=nil {
returnnil, tx.Error// wrapcheck should warn here
}
abc:=tx.Find(&customer)
ifabc.Error!=nil {
returnnil, abc.Error// wrapcheck should warn here
}
The text was updated successfully, but these errors were encountered:
That should be possible, will just need a bit of a tweak to the AST matcher. I'll take a look when I get some time. If you want it sooner, I'm happy to review a PR.
@davideme Hey, sorry, I've not got a large amount of time outside my day-job in order to tackle this. I would be able to review a PR, or give some guidance if you wanted to give it a shot.
Gorm uses non-standard error format to support it's chainable API. It would be nice if there was a way to configure wrapcheck to match a
*.\.Error
regexThe text was updated successfully, but these errors were encountered: