Skip to content

False positive for yoda_test_linter in magrittr pipeline #1066

Description

@MichaelChirico

A pattern seen a lot in formula.tools:

https://github.com/decisionpatterns/formula.tools/blob/45b6654e4d8570cbaf1e2fd527652471202d97ad/tests/testthat/test-lhs.r#L13

lhs( NA ~ . )   %>% expect_equal(NA) 

IMO this is not the best way to write tests, but nevertheless we shouldn't trigger a lint with yoda_test_linter().

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    false-positivecode that shouldn't lint, but does

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions