Sha256: 59db2b55facfc877eada30b2b526276f7ff5ba5bbf565d269f6d3b72693fb3cd
Contents?: true
Size: 742 Bytes
Versions: 6775
Compression:
Stored size: 742 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 < Cop include EmptyLinesAroundBody KIND = '`begin`'.freeze def on_kwbegin(node) check(node, nil) end def autocorrect(node) EmptyLineCorrector.correct(node) end private def style :no_empty_lines end end end end end
Version data entries
6,775 entries across 6,769 versions & 24 rubygems