Skip to content

Soften pipe_consistency_linter #2986

@maciekbanas

Description

@maciekbanas

Please consider passing pipe_consistency_linter in cases where magrittr pipe handles passing object as a non-first argument in a more readable way:

private$hosts <- new_host |>
          private$check_for_duplicate_hosts() %>%
          append(private$hosts, .)

Using magrittr as an exception looks neater than the approach below:

private$hosts <- new_host |>
          private$check_for_duplicate_hosts() |>
          (\(x) append(private$hosts, x))()

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