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

Lint a random file #4035

Merged
merged 1 commit into from
Dec 26, 2024
Merged

Conversation

osc-bot
Copy link
Collaborator

@osc-bot osc-bot commented Dec 25, 2024

The result of linting a random file.

@matt257
Copy link
Contributor

matt257 commented Dec 26, 2024

Looks good to me, but i'm not sure what adding '# frozen_string_literal: true' does there.

@johrstrom
Copy link
Contributor

Looks good to me, but i'm not sure what adding '# frozen_string_literal: true' does there.

It's about freezing strings to reduce bugs and gain performance. Here's a pretty comprehensive SO answer for the same.

https://stackoverflow.com/questions/37799296/ruby-what-does-the-comment-frozen-string-literal-true-do

@johrstrom johrstrom merged commit d06da8b into OSC:master Dec 26, 2024
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants