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

Cop idea: Check for unnecessary line continuations #11122

Closed
bquorning opened this issue Oct 25, 2022 · 0 comments · Fixed by #11694
Closed

Cop idea: Check for unnecessary line continuations #11122

bquorning opened this issue Oct 25, 2022 · 0 comments · Fixed by #11694

Comments

@bquorning
Copy link
Contributor

I sometimes see code like this

foo \
  .bar

or this

foo. \
  bar

where the backslash is completely unnecessary. Can we create a cop that can detect (and remove) those backslashes?

ydah added a commit to ydah/rubocop that referenced this issue Mar 25, 2023
ydah added a commit to ydah/rubocop that referenced this issue Apr 3, 2023
This PR is a follow-up to rubocop#11122.
I forgot to add the changes to the changelog, so I added it this PR.
bbatsov pushed a commit that referenced this issue Apr 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant