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

Autocorrecting Style/FrozenStringLiteralComment makes Layout/EmptyLineAfterMagicComment failing #5766

Closed
Ana06 opened this issue Apr 11, 2018 · 0 comments · Fixed by #5773
Closed

Comments

@Ana06
Copy link
Contributor

Ana06 commented Apr 11, 2018

Autocorrecting Style/FrozenStringLiteralComment introduces Layout/EmptyLineAfterMagicComment offenses. 😖


Expected behavior

When autocorrecting Style/FrozenStringLiteralComment offenses it should introduce at the beginning of the file # frozen_string_literal: true, followed by an empty line.

Actual behavior

it introduce at the beginning of the file # frozen_string_literal: true and Layout/EmptyLineAfterMagicComment complain because of the missing empty line.

RuboCop version

$ rubocop -V
0.54.0 (using Parser 2.5.0.5, running on ruby 2.5.0 x86_64-linux-gnu)
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.

2 participants