-
Notifications
You must be signed in to change notification settings - Fork 185
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
brace_linter() covers test_that() without braces #2808
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2808 +/- ##
=======================================
Coverage 99.63% 99.64%
=======================================
Files 126 126
Lines 6936 6946 +10
=======================================
+ Hits 6911 6921 +10
Misses 25 25 ☔ View full report in Codecov by Sentry. |
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.
Interestingly I found two odd usages of test_that on GitHub https://github.com/search?q=%2Ftest_that%5C(%5C%7B%2F&type=code
- Piping the test name.
- Supplying the description as a keyword argument.
Both break the positional assumption.
WDYT about supporting one or both?
I don't think it's worth the investment. If eventually we have a good general framework for handling odd cases like that, we can include it in a sweep of all linters. But I also don't see much demand for that besides from us maintainers recognizing we're being less-than-perfect on this front. I see 28 hits there vs. >300,000 for just |
Co-authored-by: AshesITR <[email protected]>
Closes #2292