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

Use frozen string literal #30230

Merged
merged 5 commits into from Aug 13, 2017
Merged

Conversation

koic
Copy link
Contributor

@koic koic commented Aug 13, 2017

Summary

Follow up of #30211 (comment).

Extends Style/FrozenStringLiteralComment RuboCop rule to guides/, tasks/, tools/, ci/ and, root files.

Also, This PR fixes "can not modify frozen String" error caused by the following commands.

  • rake build
  • rake changelog:header

Other Information

I think that the tasks of enable frozen string literal will end if #29891 (Railties) is resolved.

@rails-bot
Copy link

r? @matthewd

(@rails-bot has picked a reviewer for you, use r? to override)

Copy link
Member

@kirs kirs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is exactly what I had in mind 👍
Thanks!

@matthewd matthewd merged commit dbe1647 into rails:master Aug 13, 2017
@koic koic deleted the use_frozen_string_literal branch August 13, 2017 15:40
@koic
Copy link
Contributor Author

koic commented Aug 13, 2017

@kirs Thank you for all your advice 🙏

toshimaru added a commit to toshimaru/rubocop-rails that referenced this pull request Oct 12, 2017
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

Successfully merging this pull request may close these issues.

None yet

4 participants