Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Styler and lintr disagree on what happens after a linebreak #1188

Open
dsweber2 opened this issue Mar 27, 2024 · 2 comments
Open

Styler and lintr disagree on what happens after a linebreak #1188

dsweber2 opened this issue Mar 27, 2024 · 2 comments

Comments

@dsweber2
Copy link

Styler auto-formats to:

  if (TRUE ||
    FALSE) {
    TRUE
  }

While linter prefers:

  if (TRUE ||
        FALSE) {
    TRUE
  }

I don't really have strong opinions on which of these should happen, I would just like my tools to not contradict each other. It makes CI a mess.
paired issue r-lib/lintr#2535

@dshemetov
Copy link

My workaround for this has been

if (
  TRUE ||
    FALSE
) {
  TRUE
}

@MichaelChirico
Copy link
Contributor

possible duplicate of #1065, which also points to an open issue in the style guide about trying to clarify such cases upstream: tidyverse/style#197

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants