Skip to content

expect_is_linter, or just use undesirable_function_linter? #946

Closed
@MichaelChirico

Description

@MichaelChirico

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)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions