Sha256: 97f01f2907b7aac2c483ed321de985f9705479c67beed7dfbf6d0edac46cd08d
Contents?: true
Size: 670 Bytes
Versions: 189
Compression:
Stored size: 670 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 # # # good # # begin # # ... # end # # # bad # # 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
189 entries across 182 versions & 18 rubygems