From 5899a95756100ca552e8837fe81ba2b4579b24f8 Mon Sep 17 00:00:00 2001 From: Koichi ITO Date: Sun, 3 Jan 2021 13:35:49 +0900 Subject: [PATCH] Mark `Style/MutableConstant` as unsafe Follow https://github.com/rubocop-hq/rubocop/pull/8529. `Style/MutableConstant` is the same as `Style/FrozenStringLiteralComment`, freezing object is unsafe auto-correction. --- changelog/change_mark_style_mutable_constant_as_unsafe.md | 1 + config/default.yml | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 changelog/change_mark_style_mutable_constant_as_unsafe.md 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