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
Not sure about what should be expected. I mean, I'm not sure whether using anonymous modules this way is considered a bad practice. If not then we should allow blank lines between methods definitions.
Another problem here is the output:
spaces_test.rb:5:1: C: Layout/EmptyLinesAroundArguments: Empty line detected around arguments.
a && b
^
This issue makes sense. Right now EmptyLinesAroundArguments does not consider the type of argument it receives. Adding a return if node.arguments.any?(&:block_type?) guard clause makes your example pass. But give me a little longer to make sure the cop still registers when an empty line comes somewhere before a block arg.
Example file
Expected behavior
Not sure about what should be expected. I mean, I'm not sure whether using anonymous modules this way is considered a bad practice. If not then we should allow blank lines between methods definitions.
Another problem here is the output:
It's definitely broken.
RuboCop version
Latest master (
a28c9b22
) on ruby 2.4.2p198 (2017-09-14 revision 59899) [x86_64-darwin16]./cc @garettarrowood
The text was updated successfully, but these errors were encountered: