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

Activate frozen string literal cop #17481

Merged
merged 1 commit into from
Dec 23, 2024

Conversation

EinLama
Copy link
Contributor

@EinLama EinLama commented Dec 17, 2024

Do not merge, see disclaimer at the bottom.

As discussed in the dev weekly today (December 17, 2024), we want to activate frozen string literals for all of our files.

This PR does just that.

The cop is activated in strict mode, so frozen_string_literal must be there and on top of that, it must be set to true.

After this PR has been merged, all new and modified files must follow the rule and include a magic comment activating frozen string literals. I intentionally did not update all files here as we have ~7.5k more rubocop offenses that come up after fixing this one rule. Since every file is modified, every file is checked. And we broke a lot of cops in the past 🫠 Fixing all at once is too risky. So we do this gradually.

7833 files inspected, 7423 offenses detected, 2304 offenses autocorrectable

Attention: intentionally set to draft. Do not merge before the next feature freeze (15.2). As of now, this means we can merge after December 20, 2024.

@EinLama EinLama force-pushed the chore/activate-frozen-string-literal-cop branch from 2eb43c2 to 0e8af09 Compare December 17, 2024 16:55
Copy link
Member

@cbliard cbliard left a comment

Choose a reason for hiding this comment

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

Sounds good 👍

And the release/15.2 has been created now.

@cbliard cbliard marked this pull request as ready for review December 23, 2024 16:00
@cbliard cbliard merged commit 1e7e69a into dev Dec 23, 2024
11 checks passed
@cbliard cbliard deleted the chore/activate-frozen-string-literal-cop branch December 23, 2024 16:00
akabiru added a commit that referenced this pull request Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants