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

Auto-correct for Style/FrozenStringLiteralComment broken? #8418

Closed
utkarsh2102 opened this issue Jul 30, 2020 · 3 comments
Closed

Auto-correct for Style/FrozenStringLiteralComment broken? #8418

utkarsh2102 opened this issue Jul 30, 2020 · 3 comments

Comments

@utkarsh2102
Copy link
Member

Hiya,

With RuboCop v0.88.0, I can't seem to use Style/FrozenStringLiteralComment cop's auto-correct. I used it earlier and it worked pretty alright.

Steps to reproduce: rubocop --only Style/FrozenStringLiteralComment -a shouldn't work whilst it should.

@tas50
Copy link
Contributor

tas50 commented Jul 30, 2020

It's marked unsafe now so you need to use -A to autocorrect that.

@marcandre
Copy link
Contributor

Indeed, and hopefully someone will pick up #8362 to make that more obvious...

@utkarsh2102
Copy link
Member Author

Aye, aye, aye. I totally forgot about -A.
Sorry and thanks! ❤️

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