Sha256: 3c399d6bc62532c1835057fad4fa107372704b0abb3617bc971b060af7e1c260
Contents?: true
Size: 688 Bytes
Versions: 187
Compression:
Stored size: 688 Bytes
Contents
# frozen_string_literal: true module RuboCop module Cop module Layout # 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
187 entries across 180 versions & 18 rubygems