You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `Style/HashSyntax` cop would register an offense when `EnforcedStyle` was
`ruby19_no_mixed_keys` and a hash key was an interpolated string
like the following code:
```
{"#{foo}": 1}
```
This change fixes that.
The `Style/HashSyntax` cop would register an offense when `EnforcedStyle` was
`ruby19_no_mixed_keys` and a hash key was an interpolated string
like the following code:
```
{"#{foo}": 1}
```
This change fixes that.
Rubocop reports style check violation while processing hashes with symbol keys coming from string interpolation. See examples below.
Expected behavior
No errors reported.
Actual behavior
Error reported (in FlyCheck/Emacs notation):
Don't mix style in the same hash. [Style/HashSyntax]
Steps to reproduce the problem
Having the following Rubocop configuration:
try to write:
RuboCop version
We're using the latest Rubocop for these examples:
The text was updated successfully, but these errors were encountered: