From 11ea5e504ce20e72c6e7b2597282e008c9adf7b3 Mon Sep 17 00:00:00 2001 From: Marc-Andre Lafortune Date: Wed, 12 Aug 2020 12:34:20 -0400 Subject: [PATCH] Mark `Lint/FrozenStringLiteralComment` as `Safe`, but with unsafe auto-correction. --- CHANGELOG.md | 1 + config/default.yml | 2 +- docs/modules/ROOT/pages/cops_style.adoc | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7b2150e2829..c113923123f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,7 @@ * [#8362](https://github.com/rubocop-hq/rubocop/issues/8362): Add numbers of correctable offenses to summary. ([@nguyenquangminh0711][]) * [#8513](https://github.com/rubocop-hq/rubocop/pull/8513): Clarify the ruby warning mentioned in the `Lint/ShadowingOuterLocalVariable` documentation. ([@chocolateboy][]) * [#8517](https://github.com/rubocop-hq/rubocop/pull/8517): Make `Style/HashTransformKeys` and `Style/HashTransformValues` aware of `to_h` with block. ([@eugeneius][]) +* [#8529](https://github.com/rubocop-hq/rubocop/pull/8529): Mark `Lint/FrozenStringLiteralComment` as `Safe`, but with unsafe auto-correction. ([@marcandre][]) ## 0.89.1 (2020-08-10) diff --git a/config/default.yml b/config/default.yml index f0e23184479..d0e94844c69 100644 --- a/config/default.yml +++ b/config/default.yml @@ -3033,7 +3033,7 @@ Style/FrozenStringLiteralComment: # `never` will enforce that the frozen string literal comment does not # exist in a file. - never - Safe: false + SafeAutoCorrect: false Style/GlobalStdStream: Description: 'Enforces the use of `$stdout/$stderr/$stdin` instead of `STDOUT/STDERR/STDIN`.' diff --git a/docs/modules/ROOT/pages/cops_style.adoc b/docs/modules/ROOT/pages/cops_style.adoc index 62bd7850258..38dee96c9da 100644 --- a/docs/modules/ROOT/pages/cops_style.adoc +++ b/docs/modules/ROOT/pages/cops_style.adoc @@ -3259,7 +3259,7 @@ format('%s', 'Hello') | Enabled by default | Safe | Supports autocorrection | VersionAdded | VersionChanged | Enabled -| No +| Yes | Yes (Unsafe) | 0.36 | 0.79