Sha256: b3dea9d6e1a1eba74afb34ec222cec8f33e0c61db251e08f99763ead395c9e7c
Contents?: true
Size: 688 Bytes
Versions: 14
Compression:
Stored size: 688 Bytes
Contents
# encoding: utf-8 module RuboCop module Cop module Style # This cops checks if empty lines around the bodies of blocks match # the configuration. # # @example # # something do # # ... # end # class EmptyLinesAroundBlockBody < Cop include EmptyLinesAroundBody KIND = 'block' def on_block(node) check(node) end private def check(node) start_line = node.loc.begin.line end_line = node.loc.end.line return if start_line == end_line check_source(start_line, end_line) end end end end end
Version data entries
14 entries across 14 versions & 1 rubygems