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