Sha256: e8f48b306ef9cbc57d013a15537cd3790ff43ea22b1ee3510bde52002f977116
Contents?: true
Size: 662 Bytes
Versions: 2
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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rubocop-1.70.0 | lib/rubocop/cop/layout/empty_lines_around_begin_body.rb |
rubocop-1.69.2 | lib/rubocop/cop/layout/empty_lines_around_begin_body.rb |