-
Notifications
You must be signed in to change notification settings - Fork 152
fix: allow un-called async util references #1061
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
base: main
Are you sure you want to change the base?
Conversation
@@ -113,6 +113,11 @@ ruleTester.run(RULE_NAME, rule, { | |||
testingFramework: '@marko/testing-library', | |||
}), | |||
|
|||
// async queries not called are valid |
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.
this behavior already existed - just codifying it via test.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1061 +/- ##
=======================================
Coverage ? 96.44%
=======================================
Files ? 50
Lines ? 2698
Branches ? 1115
=======================================
Hits ? 2602
Misses ? 96
Partials ? 0 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
Good catch! LGTM, but you need to increase the code coverage a bit to make codecov happy 😅
ef0dde3
to
36b3bec
Compare
Checks
Changes
This prevents false positives for the case where async utils are referenced but not called. This matches the behavior in both
await-async-events
andawait-async-queries
.await-async-events
explicitly tests for this behavior here and here.await-async-queries
doesn't explicitly test for this, but follows a similar implementation of only processingCallExpression
nodes rather thanCallExpression Identifier
nodes.await-async-utils
await-async-queries
to prevent regressions in existing behaviorContext
fixes #1060