Class: Shirobai::Cop::Layout::EmptyLinesAroundMethodBody

Inherits:
RuboCop::Cop::Base
  • Object
show all
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

.badgeObject



18
# File 'lib/shirobai/cop/layout/empty_lines_around_method_body.rb', line 18

def self.badge = RuboCop::Cop::Badge.parse(cop_name)

.cop_nameObject



17
# File 'lib/shirobai/cop/layout/empty_lines_around_method_body.rb', line 17

def self.cop_name = "Layout/EmptyLinesAroundMethodBody"