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 #2535

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

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

dsweber2 opened this issue Mar 27, 2024 · 2 comments

Comments

@dsweber2
Copy link

dsweber2 commented Mar 27, 2024

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/styler#1188

@IndrajeetPatil
Copy link
Collaborator

I think this is the same issue as #2034

@MichaelChirico
Copy link
Collaborator

Solution may well be the same but the offending code looks different enough I'll leave this open for now.

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

No branches or pull requests

3 participants