Sha256: 09a9948f0cebc4eecf88fa47a308cf100293ee5a65f464aea6b9a8646fdce1e7
Contents?: true
Size: 697 Bytes
Versions: 73
Compression:
Stored size: 697 Bytes
Contents
# frozen_string_literal: true module RuboCop module Cop module Layout # This cop checks if empty lines exist around the bodies of methods. # # @example # # # good # # def foo # # ... # end # # # bad # # def bar # # # ... # # end class EmptyLinesAroundMethodBody < Base include EmptyLinesAroundBody extend AutoCorrector KIND = 'method' def on_def(node) check(node, node.body) end alias on_defs on_def private def style :no_empty_lines end end end end end
Version data entries
73 entries across 73 versions & 8 rubygems