You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When # frozen_string_literal: true is set, a constant string that includes a line continuation (\) is incorrectly flagged by the Style/MutableConstant cop, even though the constant is indeed frozen.
Expected behavior
RuboCop should not flag this as a Style/MutableConstant violation.
Actual behavior
RuboCop wants a .freeze at the end of the string literal to appease the Style/MutableConstant cop.
Steps to reproduce the problem
# frozen_string_literal: trueC='this is a string '\
'wrapped onto another line'
When
# frozen_string_literal: true
is set, a constant string that includes a line continuation (\
) is incorrectly flagged by theStyle/MutableConstant
cop, even though the constant is indeed frozen.Expected behavior
RuboCop should not flag this as a
Style/MutableConstant
violation.Actual behavior
RuboCop wants a
.freeze
at the end of the string literal to appease theStyle/MutableConstant
cop.Steps to reproduce the problem
RuboCop version
The text was updated successfully, but these errors were encountered: