diff --git a/changelog/change_mark_style_mutable_constant_as_unsafe.md b/changelog/change_mark_style_mutable_constant_as_unsafe.md new file mode 100644 index 00000000000..f56a20a0a7e --- /dev/null +++ b/changelog/change_mark_style_mutable_constant_as_unsafe.md @@ -0,0 +1 @@ +* [#9331](https://github.com/rubocop-hq/rubocop/pull/9331): Mark `Style/MutableConstant` as unsafe. ([@koic][]) diff --git a/config/default.yml b/config/default.yml index 68cc8300ea9..903d772ab8a 100644 --- a/config/default.yml +++ b/config/default.yml @@ -3735,7 +3735,8 @@ Style/MutableConstant: Description: 'Do not assign mutable objects to constants.' Enabled: true VersionAdded: '0.34' - VersionChanged: '0.65' + VersionChanged: <> + SafeAutoCorrect: false EnforcedStyle: literals SupportedStyles: # literals: freeze literals assigned to constants