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
…edExpression`
Fixesrubocop#8834.
Fix a false positive for `Style/ParenthesesAsGroupedExpression` when
method argument parentheses are omitted and hash argument key is enclosed
in parentheses.
…ssion` (#8839)
Fixes#8834.
Fix a false positive for `Style/ParenthesesAsGroupedExpression` when
method argument parentheses are omitted and hash argument key is enclosed
in parentheses.
Co-authored-by: Bozhidar Batsov <bozhidar@batsov.com>
The following case uses
state_machine
DSL for describing an event of state machine inside a Rails model.Expected behavior
The code doesn't violate
Lint/ParenthesesAsGroupedExpression
copActual behavior
Auto-corrected to:
This breaks code. Since the argument for
transition
method is(any - %i[failed canceled processing]) => :processing
Steps to reproduce the problem
Code snippet
Run
RuboCop version
The text was updated successfully, but these errors were encountered: