Class: Shirobai::Cop::Layout::EmptyLinesAroundClassBody

Inherits:
RuboCop::Cop::Base
  • Object
show all
Extended by:
RuboCop::Cop::AutoCorrector
Includes:
EmptyLinesAroundBodyShared
Defined in:
lib/shirobai/cop/layout/empty_lines_around_class_body.rb

Overview

Drop-in Rust reimplementation of ‘Layout/EmptyLinesAroundClassBody` (the full six-style set, `on_class` superclass adjustment and `on_sclass`). See `EmptyLinesAroundBodyShared`.

Constant Summary collapse

SLOT =
:empty_lines_around_class_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_class_body.rb', line 18

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

.bundle_args(config) ⇒ Object

Packed args for the bundled run: ‘[enforced_style]`.



21
22
23
# File 'lib/shirobai/cop/layout/empty_lines_around_class_body.rb', line 21

def self.bundle_args(config)
  [EmptyLinesAroundBodyShared.style_num(config, badge)]
end

.cop_nameObject



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

def self.cop_name = "Layout/EmptyLinesAroundClassBody"