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
When checking the braces, it uses the type instead of text to avoid
confusion a brace in a string. This avoid a confusion when token text is
a brace, but the token type is a string.
Rubcop raises a style violation when the value of on hash is an open curly bracket in a string (see below).
Expected behavior
This line of code should not be a rubocop offense:
Please note that there is just 1 space surrounding the string. Any other character does not raise a style violation.
Actual behavior
Steps to reproduce the problem
{ key: '{' }
rubocop
RuboCop version
The text was updated successfully, but these errors were encountered: