Sha256: 8f245be521f49ec35597ac6f6f22bfc7c5a5f25ee9b990aa972cb3bff8fd8cfc
Contents?: true
Size: 1.11 KB
Versions: 73
Compression:
Stored size: 1.11 KB
Contents
# frozen_string_literal: true module RuboCop module Cop module Layout # This cop checks if empty lines around the bodies of modules match # the configuration. # # @example EnforcedStyle: empty_lines # # good # # module Foo # # def bar # # ... # end # # end # # @example EnforcedStyle: empty_lines_except_namespace # # good # # module Foo # module Bar # # # ... # # end # end # # @example EnforcedStyle: empty_lines_special # # good # module Foo # # def bar; end # # end # # @example EnforcedStyle: no_empty_lines (default) # # good # # module Foo # def bar # # ... # end # end class EmptyLinesAroundModuleBody < Base include EmptyLinesAroundBody extend AutoCorrector KIND = 'module' def on_module(node) check(node, node.body) end end end end end
Version data entries
73 entries across 73 versions & 8 rubygems