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

Make some files ready for frozen string literals #18041

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

NobodysNightmare
Copy link
Contributor

During a previous test (#18039), I added the frozen string literal comment to all Ruby files, to see how our codebase would react to that.

The test run uncovered a few files that were trying to modify strings that originate from string literals. This commit is changed some of them to be safe under frozen string literals and freezes literals in the affected files.

@NobodysNightmare NobodysNightmare force-pushed the frozen-string-safety branch 2 times, most recently from 2312d0f to 4622c9b Compare February 21, 2025 15:22
During a previous test, added the frozen string literal comment
to all Ruby files, to see how our codebase would react to that.

The test run uncovered a few files that were trying to modify strings
that originate from string literals. This commit is changed some
of them to be safe under frozen string literals and freezes literals
in the affected files.
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.

1 participant