Closed
Description
As part of #884, we wrote an ExpectIsLinter()
to point out that testthat::expect_is()
is deprecated.
The value-add vs. just using (rough syntax) undesirable_function_linter(expect_is = "Use expect_type or expect_s3_class")
is that we run a similar check to expect_type_linter()
to see if expect_type()
or expect_s3_class()
is more appropriate, and recommend accordingly, i.e., the customized linter is more customized for recommended action.
Filing this issue to poll whether this is worthwhile (the linter is already written and in use here, but there is some toil to converting, reviewing, and maintaining it)