Sha256: 9d64e0760c1ee7045c6bc3c7c46e8f6e2d40bbeb10be631f938dbbc4649bcdb2
Contents?: true
Size: 735 Bytes
Versions: 60
Compression:
Stored size: 735 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`' 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
60 entries across 41 versions & 5 rubygems