Add RuboCop linting and use frozen_string_literal everywhere#7
Add RuboCop linting and use frozen_string_literal everywhere#7ur5us wants to merge 1 commit intoheaven:masterfrom
Conversation
|
@heaven Please let me know if this PR is cramming too many concerns into one issue, especially the RuboCop formatting related ones. I could potentially separate those from the Also, are you planning on cutting a new release by any chance? |
|
Hi @ur5us, I'm a bit concerned about the frozen string literals. As you can see there are 0 tests and I'm not sure what this change can affect. As far as I know, Matz decided not to enable this feature by default in ruby 3.0 and for a good reason. I'd better accept a solution to enable this globally, e.g. via ENV variables than using these magic comments, so that anyone could decide whether they need this feature enabled in their projects or not. |
|
@heaven Curious, do you have a link? My understanding is that string will be frozen/immutable by default and you’ll need to opt out by adding The reason I decided to add |
8d0e363 to
944890c
Compare
|
I saw this discussion some time ago https://bugs.ruby-lang.org/issues/11473#note-53 |
No description provided.