Class: Shirobai::Cop::Layout::EmptyLinesAroundMethodBody
- Inherits:
-
RuboCop::Cop::Base
- Object
- RuboCop::Cop::Base
- Shirobai::Cop::Layout::EmptyLinesAroundMethodBody
- Extended by:
- RuboCop::Cop::AutoCorrector
- Includes:
- EmptyLinesAroundBodyShared
- Defined in:
- lib/shirobai/cop/layout/empty_lines_around_method_body.rb
Overview
Drop-in Rust reimplementation of ‘Layout/EmptyLinesAroundMethodBody` (fixed `no_empty_lines` style, plus the endless-method whole-line offense). See `EmptyLinesAroundBodyShared`.
Constant Summary collapse
- SLOT =
:empty_lines_around_method_body
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
18 |
# File 'lib/shirobai/cop/layout/empty_lines_around_method_body.rb', line 18 def self.badge = RuboCop::Cop::Badge.parse(cop_name) |
.cop_name ⇒ Object
17 |
# File 'lib/shirobai/cop/layout/empty_lines_around_method_body.rb', line 17 def self.cop_name = "Layout/EmptyLinesAroundMethodBody" |