Skip to content

Commit

Permalink
Merge pull request #6730 from Drenmi/configuration/symbol-proc
Browse files Browse the repository at this point in the history
[Fix #6725][Fix #6540] Mark Style/SymbolProc as unsafe for auto-correct
  • Loading branch information
koic committed Feb 5, 2019
2 parents f288c2c + b85b6d1 commit c729869
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -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)

Expand Down
3 changes: 2 additions & 1 deletion config/default.yml
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion manual/cops_style.md
Expand Up @@ -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.

Expand Down

0 comments on commit c729869

Please sign in to comment.