This cops checks redundant empty lines around the bodies of classes, modules & methods.
@example
class Test def something ... end end def something(arg) ... end
# File lib/rubocop/cop/style/empty_lines_around_body.rb, line 41 def autocorrect(range) @corrections << ->(corrector) { corrector.remove(range) } end
# File lib/rubocop/cop/style/empty_lines_around_body.rb, line 29 def on_class(node) check(node) end
Generated with the Darkfish Rdoc Generator 2.