-
Notifications
You must be signed in to change notification settings - Fork 187
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
New terminal_close_linter #2276
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2276 +/- ##
=======================================
Coverage 99.63% 99.63%
=======================================
Files 114 114
Lines 5258 5258
=======================================
Hits 5239 5239
Misses 19 19 ☔ View full report in Codecov by Sentry. |
Is this vectorized to detect multiple (trailing) |
Not now... can't say I've encountered that either. I would reserve for a follow-up if needed. |
All right. Can we add a metadata test here as well? Maybe with an example containing two close statements to show which one lints? |
SG. Any opinion on |
Hmm not sure where this might go. I can imagine a My gut feeling says let's keep the name for now and see to deprecating / renaming if and when the need arises. |
Part of #884
We might consider renaming this to just
close_linter()
, to flexibility in the future for more lints associated with use ofclose()
. E.g., we might make this stricter by default and require allclose()
calls to be insideon.exit()
hooks.