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
For /current/directory: configuration from /path/to/.rubocop.yml
Use parallel by default.
Skipping parallel inspection: only a single file needs inspection
Steps to reproduce the problem
Set Style/BlockDelimiters EnforcedStyle: semantic
Chain some methods with at least one safe navigation operator
Probably, it should be in a method. On the top level, it seems another kind of bug occurs against method chain. (It's under investigation now)
Run RuboCop
All pairs of {} in the chain except last one will be offended
The text was updated successfully, but these errors were encountered:
ym19851201
changed the title
Style/BlockDelimiters forces do end style even if it were one liner
Style/BlockDelimiters forces do-end style even if it were one liner
Oct 24, 2022
Fixesrubocop#11117.
This PR fixes a false positive for `Style/BlockDelimiters`
when specifying `EnforcedStyle: semantic` and using a single line block
with {} followed by a safe navigation method call.
Fixes#11117.
This PR fixes a false positive for `Style/BlockDelimiters`
when specifying `EnforcedStyle: semantic` and using a single line block
with {} followed by a safe navigation method call.
I found a bug related to Style/BlockDelimters
Expected behavior
I hoped Rubocop didn't offend the code below.
Actual behavior
But actually, it's overwritten by RuboCop like below.
And
rubocop --debug
saidSteps to reproduce the problem
Style/BlockDelimiters
EnforcedStyle: semanticProbably, it should be in a method. On the top level, it seems another kind of bug occurs against method chain. (It's under investigation now)
{}
in the chain except last one will be offendedRuboCop version
The text was updated successfully, but these errors were encountered: