Sha256: e8f48b306ef9cbc57d013a15537cd3790ff43ea22b1ee3510bde52002f977116
Contents?: true
Size: 662 Bytes
Versions: 14
Compression:
Stored size: 662 Bytes
Contents
# frozen_string_literal: true module RuboCop module Cop module Layout # Checks if empty lines exist around the bodies of begin-end # blocks. # # @example # # # bad # begin # # # ... # # end # # # good # 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
14 entries across 14 versions & 3 rubygems