Class: Shirobai::Cop::Layout::EmptyLinesAroundExceptionHandlingKeywords
- Inherits:
-
RuboCop::Cop::Base
- Object
- RuboCop::Cop::Base
- Shirobai::Cop::Layout::EmptyLinesAroundExceptionHandlingKeywords
- Extended by:
- RuboCop::Cop::AutoCorrector
- Includes:
- EmptyLinesAroundBodyShared
- Defined in:
- lib/shirobai/cop/layout/empty_lines_around_exception_handling_keywords.rb
Overview
Drop-in Rust reimplementation of
Layout/EmptyLinesAroundExceptionHandlingKeywords (blank lines
directly above/below rescue / else / ensure in def, block and
begin bodies; stock's missing on_itblock alias is mirrored).
See EmptyLinesAroundBodyShared.
Constant Summary collapse
- SLOT =
:empty_lines_around_exception_handling_keywords
Constants included from EmptyLinesAroundBodyShared
Shirobai::Cop::Layout::EmptyLinesAroundBodyShared::STYLES
Class Method Summary collapse
Methods included from EmptyLinesAroundBodyShared
#on_new_investigation, style_num
Class Method Details
.badge ⇒ Object
20 |
# File 'lib/shirobai/cop/layout/empty_lines_around_exception_handling_keywords.rb', line 20 def self.badge = RuboCop::Cop::Badge.parse(cop_name) |
.cop_name ⇒ Object
19 |
# File 'lib/shirobai/cop/layout/empty_lines_around_exception_handling_keywords.rb', line 19 def self.cop_name = "Layout/EmptyLinesAroundExceptionHandlingKeywords" |