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

Autocorrect Style/Encoding go in an infinite loop #2552

Closed
ptitpoulpe opened this issue Dec 29, 2015 · 3 comments
Closed

Autocorrect Style/Encoding go in an infinite loop #2552

ptitpoulpe opened this issue Dec 29, 2015 · 3 comments

Comments

@ptitpoulpe
Copy link

If you have a file starting with a blank line like this:

<blank line>
module Toto
end

and try to autocorrect with Style/Encoding it start an infinite loop
where it add # encoding: utf-8 on the second line, giving something
like this:

<blank line>
# encoding: utf-8
# encoding: utf-8
...
module Toto
end
@alexdowad
Copy link
Contributor

Nice catch! I'm looking at the reason for this right now.

@alexdowad
Copy link
Contributor

Just coding up a fix.

@alexdowad
Copy link
Contributor

Waiting until my open PR is merged to push this one.

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

2 participants