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 autocorrect of Style/BlockDelimiters cop creates
foo.detect do|f|
FOO.include? f
end
which is then criticized by Style/SpaceAroundKeyword
foo.rb:1:12: C: Style/SpaceAroundKeyword: Space after keyword do is missing.
foo.detect do|f|
^^
Is this expected behavior that one cop auto-corrects to a state another cop complains about or should Style/BlockDelimiters auto-correct to code that adheres to the default rubocop style, i.e. introducing a space after the do?
$ rubocop -v
0.41.1
The text was updated successfully, but these errors were encountered:
Given code like this:
The autocorrect of
Style/BlockDelimiters
cop createswhich is then criticized by
Style/SpaceAroundKeyword
Is this expected behavior that one cop auto-corrects to a state another cop complains about or should
Style/BlockDelimiters
auto-correct to code that adheres to the default rubocop style, i.e. introducing a space after thedo
?The text was updated successfully, but these errors were encountered: