We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Came across this:
expect_true(is.count(n_draws), n_draws > 1)
This throws expect_comparison_linter(), but gives a bad message:
expect_comparison_linter()
lint( text = "expect_true(is.count(n_draws), n_draws > 1)", linters = expect_comparison_linter() ) <text>:1:1: warning: [expect_comparison_linter] NA(x, y) is better than expect_true(x ( y). expect_true(is.count(n_draws), n_draws > 1) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Maybe we shouldn't invest in doing anything here since expect_true()'s been used incorrectly, but certainly it's not a helpful lint message.
expect_true()
The text was updated successfully, but these errors were encountered:
Can the bug be triggered by a valid usage like
expect_true(info = "my info first", a > b)
?
If so, I think putting a more robust XPath in place to find the comparator is a good idea.
Sorry, something went wrong.
this doesn't lint, it's unusual enough that I would wait for a request first before supporting that.
Successfully merging a pull request may close this issue.
Came across this:
This throws
expect_comparison_linter()
, but gives a bad message:Maybe we shouldn't invest in doing anything here since
expect_true()
's been used incorrectly, but certainly it's not a helpful lint message.The text was updated successfully, but these errors were encountered: