-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
chore: enable err-error and errorf rules from perfsprint linter #6160
chore: enable err-error and errorf rules from perfsprint linter #6160
Conversation
/cc @ChengenH |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6160 +/- ##
==========================================
+ Coverage 96.47% 96.49% +0.01%
==========================================
Files 354 354
Lines 20126 20126
==========================================
+ Hits 19417 19420 +3
+ Misses 524 522 -2
+ Partials 185 184 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Signed-off-by: Matthieu MOREL <[email protected]>
79ccbfe
to
410bdda
Compare
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.
🎉
"testing" | ||
|
||
"github.com/olivere/elastic" | ||
"github.com/stretchr/testify/require" | ||
) | ||
|
||
func TestDetailedError(t *testing.T) { | ||
require.ErrorContains(t, fmt.Errorf("some err"), "some err", "no panic") | ||
require.ErrorContains(t, errors.New("some err"), "some err", "no panic") |
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.
No idea what this is trying to do
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.
Maybe testing testify. I don’t see any other reason yet
Which problem is this PR solving?
Description of the changes
err-error
anderrorf
rules from perfsprint lintererrors.New
instead offmt.Errorf
when there is only one argumentHow was this change tested?
Checklist
jaeger
:make lint test
jaeger-ui
:yarn lint
andyarn test