Sha256: d68b83fc3d7385488ca162ff4c1389e337df815be3d3bd2be971d68a7e5c4362
Contents?: true
Size: 701 Bytes
Versions: 4
Compression:
Stored size: 701 Bytes
Contents
# frozen_string_literal: true module RuboCop module Cop module Layout # This cops checks if empty lines around the bodies of blocks match # the configuration. # # @example # # # EnforcedStyle: empty_lines # # # good # # foo do |bar| # # ... # # end # # # EnforcedStyle: no_empty_lines # # # good # # foo do |bar| # ... # end class EmptyLinesAroundBlockBody < Cop include EmptyLinesAroundBody KIND = 'block'.freeze def on_block(node) check(node, node.body) end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems