Sha256: 13ac60e2f3fabb7252ab40c618a6cd1d394f83ad71c0ec14be3b16f070e2f581
Contents?: true
Size: 679 Bytes
Versions: 73
Compression:
Stored size: 679 Bytes
Contents
# frozen_string_literal: true module RuboCop module Cop module Layout # This cop checks if empty lines exist around the bodies of begin-end # blocks. # # @example # # # good # # begin # # ... # end # # # bad # # begin # # # ... # # end class EmptyLinesAroundBeginBody < Base include EmptyLinesAroundBody extend AutoCorrector KIND = '`begin`' def on_kwbegin(node) check(node, nil) end private def style :no_empty_lines end end end end end
Version data entries
73 entries across 73 versions & 8 rubygems