Module: RuboCop::Cop::Layout::EmptyLinesAroundBody
- Extended by:
- NodePattern::Macros
- Includes:
- ConfigurableEnforcedStyle, RangeHelp
- Included in:
- EmptyLinesAroundBeginBody, EmptyLinesAroundBlockBody, EmptyLinesAroundClassBody, EmptyLinesAroundExceptionHandlingKeywords, EmptyLinesAroundMethodBody, EmptyLinesAroundModuleBody
- Defined in:
- lib/rubocop/cop/mixin/empty_lines_around_body.rb
Overview
Common functionality for checking if presence/absence of empty lines around some kind of body matches the configuration.
Constant Summary collapse
- MSG_EXTRA =
'Extra empty line detected at %<kind>s body ' \ '%<location>s.'
- MSG_MISSING =
'Empty line missing at %<kind>s body %<location>s.'
- MSG_DEFERRED =
'Empty line missing before first %<type>s ' \ 'definition'
Method Summary
Methods included from NodePattern::Macros
def_node_matcher, def_node_search, node_search, node_search_all, node_search_body, node_search_first
Methods included from ConfigurableEnforcedStyle
#alternative_style, #alternative_styles, #ambiguous_style_detected, #correct_style_detected, #detected_style, #detected_style=, #no_acceptable_style!, #no_acceptable_style?, #opposite_style_detected, #style, #style_detected, #style_parameter_name, #supported_styles, #unexpected_style_detected