Sha256: 1ee91ae6923beca2ca2b7a002a8251cb24e29c609b9374b31c01b648e9e59954
Contents?: true
Size: 754 Bytes
Versions: 2
Compression:
Stored size: 754 Bytes
Contents
# frozen_string_literal: true module RuboCop module Cop module Layout # This hint checks if empty lines exist around the bodies of methods. # # @example # # # good # # def foo # # ... # end # # # bad # # def bar # # # ... # # end class EmptyLinesAroundMethodBody < Cop include EmptyLinesAroundBody KIND = 'method' def on_def(node) check(node, node.body) end alias on_defs on_def def autocorrect(node) EmptyLineCorrector.correct(node) end private def style :no_empty_lines end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rbhint-0.87.1.rc1 | lib/rubocop/cop/layout/empty_lines_around_method_body.rb |
rbhint-0.85.1.rc2 | lib/rubocop/cop/layout/empty_lines_around_method_body.rb |