Sha256: db4a00029d117a6ff98259ba54912a62f389b7c92ceddb62391a0874d03f0f81
Contents?: true
Size: 736 Bytes
Versions: 2
Compression:
Stored size: 736 Bytes
Contents
# frozen_string_literal: true module RuboCop module Cop module Layout # This hint 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rbhint-0.87.1.rc1 | lib/rubocop/cop/layout/empty_lines_around_begin_body.rb |
rbhint-0.85.1.rc2 | lib/rubocop/cop/layout/empty_lines_around_begin_body.rb |