Class: Shirobai::Cop::Layout::EmptyLinesAroundBlockBody
- Inherits:
-
RuboCop::Cop::Base
- Object
- RuboCop::Cop::Base
- Shirobai::Cop::Layout::EmptyLinesAroundBlockBody
- Extended by:
- RuboCop::Cop::AutoCorrector
- Includes:
- EmptyLinesAroundBodyShared
- Defined in:
- lib/shirobai/cop/layout/empty_lines_around_block_body.rb
Overview
Drop-in Rust reimplementation of Layout/EmptyLinesAroundBlockBody
(no_empty_lines / empty_lines; call, super and lambda blocks,
numbered and it parameter forms included). See
EmptyLinesAroundBodyShared.
Constant Summary collapse
- SLOT =
:empty_lines_around_block_body
Constants included from EmptyLinesAroundBodyShared
Shirobai::Cop::Layout::EmptyLinesAroundBodyShared::STYLES
Class Method Summary collapse
- .badge ⇒ Object
-
.bundle_args(config) ⇒ Object
Packed args for the bundled run:
[enforced_style]. - .cop_name ⇒ Object
Methods included from EmptyLinesAroundBodyShared
#on_new_investigation, style_num
Class Method Details
.badge ⇒ Object
19 |
# File 'lib/shirobai/cop/layout/empty_lines_around_block_body.rb', line 19 def self.badge = RuboCop::Cop::Badge.parse(cop_name) |
.bundle_args(config) ⇒ Object
Packed args for the bundled run: [enforced_style].
22 23 24 |
# File 'lib/shirobai/cop/layout/empty_lines_around_block_body.rb', line 22 def self.bundle_args(config) [EmptyLinesAroundBodyShared.style_num(config, badge)] end |
.cop_name ⇒ Object
18 |
# File 'lib/shirobai/cop/layout/empty_lines_around_block_body.rb', line 18 def self.cop_name = "Layout/EmptyLinesAroundBlockBody" |