diff --git a/CHANGELOG.md b/CHANGELOG.md index ba29ba5995e..3759b88d365 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,7 @@ ### Changes * [#6597](https://github.com/rubocop-hq/rubocop/issues/6597): `Style/LineEndConcatenation` is now known to be unsafe for auto-correct. ([@jaredbeck][]) +* [#6725](https://github.com/rubocop-hq/rubocop/issues/6725): Mark `Style/SymbolProc` as unsafe for auto-correct. ([@drenmi][]) ## 0.63.1 (2019-01-22) diff --git a/config/default.yml b/config/default.yml index f6510766816..76a41e0623b 100644 --- a/config/default.yml +++ b/config/default.yml @@ -4096,8 +4096,9 @@ Style/SymbolLiteral: Style/SymbolProc: Description: 'Use symbols as procs instead of blocks when possible.' Enabled: true + SafeAutoCorrect: false VersionAdded: '0.26' - VersionChanged: '0.40' + VersionChanged: '0.64' # A list of method names to be ignored by the check. # The names should be fairly unique, otherwise you'll end up ignoring lots of code. IgnoredMethods: diff --git a/manual/cops_style.md b/manual/cops_style.md index 4c38c8065cb..c097ca8624a 100644 --- a/manual/cops_style.md +++ b/manual/cops_style.md @@ -5912,7 +5912,7 @@ This cop checks symbol literal syntax. Enabled by default | Safe | Supports autocorrection | VersionAdded | VersionChanged --- | --- | --- | --- | --- -Enabled | Yes | Yes | 0.26 | 0.40 +Enabled | Yes | Yes (Unsafe) | 0.26 | 0.64 Use symbols as procs when possible.