-
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
Linter to recommend new expectations to check for absence of exceptions? #1874
Comments
Fine with me. Probably should wait for the lifecycle to upgrade. |
we can do expect_no_linter() to cover these and our expect_no_lint()? that's very close in name to expect_not_linter(), my first instinct is not to combine them... |
I was thinking NB our |
WDYT about |
I think it's good enough. a lint is a "condition", right? 😄 |
SGTM. I'm starting to grasp why Pylint uses numbers for lints 😂 |
expect_absence_linter, perhaps? given that this is how they seem to be described collectively. Also expect_no_lint, expect_lint do have checks as the secondary parameter which is also equal to NULL and not NA. Not saying that this linter shouldn't handle expect_no_lint with the other absence functions, but it is distinct separate logic that needs to be handled as well. |
{testthat}
has recently introduced new expectations that assert the absence of an error, warning, or message.These expectations are (IMO: r-lib/testthat#1642) far more readable than the previous idiom of setting
regexp = NA
.Should we introduce a new linter that recommends using these new expectations?
P.S. A fly in the ointment is that the lifecycle for these new expectations is
experimental
. So maybe we should wait until it's stable?The text was updated successfully, but these errors were encountered: