Pattern: Use of mutable constant
Issue: -
This rule checks whether some constant value isn't a mutable literal (e.g. array or hash).
# bad
CONST = [1, 2, 3]
# good
CONST = [1, 2, 3].freeze
Pattern: Use of mutable constant
Issue: -
This rule checks whether some constant value isn't a mutable literal (e.g. array or hash).
# bad
CONST = [1, 2, 3]
# good
CONST = [1, 2, 3].freeze