Skip to content

air formatting of binary operators + braced expressions is not covered by the guide #259

Description

@MichaelChirico

air prefers the following formatting of binary operators with multi-line RHS:

LHS %dopar%
  {
    styleFile(file, kPrefix, kWorkspace)
  }

However that basically contradicts the current guidance:

Related code (e.g., an `if` clause, a function declaration, a trailing comma, ...) must be on the same line as the opening brace.

How can we square this circle? I'm trying to think through how to update lintr::brace_linter() to be air-compatible.

cc @DavisVaughan

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions