Skip to content

fixed_regex_linter() throws false positives for piped-in stringr calls #1811

@MichaelChirico

Description

@MichaelChirico
x %>%
  str_replace(fixed("abc"), "cde")

Since our logic currently uses the argument number and doesn't account for whether the call is piped-in, it sees cde as being "fixed" and hence throws a lint.

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