Skip to content

New linter for trailing assignments #1491

@ashbaldry

Description

@ashbaldry

It would be nice to have a linter that flags whenever an assignment is at the end of the line. It can make function calls disjoined and harder to read.

Examples:

y <- mean(x, na.rm =
  TRUE
)

some_long_variable_name <-
  function_name(...)

Metadata

Metadata

Assignees

No one assigned

    Labels

    featurea feature request or enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions