Class: Rubocop::Cop::Style::SpaceAfterSemicolon
- Includes:
- SpaceAfterCommaEtc
- Defined in:
- lib/rubocop/cop/style/space_after_comma_etc.rb
Overview
Checks for semicolon (;) not follwed by some kind of space.
Constant Summary
Constants included from SpaceAfterCommaEtc
Rubocop::Cop::Style::SpaceAfterCommaEtc::MSG
Instance Attribute Summary
Attributes inherited from Cop
#autocorrect, #corrections, #debug, #disabled_lines, #offences
Instance Method Summary collapse
Methods included from SpaceAfterCommaEtc
Methods inherited from Cop
#add_offence, all, #autocorrect_action, cop_name, cop_type, #do_autocorrect, #ignore_node, inherited, #initialize, lint?, #name, rails?, style?
Constructor Details
This class inherits a constructor from Rubocop::Cop::Cop
Instance Method Details
#kind(token) ⇒ Object
42 43 44 |
# File 'lib/rubocop/cop/style/space_after_comma_etc.rb', line 42 def kind(token) 'semicolon' if token.type == :tSEMI end |